cocoastorm / vue-paypal-checkout

A simple Vue.js wrapper component for paypal-checkout
MIT License
153 stars 67 forks source link

Question: Does this work with subscriptions, any examples? #95

Open kgrosvenor opened 4 years ago

Craig-Burch commented 4 years ago

I too am interested in knowing how to implement subscriptions. I have the package set up to handle one time transactions but I have yet to find any examples of subscriptions using this package. I will reply back here if I find anything first.

Craig-Burch commented 4 years ago

No luck, BUT you CAN use sandbox.paypal.com or a paypal business account (for live versions of button) to create subscription smart buttons similar to this Vue wrapper. I am using the paypal business account smart buttons for sub based payments + this Vue wrapper for one time payments. Good luck. NOTE: If anyone reading this is just starting their research on a payment gateway and want to truly integrate APIs using server-side code, I don't fucking recommend paypal. Their documentation is a gawd damn headache. The only reason I am able to get away with using smart buttons for subscriptions is due to the fact that I have server logic set up that handles users groups and paypal responses with AWS. Tread Carefully with subscription based paypal. Cheers.

lematy commented 4 years ago

@Craig-Burch this is why im currently building a tool to handle subscriptions and payments for Paypal and Stripe.

You basically make a checkout link, pass the object containing product_id and you get a secure checkout page, then this is hooked up to your own webhook.

Works well, and yes, paypal was a massive pain, but hopefully if this saves someone a few days of pain, it was worth it ha

it should be released soon

Craig-Burch commented 4 years ago

@lematy That is exciting to hear! I will follow you on github and watch the progress.