#geoff_api

1 messages ยท Page 1 of 1 (latest)

buoyant daggerBOT
#

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

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

brazen pelican
#

Hello

#

What are you trying to exactly?

haughty sequoia
#

i need to get the mandate id from the payment_method once it is created. i need to access the setup_intent object in order to get the mandate id

brazen pelican
#

Yeah sorry

haughty sequoia
#

i was following this doc

brazen pelican
#

I misread above

haughty sequoia
#

lol for a moment i thought i misread the doc haha xD

brazen pelican
#

Hmm okay and what does your payload look like when you retrieve the PaymentMethod in this manner?

haughty sequoia
#

{
"id": "pm_1PuxlBEfR5bA8zIh3eA8qsB3",
"object": "payment_method",
"allow_redisplay": "unspecified",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": "quatorze@quatorze.fr",
"name": "aze",
"phone": null
},
"created": 1725373869,
"customer": "cus_PyKZBCk2OrCoD2",
"livemode": false,
"metadata": {},
"sepa_debit": {
"bank_code": "20041",
"branch_code": "01005",
"country": "FR",
"fingerprint": "zdz3RiJj2F6Z582i",
"generated_from": {
"charge": null,
"setup_attempt": null
},
"last4": "2606"
},
"type": "sepa_debit"
}

#

the sepa_debit.generated_from object is empty

buoyant daggerBOT
haughty sequoia
#

this payment method was created with setup_intent

brazen pelican
#

Ah yeah I think that will only not be null if you generate the SEPA Debit PaymentMethod from a bank-based redirect like iDEAL

haughty sequoia
#

does that mean that it won't work in test_mode ?

brazen pelican
#

No it works in test mode, it just will always be null for the manner you are creating the SEPA Debit PM since you are creating it directly and not via a bank-based redirect

haughty sequoia
#

i don't understand what you mean by "bank-based" redirect

twin plover
#

Hi there ๐Ÿ‘‹ taking over, as my colleague needs to step away

Bank-based just means a workflow that requires a redirect to the bank's authentication portal

haughty sequoia
#

ok

#

thank you for your time ๐Ÿ™‚