creedon
creedon

Reputation: 21

How to use PayPal Payment Buttons JavaScript API?

I'd like to use paypal.button.create from the JavaScript API of PayPal Payment Buttons. I'm wondering if there is a file on paypalobjects.com where I can access the API? It doesn't seem to be part of www.paypalobjects.com/js/external/paypal-button.min.js or www.paypalobjects.com/js/external/paypal-button-minicart.min.js.

Baring that any info on how I can go about using paypal.button.create would be appreciated. I'm a JavaScript newb.

Upvotes: 2

Views: 792

Answers (1)

PHearst
PHearst

Reputation: 771

Grab this script from Github:

https://github.com/paypal/JavaScriptButtons/blob/master/dist/button.js and call it:

paypal.button.create(business, data, config, parentNode);

Upvotes: 2

Related Questions