#ELIZZER-Invoice
1 messages · Page 1 of 1 (latest)
Hi, can you elaborate on sending unique Invoice id?
And what transaction id is that?
to verify the payment later
as we may have different payment gateways, we need invoice id and the transaction in in our db....
When you create an Invoice with Stripe API we will return an invoice id in_xxxx
You are welcomed to generate an unique transaction id on your own, and attach to the metadata of that Invoice object in Stripe
so i came to know invoice id is a unique id that we generate and send id to the payment gate way, so even on any network failure we could access the payment detials
To avoid confusion, are you talking about an invoice id that you generated?
yes, that we generate..
Sure, then let's include it in the metadata when you create a Stripe Invoice
probably from our side to send to the customer..
could you explain it?
or guide me, how to search it later with our invoice id
Sure, let's see this https://stripe.com/docs/videos/developer-foundations?video=metadata&lang=node
Here will be the parameter you need to set: https://stripe.com/docs/api/invoices/create#create_invoice-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.
that was a very quick response i have ever received 🥳
but could we able to query payintents with our invoice in metedata in api?
You should be able to List Invoice first, by metadata, then find Payment Intent inside each Invoice object
You can consider to include metadata directly to PaymentIntent instead of Invoice if that's more convenience
Do you create with payment mode of subscription mode?
Checkout Session itself is an object and it can have its own metadata
payment mode, but we might have our own, would be easy in multi platforms right?
I don't follow the last question. Do you mean you might have your own Checkout page? Yeah it's totally ok
no
we are not using the invoice from stripe
we use the stripe's checkout page,
after that how to query a checkout session with the metadata
Okie let's put it simple. Let's insert metadata on PaymentIntent, then you can use the search query for PaymentIntent targeting metadata: https://stripe.com/docs/search#query-fields-for-payment-intents
Yeah checkout session is not searchable yet. You can pass metadata directly to the PaymentIntent inside Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-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.
yep that was the soln
thank you so much
on further help could I contact you directly?
fm, in that case please write to Support and ask them check on your account, why search is unable
Did you use this? https://stripe.com/docs/api/payment_intents/search?lang=node
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes
@hidden saffron Are you in India?
Search API isn't available there: https://stripe.com/docs/search#regional-availability
yes
Yeah, that API isn't available for Indian merchants right now
what am i suppose to do?
Well, what are you trying to do with the Search API?
@hidden saffron hi, whats the question?
i want to search a payintent with metadata, but search option is invalid in India
what am i suppose to do?
you'd have to just use the List PaymentIntents API and then search the returned list manually in your code.