Reputation: 17621
Is it possible to create PayPal subscriptions using only a client side javascript (and Firebase if needed)?
I'm a bit confused with PayPal; there are so many frameworks/options to do same thing that I don't know where to look exactly.
https://developer.paypal.com/demo/checkout/#/pattern/client
This seems similar what I'm looking for except it's only for payments, and I need subscriptions.
Upvotes: 3
Views: 2689
Reputation: 1134
Just an update on this ticket. Paypal do now have a javascript client-side API that works very well. Here is the link: https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/
Upvotes: 2
Reputation: 2925
You can use PayPal WPS Subscription Buttons https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/#recurring-payment-variables
This is a button integration so you can use JS and HTML to create a plan and redirect buyers to paypal.com. You can specify your subscription terms and PayPal will take care of making recurring payments. You can also maintain inventory, profile & loss tracking.
For any API integration its highly risky to use client side JS.
Upvotes: 1