Get notified on Web Push when a charge fails on Stripe
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.
But did you know that using our Stripe integration, you can specifically be notified when a charge fails, via Web Push? Here's how you can get started.
Step 1: Setup Stripe
/integrations/stripe
"object"
Properties
"string"
The signing secret to verify incoming requests from Stripe
Example Request
{
"webhook_signing_secret": "whsec_e5cf4458caae49ae72d8f275deb9b63bdd41dd5c932c27c9346d428fb9e1d0a0"
}
Step 2: Setup Web Push
/integrations/web_push
"object"
Properties
"string"
VAPID public key - generate one at https://tools.reactpwa.com/vapid.
"string"
VAPID private key - from the pair you generated.
Example Request
{
"public_key": "BNKZeSrRX_c3QfqzOvv1oshpj1qPbDcUJHKET6Ahs2u9-F4HgllPYxtgaGvGSqfytuALumX5NYZPLD8YmCwBxcw",
"private_key": "y56TIPdEzrQ0Ku_uQbGGkB84mYdF9pJl5IHvmAZ_fVs"
}