#goliath1879_docs

1 messages ยท Page 1 of 1 (latest)

viral jayBOT
mighty elkBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

viral jayBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1259857335531339878

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

fossil frost
#

Hi ๐Ÿ‘‹ as far as I'm aware none of those actually trigger a pre-debit notification being sent. Can you tell me more about what you're trying to test?

hidden totem
#

Hi

#

I setup mandate for my workflow

#

and as per the documentation any transaction amount more than 15000 should trigger a notification being sent

#

but it didn't happen

#

Am I missing something?

#

Also now the paymentIntent failed due to no approval from the user. My assumption is the after getting the pre-debit notification you verify the transaction through the notification

#

Please correct me if I am wrong

fossil frost
#

Those mandates aren't sent during testing.

#

Not that I'm aware of.

#

Do you have more details about how you tested that flow that you can share?

hidden totem
#

Hmm, how can I test the pre-debit notification flow?

#

I want to test if any customer for which the mandate is generated and a payment intent is created but the amount is more than 15000 how does the notification looks like and how he/she can approve the payment?

fossil frost
#

You can't test that. My understanding is that those notifications are sent by your customers bank, so they may not be consistent in appearance and you wouldn't get much if any value from us sending a fake test notification that may not be representative of what the bank will send.

hidden totem
# fossil frost Do you have more details about how you tested that flow that you can share?

I added required mandate_options parameters in setupIntent and confirmed through setupintent.succeeded webhook logs that mandate is created. And also created invoice manually for a transaction and finalized it as well.

The entire flow works as expected however I want to test for the other scenario when the transaction is more than 15000 (which is the maximum limit of off_session mandate)

hidden totem
fossil frost
#

The scenario that each of those test cards causes to be simulated is listed there in the docs, and you use those test card numbers to trigger those scenarios.

hidden totem
#

Please help me understand this scenarios (could be very stupid, please bear with me)

The way i test each scenario is add the card details through setupIntent and then make sure mandate is created successfully (via webhook logs)
Once the mandate is created and setup is done. I create a invoice manually per transaction (since the amount is varying per month, I avoid creating subscription) and then finalise the invoice.

#

Is this the right way to test each scenarion? I am not sure how else can I test each scenario differently.

Also how to cancel a mandate if in a testing mode I don't get notification and there is no cancel mandate API. I believe removing the payment method is one way but the payment Intent is already created will that affect it?

fossil frost
#

Yes, that sounds like the correct way to test each scenario.

#

To test the scenario where a customer cancels a mandate, you use the fourth test card from that table which simulates the following scenario:
Simulates a cardholder canceling a mandate of any amount.

hidden totem
#

I still don't understand the point of second and third scenario from the table if we don't get any test notification from the stripe test bank in test mode.

Simulates a cardholder receiving a pre-debit notification for an off-session payment either canceling or pausing the payment for a mandate of any amount.

#

this is exactly what I did and the paymentIntent failed with no approval! what did I miss?

fossil frost
#

Nothing, you used a test card that simulated that happening. No notification was sent, but the Intent progressed through it's lifecycle as if one was sent and was then canceled or paused.

#

Which results in a payment failure

hidden totem
#

okay I think I got it now. All these scenarios simulates the paymentIntent flows.

#

ok thanks