How to correctly setup a Stripe to Web Push integration

Stripe logo
Web Push logo

Stripe is a payment processing platform that allows you to accept payments online and in mobile apps. It is a powerful tool that enables you to accept payments from customers all over the world. It also offers a powerful webhooks API that allows you to receive real-time notifications about events that happen in your account.

Web Push is a technology that allows you to send notifications to your users' devices even when they are not on your website. It is a powerful tool to engage your users and bring them back to your website.

MagicBell makes it incredibly easy to combine the two, so that Stripe can be used as a source of events to be sent via Web Push.

Step 1: Setup Stripe

PUT
/integrations/stripe
Schema Type: "object"
Required Fields:
webhook_signing_secret

Properties

webhook_signing_secret "string"
required

The signing secret to verify incoming requests from Stripe

Example Request

{
  "webhook_signing_secret": "whsec_e5cf4458caae49ae72d8f275deb9b63bdd41dd5c932c27c9346d428fb9e1d0a0"
}

Step 2: Setup Web Push

PUT
/integrations/web_push
Schema Type: "object"
Required Fields:
public_keyprivate_key

Properties

public_key "string"
required
private_key "string"
required

Example Request

{
  "public_key": "<string>",
  "private_key": "<string>"
}

Specialized Integration Guides

Below are some more specialized guides for individual Stripe events: