#mclowrider_sepa-debit-testing

1 messages ยท Page 1 of 1 (latest)

woven saffronBOT
#

๐Ÿ‘‹ 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.

hollow edge
severe oriole
#

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?

hollow edge
#

But it was not properly set up for off-session usage so the attempt to confirm the Payment Intent failed.

severe oriole
#

AH I see.

#

Is that what ti is

hollow edge
#

Because the payment method is SEPA Debit, we automatically mark the invoice as uncollectible and no further attempts are made

severe oriole
#

SO We need to mark as off session?

hollow edge
#

Yes the Payment Method was added directly through the Dashboard and did not collect the proper mandate

severe oriole
#

How do we do this?

hollow edge
#

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.",
severe oriole
#

This is test mode though.

#

Usually we can enter the IBAN in live mode

#

But we can't in test mode?

hollow edge
#

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

severe oriole
#

How do we do that in test mode?

hollow edge
#

You follow the guide I provided

severe oriole
#

Thats not the ususla flow though?

hollow edge
#

Yes it is

#

It's our canonical guide for saving SEPA Debit payment methods

severe oriole
#

We usually create the Ideal PM and then Stripe auto create the SEPA PM

#

When we setup off_session

hollow edge
#

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

severe oriole
#

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.

hollow edge
#

Gotcha. Let me see if I can test creating an iDEAL PM in the dashboard and check for any parameters

hollow edge
#

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

severe oriole
#

So do you think it's not supported in test mode?

hollow edge
#

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

severe oriole
#

Ok. Is there a way to use these token when creating the pm_successDelayed_nl?

hollow edge
#

Sorry, I don't understand what you mean here

severe oriole
hollow edge
#

To use those tokens, you would need to use the API

severe oriole
#

Sorry. Can I use the token to create PM rather than enetring IBAN etc?

hollow edge
#

Not in the Dashboard

severe oriole
#

stripe payment_methods create paymen_methods.sepa_debit ?

hollow edge
#

I would not take that approach, no

severe oriole
#

Just not sure where to pass the token

hollow edge
#

I would use a Setup Intent with a Customer

severe oriole
#

Ok. Do you have some docs for me please, on how I'll do that?

hollow edge
#

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?

severe oriole
#

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

hollow edge
#

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?

severe oriole
#

{
"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"
}
}

Review the list of error codes Stripe might return in an API response so you can handle responding to them in your integration.

hollow edge
#

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

hollow edge
#

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.

severe oriole
#

Yaaay, I found a bug ๐Ÿ‘๐Ÿพ

#

Thanks for your help Snufkin

#

Is there a reference I can get please?

hollow edge
#

Unfortunately I don't have an external reference I can provide, sorry