I currently set up this plugin on my reactjs script and everything working fine.
But I've noticed that even when personal account with 0.00 with no balance I could also proceed and finish normal payment...
Is this my problem or this is just in sandbox?
<PayPalButton
createOrder={(data, actions) => {
return actions.order.create({
purchase_units: [{
amount: {
currency_code: "USD",
value: price
}
}],
application_context: {
shipping_preference: "NO_SHIPPING"
}
});
}}
onApprove={(data, actions) => {
return actions.order.capture().then(function(details) {
alert('succes');
});
}}
catchError={(err) => {
alert(err)
}}
onError=((err) => {
alert(err)
}}
/>
The paying account needs a funding source to pay. When you create a sandbox account it will usually have a card and bank associated with it by default, both of which have unlimited funds.
Unfortunately this unlimited money is only available in sandbox mode
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.