#day-paymentintent-updateamount
1 messages · Page 1 of 1 (latest)
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.
- day_dr33m, 3 hours ago, 23 messages
It is linked with my earlier question
Hey @worldly geyser Each thread is "self contained". We can't spend time reading complex old threads to gather state as we help numerous people in parallel.
You can definitely call the modify() method server-side to change the amount
day-paymentintent-updateamount
I was just saying the linked thread as Dingbot was mentioning that
How do I go about sending the payment_method details server-side?
from paymentelement
What does that mean "sending the payment method details"? Why would you "send" anything?
from client to server
but why would you do any of this? Sorry you seem down a rabbit hole after some confusion. All you said earlier is taht you want to change the PaymentIntent amount right?
correct, which i do this: stripe.PaymentIntent.modify(payment_intent, amount=total, metadata={"quantity": qty})
which errors out wanting a payment_method
one second
ok, i just sent another one through, where do i get the req id?
i have a pi
pi_3O8QhWHWDxdn0UDv0K9jQpMA
in test
let me create a new pi
sorry, that was an old one
pi_3O8S74HWDxdn0UDv08brRrMO
that's i new one that i was testing with
but still in test
That PaymentIntent worked totally fine. The Update is https://dashboard.stripe.com/test/logs/req_SKZc3P8LsEGlnM which did not error.
just ignore this?
also, is there anyway to update metadata fields without updating the entire metadata?
if i have
"metadata": {
"invoice_id": "abc123",
"quantity": "1"
}
can i just update the quantity without needing to resend the invoice_id?
Easiest is to try in Test mode which would give you the answer instantly
metadata is "merged" so you just pass new values, you don't have to re-pass everything
ok thank you