#cnguyen
1 messages ยท Page 1 of 1 (latest)
Hello ๐
What information are you trying to update exactly? and is this before or after confirming the PaymentIntent?
after
I see that I don't have the billing details in my PI/charge
I have it on my customer or PM
So I want to "retro" update the billing details of PI/charge according to the customer/pm billings info
So it's after PI here
Have you tried updating the billing details on the customer to see if it retroactively updates previous information?
As far as I know, it should as customer is an expandable property
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-customer
Which should theoretically retrieve the Customer object again when listing.
If you have an example of a property that you
are looking at
then can you share the example? Might help to be on the same page
For example, here pi_3MBR8tED5xkfDv2c1CXxaQbN, I have no billing detail on the charge object
If I check the customer (cus_MvHifIaVuB9di5) or the PM (pm_1MBR8lED5xkfDv2ccBWq3fCp) associated to that one, I have one
So, for now, I tried something like :
chargeId,
{
billing_details: {
address: {
city: address.city,
country: address.country,
line1: address.street,
postal_code: address.postcode
}
}
}
);````
does updating the charge work?
๐
Just wanted to make sure lol
looking into it...
stepping in here, to clarify a couple of things
1/
I have it on my customer or PM
billing details have to be on the PaymentMethod
that is from where they are applied to a PaymentIntent
so the right approach is to have a PaymentMethod with billing_details, and pay a PaymentIntent with that, the billing details will populate on the PaymentIntent
so taking a sec to look at the PaymentIntent ID you shared
ah I think I know what the issue is
your PaymentIntent moved to a status: succeeded meaning a successful Charge was created at roughly 2022-12-04 22:59:24 UTC
at that time, your PaymentMethod pm_1MBR8lED5xkfDv2ccBWq3fCp did not have billing_details on it
a request was made some seconds later at 2022-12-04 22:59:32 UTC https://dashboard.stripe.com/logs/req_7uRkblhBVuKZ9Y which updated billing_details on the PaymentMethod
so your PaymentIntent and Charge rightfully have no billing details on them, since the billing details were not present on the PaymentMethod when the charge was created
you need to make sure that you're adding billing details on the PaymentMethod before creating a charge.
or pass billing_details through Stripe.js when you confirm the PaymentIntent on your webpage
Yes I know that. I already fix it
I want to know if it's possible to update the billing details of the the previous PI
or once it's succeeded, it's too late ?
I want to know if it's possible to update the billing details of the the previous PI
not possible after PaymentIntent succeeds.