Curious to see other peoples feedback on how they added subscriptions and one off payments to their application. I recently released my first project to accept payments and had some general feedback about my experience. Seeing if others have the same or solved them more easily than I did.
Here are my notes:
What payment providers did you use?
The ones I looked at were Stripe, PayPal and Square. I ended up using Stripe.
Setting up tracking subscription status with users in your application?
I had to write a bit of boilerplate code to track subscription updates from stripe and add them into my database to check if that user could be granted access.
Handling one off payments?
I considered doing a one off payment product to grant users a trial period of a week. However, I would have to add quite a bit of logic to add this feature that I would not benefit a ton from.
Handling subscription canceling?
Once again this can be controlled via the stripe API but it seems like it would be trouble to add logic for self service in my application. I went ahead with a policy to email then I cancel it on my side.
Payment Page(s)
Instead of writing my own page for payment, I ended up using the built in Pricing Table and Payment page widgets. Had to make sure to add some redirect logic back to my application on payment by user.
Would a service wrapping some of this logic be useful to someone who wants to set up a service quickly?