paypalpaypal-rest-sdkpaypal-buttons

PayPal Smart Button onclick Event


Currently I am using PayPal smart button for my website's payment gateway and I am using ASP.NET MVC to do so.

I was wondering is it possible to create an "on click" event on the PayPal in the controller. If is possible, how can I do that?

Please help

Thank you


Solution

  • The PayPal JavaScript SDK has an 'onClick' function which is documented here: https://developer.paypal.com/docs/business/javascript-sdk/javascript-sdk-reference/#oninitonclick