#kpBX-pi-metadata
1 messages · Page 1 of 1 (latest)
You'd set them on creation, or during an update: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm using stripe from a third party (Appointedd) and when the payment is taken, somewhere a customerid and invoice id is stored in the metadata. Is this done in the Stripe set up
Can you share the Payment Intent ID? Assumption is that the third-party service sets this
pi_3LD2hhDzYmDDI4mv15zgrUOs
Was set in this update call from that third-party: https://dashboard.stripe.com/logs/req_dAq5B1TyjZi1nN
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Perfect - I can see the customer id is saved in the payment_intents but where is the invoice id saved to? Which API do I need to call to get invoice ids?
That's not a Stripe invoice ID (they're formatted like in_xxx)
So can't help you there I'm afraid!
So how can I change the invoice id to be the pi_ reference instead of the third party inv id?
You'd update the Payment Intent: https://stripe.com/docs/api/payment_intents/update#update_payment_intent-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok thanks - I'm not coding the pi post myself, its automatic via Stripe integration unfortunately
You'd need to speak to the developers who maintain the integration then