#ceci

1 messages · Page 1 of 1 (latest)

crude domeBOT
golden eagle
#

Can you send the invoice id so I can check? For that card, that's the expected behavior

#

It requires auth on all transactions

#

Likely you want to use 4000002500003155

#

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods.

hearty star
#

the invoice id on the real payment that went with the two webhook events?

#

Thats the ID in_1NGh5cE5V5UmiQs1xJqQjUbe in production environment

golden eagle
#

That's expected

hearty star
#

Can you give me some hints how to solve that case and prevent responding to that event and sending an email when the payment is properly handled in stripe?

golden eagle
#

So do you only want to send the email when the customer's payment fails for off-session payments?

hearty star
#

yes

golden eagle
#

There's a few ways to do this. Since this is a subscription creation invoice and customer will need to be on-session to pay it, you can check billing_reason: "subscription_create" in the invoice.payment_failed event

#

That's one option

hearty star
#

That would be sufficient, let me try.

Thank you for your time and help!
If something is not right I will type back here.

Have a great day!

golden eagle
#

Sounds good