#dannnnnnnnnnnnnnnnnnnnnn

1 messages · Page 1 of 1 (latest)

outer ridgeBOT
#

Hello! We'll be with you shortly. 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.

gusty terrace
#

Hm not sure I understand

#

You're saying that setting the metadata doesn't work?

soft gust
#

pi_3O8OCXAyaQeh2nqy2xBPkPik take a look at this payment intent

#

Basically we modify the metadata but the charge is created after we pay it with the old metadata

gusty terrace
#

Oh it's because you called confirm on creation

#

You need to update before confirming the payment intent

#

If you want the updated metadata reflected onto the charge

#

Because when you confirm, that submits the payment

#

Calling confirm is what triggers the metadata copy to the charge

soft gust
#

ahh ok, so with our current system, if we continued to confirm is there any way to access the charge to modify its metadata prior to someone paying and the payment intent succeeding?

#

cause currently I'm not sure how to retrieve that charge, as doing stripe.Charge.list(limit=1) to get the most recent charge only gets ones that have succeeded

outer ridgeBOT
gusty terrace
#

The issue is you're confirming on payment intent creation, so no

#

Why not just create payment intent without confirming?

#

Then you can update your metadata and just call /confirm when you're ready

soft gust
#

hmm, with our current system I'm not sure how feasible that is so we'd probably have to change a lot, is it possible to unconfirm a payment intent to edit it then reconfirm it?

gusty terrace
#

No

#

Ok so I guess the best option for you if you don't want to delay confirmation is to just update the metadata on the charge manually

#

You can get the charge id from the payment intent on the latest_charge param

soft gust
#

sadly we process a lot of information on our side from the charge succeeded metadata, and seeing as the charge only exists/can be found seemingly after its been paid for it wouldn't matter to modify it then

gusty terrace
#

Yeah if you need the updated metadata on charge.succeeded, then you should wait to confirm

#

We just do a 1-time copy of metadata on confirmation

#

Metadata isn't synced between payment intent and charge automatically

soft gust
#

ok thank you for your help!

gusty terrace
#

No problem