Stripe webhooks
Some payment methods like SEPA Direct Debit can take up to 6 business days until the payment is confirmed. Learn how to use webhooks to get notified when the payment is succeeded.
When you set up Stripe webhook as described, the Stripe payments with delayed payment confirmations are marked as paid, as soon as Merx receives the hook.
Create a Stripe webhook
Go to dashboard.stripe.com/test/webhooks/create?events=payment_intent.succeeded to create a new hook.
Enter the Endpoint URL: https://[your-domain]/api/shop/hooks/stripe.
Copy the created Signing secret. whsec_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Set the stripe.webhook_signing_secret option
Add the Signing secret as stripe.webhook_signing_secret option.
<?php
return [
'wagnerwagner.merx.stripe.webhook_signing_secret' => 'whsec_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
];
We recommend to set these keys in /site/config/env.php on your server only. For your development environment you can use a separate env file containing sandbox keys.
Use other Stripe hooks
You can create your own stripe-hooks hook, to handle other Stripe events via webhook. To learn more about Stripe webkooks you can read the Stripe Docs.