#ELIZZER-Invoice

1 messages · Page 1 of 1 (latest)

tall bough
#

Hi, can you elaborate on sending unique Invoice id?

#

And what transaction id is that?

hidden saffron
#

to verify the payment later

#

as we may have different payment gateways, we need invoice id and the transaction in in our db....

tall bough
#

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

hidden saffron
#

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

tall bough
#

To avoid confusion, are you talking about an invoice id that you generated?

hidden saffron
#

yes, that we generate..

tall bough
#

Sure, then let's include it in the metadata when you create a Stripe Invoice

hidden saffron
#

probably from our side to send to the customer..

hidden saffron
#

or guide me, how to search it later with our invoice id

tall bough
hidden saffron
#

that was a very quick response i have ever received 🥳

#

but could we able to query payintents with our invoice in metedata in api?

tall bough
#

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

hidden saffron
#

we are creating checkout sessions

#

but how to query them?

tall bough
#

Do you create with payment mode of subscription mode?

#

Checkout Session itself is an object and it can have its own metadata

hidden saffron
#

payment mode, but we might have our own, would be easy in multi platforms right?

tall bough
#

I don't follow the last question. Do you mean you might have your own Checkout page? Yeah it's totally ok

hidden saffron
#

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

tall bough
hidden saffron
#

but how to search a checkout session?

tall bough
hidden saffron
#

yep that was the soln

#

thank you so much

#

on further help could I contact you directly?

tall bough
#

fm, in that case please write to Support and ask them check on your account, why search is unable

hidden saffron
bold crest
#

@hidden saffron Are you in India?

hidden saffron
bold crest
#

Yeah, that API isn't available for Indian merchants right now

hidden saffron
#

what am i suppose to do?

bold crest
#

Well, what are you trying to do with the Search API?

minor sapphire
#

@hidden saffron hi, whats the question?

hidden saffron
#

i want to search a payintent with metadata, but search option is invalid in India

#

what am i suppose to do?

minor sapphire
#

you'd have to just use the List PaymentIntents API and then search the returned list manually in your code.

hidden saffron
#

but that is a heavy burden to the server?

#

if the hosted server is on other location would it work?