thdoan
thdoan

Reputation: 19067

Possible to block payment through stripe-node + webhooks?

Scenario:

Question:

How can I leverage the webhook event listeners I'm already using to block a payment if the customer's email domain matches a domain in a block list that I maintain?

Solutions I've considered:

Does anyone out there have a good solution to mitigate card testing headaches using Stripe payment links?

Upvotes: 0

Views: 314

Answers (1)

RyanM
RyanM

Reputation: 2960

Unfortunately I don't think there is a great answer for you if you are committed to using the current Stripe integration. Stripe Payment Links attempt to reduce as much friction as possible between the initial click and the processing of the payment. That being said, Stripe uses a large number of tools to monitor and prevent card testing by default so you may be better protected than you expect.

That being said, if you want to prevent payment based on email domain you may need to either pay for Radar and write your own custom rules or switch to collecting customer email as part of some authentication system in your own integration.

Fundamentally, to implement your own block/validation you need to either use the Stripe functionality (i.e. Radar) or collect the customer email at some point where you have control. For the initial subscription sign-up the first invoice is automatically generated and finalized and the payment attempted before you have a chance to intervene.

Upvotes: 0

Related Questions