#jellybeer-_code

1 messages ยท Page 1 of 1 (latest)

wet gulchBOT
#

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

warm cobalt
#

hi there!

charred comet
#

helloo

warm cobalt
#

can you share the PaymentIntent ID (pi_xxx)?

#

and what makes you think the payment method is not saved?

charred comet
#

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
}
warm cobalt
#

that's normal, you didn't set a default payment method on the customer

charred comet
warm cobalt
#

no, you need to make an extra API call if you want to set the default payment method on the customer

charred comet
#

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 ๐Ÿ˜ฆ

warm cobalt
#

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 the return_url

charred comet
#

ah smart

warm cobalt
charred comet
#

{"error":"PaymentMethods of type 'ideal' cannot be saved to customers."}

warm cobalt
#

What's the request ID (req_xxx)?

charred comet
#

req_Ki6fpJw2ocm3b5

warm cobalt
#

I don't understand

#

why do you call the attach endpoint?

#

the payment method is already saved on the customer.

wet gulchBOT
warm cobalt
charred comet
#

ah i see that works

#

thank you