Paypal Smart Buttons: get clicked button
FrancescoM
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-08-2020
08:25 AM
I added the Paypal Smart Buttons API to my website with the following code:
paypal.Buttons({ createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ amount: { value: 0.01 } }], }); }, onApprove: function(data, actions) {}, onClick: function(){ //GET CLICKED BUTTON }, }).render('#paypal-button-container');
Is there a way to get the clicked button when the "onClick" event occurs??
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
- Using Paypal Smart Buttons for checkout sometimes fails with Debit/ Credit Cards Form in Braintree Client-side Integration (JS, iOS, Android SDKs)
- paypal buttons can't show in PayPal Payments Standard
- Sandbox testing has beaten me !! in Sandbox Environment
- Customising Paypal Checkout Button in PayPal Payments Standard
- recurring payments when price maybe changed and price have 2 decimal point in REST APIs