Aldarund
Aldarund

Reputation: 17621

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.

Upvotes: 3

Views: 2689

Answers (2)

z900collector
z900collector

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

Ravi Shekhar
Ravi Shekhar

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

Related Questions