#jellybeer-_code
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/1366391399095861360
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- jellybeer-_code, 2 days ago, 13 messages
- jellybeer-_code, 3 days ago, 14 messages
- jellybeer-_checkout-modes-prices, 4 days ago, 37 messages
hi there!
helloo
can you share the PaymentIntent ID (pi_xxx)?
and what makes you think the payment method is not saved?
pi_3RIqriGdKuVLvOxU1zPGvDw5
wel if i look at the dashboard i dont see anything in the default payment method section, and when i go to the return_url i use:
$customer = \Stripe\Customer::retrieve($customerId);
// Zet de Stripe customer object om naar een array
$customerArray = $customer->toArray();
to see what the values are of the fields. and i ge this:
{
"id": "cus_SDHQ1yBbx8USf8",
"object": "customer",
"address": null,
"balance": 0,
"created": 1745843574,
"currency": null,
"default_source": null,
"delinquent": false,
"description": null,
"discount": null,
"email": "jennyrosen@example.com",
"invoice_prefix": "438294A7",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": [],
"name": "Jenny Rosen",
"phone": null,
"preferred_locales": [],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
}
that's normal, you didn't set a default payment method on the customer
but the customer does have a payment method saved: https://dashboard.stripe.com/test/customers/cus_SDHQ1yBbx8USf8
but that isnt the default payment method i asume
no, you need to make an extra API call if you want to set the default payment method on the customer
like for example in the return url i can set the customers default paymetn method?
i tried that but sadly enough ideal cannot be saved to customers ๐ฆ
like for example in the return url i can set the customers default paymetn method?
ideally you would do that in your webhook event handler. because the customer can always close their browser ebfore reaching thereturn_url
ah smart
iDeal does support setup_future_usage, so it can be saved on a customer: https://docs.stripe.com/payments/payment-methods/payment-method-support#bank-redirects-api-support
{"error":"PaymentMethods of type 'ideal' cannot be saved to customers."}
What's the request ID (req_xxx)?
req_Ki6fpJw2ocm3b5
I don't understand
why do you call the attach endpoint?
the payment method is already saved on the customer.
to set it as default, you need to update this property on the customer: https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method