Skip to content

Providers: Setup Stripe

✌ Makis Tracend edited this page Mar 12, 2015 · 10 revisions

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.

API keys

Once you login to Stripe Dashboard, visit the API keys page:

https://dashboard.stripe.com/account/apikeys

API keys

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.

production keys

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.

Application

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:

Register platform

Here is the regular view of the platform settings:

Application settings

Firstly, you'll need to set the website url to Onscribe, by entering https://onscri.be/ as the value:

Website URL

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:

Client ID & 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

Webhooks

Final step, switch to the Webhooks tab, and click the "Add URL" at the bottom of the popup:

https://dashboard.stripe.com/account/webhooks

Stripe webhooks

Enter https://onscri.be/order/update/stripe as the URL value and make sure the hook is live and broadcasts all events:

Stripe webhook callback

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

Onscribe Stripe Provider

As usual, this is a one-time setup. You are now able to use this Stripe provider in any number of products :)

Notes

  • Stripe uses the concept of a plan for subscriptions. Plans are automatically created for you by Onscribe, using your product info.
Clone this wiki locally