Invoking the button click programmatically
K_Kong
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jan-22-2019
06:04 AM
In https://developer.paypal.com/docs/checkout/how-to/server-integration/#1-set-up-your-client-to-call-y..., there is:
<script> paypal.Button.render({ env: 'sandbox', // Set up the payment: // 1. Add a payment callback payment: function(data, actions) { // 2. Make a request to your server return actions.request.post('/my-api/create-payment/') .then(function(res) { // 3. Return res.id from the response return res.id; }); }, ...
Is there a way to invoke the payment callback programmatically other than for a human to click the PayPal button?
Labels:
Login to Me Too
- Labels:
-
PayPal HTML Buttons
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Anyone else have Fraud Filters that are not working? Been like this for about 6 months now in NVP/SOAP APIs
- Create subscription without paypal login in PayPal Payments Standard
- Add default amount to a hosted Donate Payment button in SDKs
- Smart Button "Debit or Credit Card" button - capture fails with "permission_denied" in PayPal Payments Standard
- PayPal button invoke Sandbox mode only, and cant pay with real personal account in Sandbox Environment