-
Notifications
You must be signed in to change notification settings - Fork 0
Providers: Setup Stripe
To use Stripe you'll need to register for an account with the service. Also note that your subscribers need an active account with Stripe before they can complete a subscription with this provider.
Once you login to Stripe Dashboard, visit the API keys page:
https://dashboard.stripe.com/account/apikeys
Here you'll find the credentials Onscribe needs to connect with the Stripe API. Focus on the production keys, the development keys cannot generate payments.
If you want to stop using Onscribe in the future you can freely reset the key / secret from this page and eliminate any possible security breach.
After noting down the key / secret, switch to the application settings, at this URL:
https://dashboard.stripe.com/account/applications/settings
The first time you visit these settings you may have to click a link in the corner "Register your platform" which will bring up a screen like this:
Here is the regular view of the platform settings:
Firstly, you'll need to set the website url to Onscribe, by entering https://onscri.be/
as the value:
Scrolling down you'll find the production client_id
; note that down as it completes the three fields Onscribe needs to setup the provider. As usual, the development client_id
will not generate any transactions...
Right under the client id is a field for the auth callback:
Set this back to Onscribe, otherwise your users will not be able to complete a subscription. This is the url you need to use:
https://onscri.be/order/complete/stripe
Final step, switch to the Webhooks tab, and click the "Add URL" at the bottom of the popup:
https://dashboard.stripe.com/account/webhooks
Enter https://onscri.be/order/update/stripe
as the URL value and make sure the hook is live and broadcasts all events:
If the webhook isn't setup your users will still be able to subscribe but Onscribe will not be notified if they modify their subscription outside of Onscribe (for example from the Stripe Dashboard).
That's it! You are now ready to create your Stripe provider in Onscribe, using the credentials you noted down:
http://onscri.be/provider/create
As usual, this is a one-time setup. You are now able to use this Stripe provider in any number of products :)
- Stripe uses the concept of a plan for subscriptions. Plans are automatically created for you by Onscribe, using your product info.