Paypal api – Paypal Smart Buttons: Get clicked button
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(){ //HERE I WANT…