Stripe
Requirements:
Connecting the Platform
Section titled “Connecting the Platform”Go to Integrations > Stripe > Connect Platform (if not already connected). This will open a dialog with a form to fill out. Following are the fields you need to fill out to connect your Stripe account with Crosspay.
Production Secret Key
Section titled “Production Secret Key”- Make sure you’re in the “Live” mode in your Stripe dashboard, then go to Developers (at bottom left corner) > API Keys
- In the Restricted Keys, click on “Create restricted key” if you don’t have one already
- For
How will you be using this key?selectProviding this key to a third-party application - Provide the Name and URL for the key, like “Crosspay Access” and “https://app.crosspay.dev” respectively.
- Select
Customise permissions for this keyand Create Key with the defaults. - After creating the key, copy the
Secret Keyand store it securely, as it contains sensitive information and won’t be shown again. - Now enter the
Secret Keyin the respective field in Crosspay form.
Production Webhook Secret
Section titled “Production Webhook Secret”To allow Crosspay to receive real-time updates about purchases, subscription renewals, cancellations and other events, you need to set up a webhook in Stripe.
- In your Stripe dashboard, go to Developers > Webhooks > Add destination
- In the “Endpoint URL” field, enter the
Webhook URLfrom the Crosspay Stripe form. - For “Events to send”, select “Select events” and choose the following events:
checkout.session.async_payment_failedcheckout.session.expiredcustomer.subscription.createdcustomer.subscription.deletedcustomer.subscription.pausedcustomer.subscription.resumedcustomer.subscription.resumedcustomer.subscription.updatedcustomer.subscription.trial_will_end
- Click on “Add endpoint” to create the webhook.
- After creating the webhook, click on it to open its details, then copy the
Signing secretand paste it in the respective field in Crosspay form.
Now Stripe will start sending real-time updates about purchases, subscription renewals, cancellations and other events to Crosspay.
Sandbox Secret Key and Webhook Secret
Section titled “Sandbox Secret Key and Webhook Secret”To setup sandbox testing, you need to repeat the same steps as above but in a Sandbox in Stripe dashboard, and use the respective Sandbox Webhook URL and Secret Key from Crosspay form. This will allow you to test the integration and make sure everything is working correctly before going live.