Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal subscriptions using client side js only

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.

like image 999
Aldarund Avatar asked Jul 15 '26 15:07

Aldarund


2 Answers

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/

like image 178
z900collector Avatar answered Jul 18 '26 04:07

z900collector


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.

like image 22
Ravi Shekhar Avatar answered Jul 18 '26 05:07

Ravi Shekhar