#swe_api

1 messages ¡ Page 1 of 1 (latest)

stiff sparrowBOT
#

👋 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/1276180745714536448

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

compact shoal
#

Is the customer attachment not mandatory anymore? For ideal and bancontact?
Also, most of the payment information is only available in payment intents and setup intents, not the payment method. Is this also expected?

lapis isle
#

Hi, you do not think you can create a subscription without attaching a customer on any payment method types. Yes, it is expected that some payment methods are not possible for recurring payment. However, I am unsure if that is what you're asking on the second question. Can you clarity please?

stiff sparrowBOT
compact shoal
#

I am not creating subscription in Stripe. My usecase is below:

  1. Create a payment intent via ideal with setup future usage
  2. Confirm ideal payment intent and authorize.
  3. From the sepa payment method created above, I will use that SEPA payment method for recurring purpose.

In the above step, I did not create any customer at Stripe. Earlier, without customer, I will not be able to use the SEPA for recurring payments. It will throw an error stating that - only attached payment methods can be used. Today, I am able to create SEPA token without customer from ideal.

#

Reg. my second question, I would like to see mandate, last 4, bank details, payment method, etc in payment method retrieve API. But, I am getting these details only in the initially associated payment intent / in setup intent with expand[] = latest_attempt parameter.

lapis isle
compact shoal
#

req_QRAOPuq8Pkudkb

#

It started from this request ID. I am unable to get the request ID of the related recurring payment.

frigid wigeon
#

Hi there taking over here

#

Looking into this

#

Do you have a request id where this failed before?

#

My colleague confirmed that it's fine create a payment intent without passing customer like this

#

We allow attaching payment method separately after payment intent call

compact shoal
#

What happens if I don't attach the customer to the payment method at all?

#

The same payment method - doesn't work again after some time. - req_5JIfJEOL8TmxjM

#

Also, could you address the second question as well?

frigid wigeon
#

You need to explicitly attach it to a customer first

frigid wigeon
compact shoal
#

Okay, got it. Thanks

frigid wigeon
#

What are you seeing instead?

compact shoal
#

We are not receiving mandate information in payment method retrieve call.

{
"id": "pm",
"object": "payment_method",
"allow_redisplay": "unspecified",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": "test@xyz.com",
"name": "John Smith",
"phone": null
},
"created": 1724338805,
"customer": "cus",
"livemode": false,
"metadata": {},
"sepa_debit": {
"bank_code": "RABO",
"branch_code": "",
"country": "NL",
"fingerprint": "fp",
"generated_from": {
"charge": "charge",
"setup_attempt": null
},
"last4": "5264"
},
"type": "sepa_debit"
}

#

We are receiving the following data only, when I try to retrieve sepa debit. mandate information is not returned in payment method. I will ahve to get it from the charge.

frigid wigeon
#

Ah yeah mandates specifically won't show there

#

You do need to save the id from the charge

compact shoal
#

Will that initial chargeID be used at a later point? Or is it enough if I save the mandate from payment intent itself?

frigid wigeon
#

Will that initial chargeID be used at a later point?
Not sure what you mean by this exactly.

Or is it enough if I save the mandate from payment intent itself?
Yes this is enough

compact shoal
#

The charge created using the payment intent (during SEPA token generation) - will it be required later for anything?

compact shoal
#

Super thank you so much. This helps

frigid wigeon
#

No problem