#mclowrider_sepa-debit-testing
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1503426533149118544
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello ๐
I can see this is a Subscription cycle generated Invoice and, at the time it was generated, the Customer did not have a valid payment method. This resulted in the related Payment Intent being in status of requires_payment_method: https://dashboard.stripe.com/acct_1POHNDBqblN9WokJ/test/events/evt_3TVsn6BqblN9WokJ3Jko204I
Why is that case though because subsequently it does?
The latest view of the PI shows a payment method attached but I cant see an update to the payment intent?
It looks like the Customer had a payment method attached at about the same time for this event: https://dashboard.stripe.com/acct_1POHNDBqblN9WokJ/test/logs/req_yvcW6Z6y26DHPz
But it was not properly set up for off-session usage so the attempt to confirm the Payment Intent failed.
Because the payment method is SEPA Debit, we automatically mark the invoice as uncollectible and no further attempts are made
SO We need to mark as off session?
Yes the Payment Method was added directly through the Dashboard and did not collect the proper mandate
How do we do this?
The actual error message associated with pi_3TVsn6BqblN9WokJ3MP3Pchy is
message: "This PaymentIntent requires a mandate, but no existing mandate was found. Collect mandate acceptance from the customer and try again, providing acceptance data in the mandate_data parameter.",
The best way to make sure this is set up properly is to follow our canonical guide for saving SEPA debit payment methods here: https://docs.stripe.com/payments/sepa-debit/set-up-payment
This is test mode though.
Usually we can enter the IBAN in live mode
But we can't in test mode?
That's not the problem, at least as far as I can tell. The issue is that you didn't set up a proper mandate (agreement with the bank to debit the account).
Even in Test mode, you need to do this properly
How do we do that in test mode?
You follow the guide I provided
Thats not the ususla flow though?
We usually create the Ideal PM and then Stripe auto create the SEPA PM
When we setup off_session
That may be your usual process but it's not THE usual process.
It looks like this Payment Method was created through the Dashboard. My team and I are not as familiar with working through the Dashboard since we specifically assist developers coding integrations with Stripe APIs
I understand. We dont have a way to create in the API because we dont do that in live either.
Its usually generated for us. I assume that doesnt work in test mode.
Gotcha. Let me see if I can test creating an iDEAL PM in the dashboard and check for any parameters
Thank you ๐๐พ
Yes, that is where iDEAL PMs generate a SEPA debit payment method. I'm not able to add an iDEAL payment method to a Customer in Test mode for either my French or British accounts
So do you think it's not supported in test mode?
No, since you were able to create the payment method yourself
I think there is some aspect of setting it up that was missed but since I'm not able to view the UI it's harder for me to say
Ok. Is there a way to use these token when creating the pm_successDelayed_nl?
Sorry, I don't understand what you mean here
To use those tokens, you would need to use the API
Sorry. Can I use the token to create PM rather than enetring IBAN etc?
Not in the Dashboard
stripe payment_methods create paymen_methods.sepa_debit ?
I would not take that approach, no
Just not sure where to pass the token
I would use a Setup Intent with a Customer
Ok. Do you have some docs for me please, on how I'll do that?
Yes you can see this here: https://docs.stripe.com/payments/sepa-debit/set-up-payment?payment-ui=mobile&platform=react-native#create-setup-intent
But you would use a slightly different approach and here's the code snippet for it:
setup_intent = client.v1.setup_intents.create({
"payment_method_types": ["sepa_debit"],
"customer": "{{CUSTOMER_ID}}",
"confirm": True,
"payment_method": "pm_successDelayed_nl"
})
This would create and confirm a SEPE debit payment method for the Customer that you identify by ID
Wait.... it looks like your back-end is using C# and .NET, right?
Yes it is.
stripe setup_intents create --customer="cus_UUvaQPDskNeDYA" --confirm=true --payment-method="pm_successDelayed_nl" --payment-method-types="sepa_debit"
Tried this ๐๐พ No joy
Okay so that would look like
var options = new SetupIntentCreateOptions
{
PaymentMethodTypes = new List<string> { "sepa_debit" },
Customer = "{{CUSTOMER_ID}}",
PaymentMethod ="pm_successDelayed_nl",
Confirm = true
};
var client = new StripeClient("sk_test_**************");
var service = client.V1.SetupIntents;
SetupIntent setupIntent = service.Create(options);
What message did you get?
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such PaymentMethod: 'pm_successDelayed_nl'",
"message_code": "missing_resource",
"param": "payment_method",
"request_log_url": "https://dashboard.stripe.com/acct_1POHNDBqblN9WokJ/test/workbench/logs?object=req_1PDtGjHlytpr9h",
"type": "invalid_request_error"
}
}
Hmmm... I'm getting the same error in the CLI
I'm digging into this since the same approach works with tokes like pm_card_visa
Okay I think that is actually a bug on our end
I have filed an internal ticket to try and get this resolved but unfortunately I cannot provide any timeline for when it will happen.
If you want to be notified of when this is fixed I recommend you write in to Support here: https://support.stripe.com/contact
Explain you were talking to an engineer on the Discord server, that there is a bug with the test tokens for SEPA Debit, that this has already been flagged internally, and you just want to be kept up to date on the progress.
Yaaay, I found a bug ๐๐พ
Thanks for your help Snufkin
Is there a reference I can get please?
Unfortunately I don't have an external reference I can provide, sorry