xxxxxxxxxx
$(document).ready(function(){
$(".scroll-top").click(function() {
$("html, body").animate({
scrollTop: 0
}, "slow");
return false;
});
});
xxxxxxxxxx
import stripe from 'react-native-stripe-payments';
const cardDetails = {
number: '4242424242424242',
expMonth: 10,
expYear: 21,
cvc: '888',
}
stripe.confirmPayment('client_secret_from_backend', cardDetails)
.then(result => {
// result of type PaymentResult
})
.catch(err =>
// error performing payment
)
xxxxxxxxxx
$(document).ready(function(){
$("#totop").show(),$(window).scroll(function(){$(window).scrollTop()>=500&&$(window).scrollTop()<=$(document).height()-600?$("#totop").show():$("#totop").hide()})}),
$("#totop").on("click",function(o){return o.preventDefault(),$("html, body").animate({scrollTop:0},"slow"),!1});