Pass dollar value to Donate button, or workaround for Hold on a Purchase
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm looking for a way to pass a dollar amount from my HTML form to PayPal's Donate button code, or for a workaround to avoid the Hold Funds / Release obstacle when using PayPal's Purchase SmartButton code.
My website has a checkout-style form where donors can choose what they're donating to. The CheckoutTotal is then sent to PayPal's createOrder() within the generated SmartButton code:
<!--script src="https://www.paypal.com/sdk/js?client-id=XXXXXXXX¤cy=USD" data-sdk-integration-source="button-factory">
[...snip...]
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{"description":"Gift to Phalarian Cri Music","amount":{"currency_code":"USD","value":CheckoutTotal.value}}]
});
},
</script -->
I first tried to use a Donate button, but couldn't figure out how to pass CheckoutTotal using PayPal's button code, so I went with a Purchase SmartButton instead.
The SmartButton payment flow worked flawlessly in the sandbox, but as soon as I went to production, PayPal said the funds were on hold because it's a new seller. I had to log in to the seller account and check off that there was No Shipment, and then there was a message that the buyer would receive an email, presumably to confirm they're not waiting for a shipment. However, my buyer/donor test account hasn't received any email, either to confirm no-shipment, or to confirm the payment.
1) Can anyone confirm that the buyer/donor will indeed receive an email to confirm that shipping doesn't apply? Is there a 48-hour wait period or something? I might accept having to go in as the "seller" to release Holds, but I can't accept making my donors click through to Release funds.
2) What is the best way to process Donations so that:
a) I can pass CheckoutTotal from my own form; and
b) there's no Hold / Confirm added to the workflow? It should go straight to payment.
Is there a way to flag a createOrder() as a Donation, or is a Donation a different function in the API?
Thanks, help is much appreciated.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- PayPal Pay buttons a mysterious process in PayPal Payments Standard
- A cart needed for multiple items ordered at once in PayPal Payments Standard
- Add to cart button is missing? in PayPal Payments Standard
- Is there a way to dynamically-populate a product ID into the no-code button? in PayPal Payments Standard
- I don'r get a redirect after successfully buying a subscription (redirect, subscription) in REST APIs