#ronosho_unexpected

1 messages ยท Page 1 of 1 (latest)

light violetBOT
#

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

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

knotty waveBOT
#

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.

chilly cedar
#

Posting the following

POST https://api.stripe.com/v1/checkout/sessions
Authorization: Bearer {{api-key}}
Content-Type: application/x-www-form-urlencoded

mode = payment &
customer_creation = always &
currency = eur &
success_url = http://localhost:5146/webhook &
line_items[0][price_data][currency] = eur &
line_items[0][price_data][product_data][name] = Unit A1000 &
line_items[0][price_data][unit_amount] = 2000 &
line_items[0][quantity] = 1 &
payment_method_options[card][setup_future_usage] = off_session &
payment_method_options[ideal][setup_future_usage] = off_session 

Results in

{
  "error": {
    "message": "Invalid payment_method_options[ideal][setup_future_usage]: must be none",
    "param": "payment_method_options[ideal][setup_future_usage]",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_QjfsJ9ZWhc4Sv9?t=1711460213",
    "type": "invalid_request_error"
  }
}
knotty waveBOT
silent spire
#

Hi there ๐Ÿ‘‹ you can't use payment mode Checkout Sessions to set up iDEAL payment methods for future usage. iDEAL is technically a one-time use payment method, though it can sometimes be used to set up a SEPA payment method for recurring payments.

If you want to accept recurring payments in this flow, I'd recommend looking into implementing SEPA rather than iDEAL.

chilly cedar
#

Hi Toby,
I know it results in a SEPA payment method being saved.
But how can I realize it using the hosted checkout?

Customer pays 100โ‚ฌ via Ideal and allows for recurring payments via SEPA.
I would want to use payment_intent_data.setup_future_usage but then it only shows cards payment methods

silent spire
#

You can't, that isn't supported there for iDEAL.

chilly cedar
silent spire
#

That uses a subscription mode Checkout Session, you can't do it with the payment mode you're trying to use.

chilly cedar
#

But setup does not handle an initial payment correct?

silent spire
#

Correct

chilly cedar
#

I would have to use the payment intents api after a customer was created.

POST https://api.stripe.com/v1/payment_intents
Authorization: Bearer {{api-key}}
Content-Type: application/x-www-form-urlencoded

amount = 12500 &
currency = eur &
customer = {{customerId}} &
automatic_payment_methods[enabled] = true &
setup_future_usage = off_session
#

But then use Stripe Elements to show the checkout

#

And this will save a SEPA payment method if ideal was selected

#

that's the weird thing, it would make sense that the hosted checkout would bahve the same way.
It's not different

#

This is exactly what I need but using hosted checkout ๐Ÿ˜…

silent spire
#

I'll be sure to file your feedback with our teams that this is something you'd like to see added to Checkout Sessions in the future.

chilly cedar
#

Ok Toby thanks, sadly will have to dissapoint the other development team

silent spire
#

Any time, sorry it wasn't better news this time around.

chilly cedar
#

Well it's better than spending a week to find an option that might work so it's good news as well ๐Ÿ˜‰