#cnguyen

1 messages ยท Page 1 of 1 (latest)

compact leafBOT
leaden hawk
#

Hello ๐Ÿ‘‹
What information are you trying to update exactly? and is this before or after confirming the PaymentIntent?

rigid shale
#

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

leaden hawk
#

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

rigid shale
#

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
          }
        }
      }
    );````
leaden hawk
#

does updating the charge work?

rigid shale
#

I will be not here if it works ๐Ÿ˜‚

#

Error is parameter_unknown

leaden hawk
#

๐Ÿ˜… Just wanted to make sure lol
looking into it...

rigid shale
#

you're right. Just kidding ๐Ÿ˜„

#

thank you

long spire
#

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

rigid shale
#

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 ?

long spire
#

I want to know if it's possible to update the billing details of the the previous PI

not possible after PaymentIntent succeeds.

rigid shale
#

ok just want to know that. So no retro action possible

#

thank you