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??
... View more