We are a website with a subscription service that currently only offers payment through PayPal. I want to expand so users can also pay with cryptocurrency and stripe. This is our checkout/premium page: [login to view URL]
Site info: MySQL, Django, Python, Typescript
You will need to implement the gateways and make them function but the other part of the job is giving the users premium perks/features after purchasing. All of this is already functioning with PayPal so it should not require updating the code, all the perks are already being given, we are just adding another method which will have to be linked.
For the cryptocurrency, my idea is to use bitpay, which can be used for subscriptions as they state in this blog: [login to view URL]:~:text=BitPay%20sends%20bill%20emails%20to,that%20has%20a%20recurring%20schedule.
2 small Customizations needed for above gateways
1) This is a subscription, meaning if the user cancels/does not pay, the premium perks need to be taken away, but if it successfully recharged, then you need to give perks for another month, this is working for PayPal but also has to work for Stripe, for crypto the system is slightly different:
For bitpay the perks should expire after the month is over, until the user pays again through bitpay or another method
This is because Bitpay does not offer subscriptions, you just need to configure it so it emails the user when it expires, which is built into the bitpay API.
2) adding a place where users can cancel the stripe subscription/just a button that cancels it on the users dashboard.
development flow is you pull and push through github like any repo, and then go to [login to view URL] to deploy to live.