#cesperian_api

1 messages ¡ Page 1 of 1 (latest)

dapper waveBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1218085796142387220

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

versed isle
wary nest
#

I've already read that page, thanks. I know that Stripe offers hosted payment pages. My question is if there is a method that can be invoked in the api that can create a payment link from either a payment intent id or invoice id

#

I am removing the option for a user to perform payments from within the app

#

and will email a link instead

versed isle
wary nest
#

it looks like this would only work if a client exists? My integration uses Elements, which doesn't consider who is making the payment, it just is collecting it

#

my system generates a payment intent and my app (with the Elements) integration allows the user to pay it. What I need to switch to (for ios) is have my system email a stripe-hosted payment link to the user instead.

#

what a pia. I hate apple

versed isle
#

i'm a bit confused, cause you mentioned an invoice id

wary nest
#

well, my system creates a payment intent, and an invoice is also created automatically as a result of this.

versed isle
#

can you share an example PaymentIntent id so that I can take a look at how your integration works right now?

wary nest
#

so when this pi is created, i have an id for it and an invoice id also. So if either one of those can be used to generate a payment link this would be ideal

wary nest
#

one sec

#

pi_3Orzu8FaJFPalF8Q07cjXBq2

#

that is a production pi

#

not test

versed isle
#

There's no Stripe Invoice being involved here as far as I can tell. For your current flow no, there's no way to send an email for a customer to pay from.

wary nest
#

hmm

#

the api docs payment intent create() returns an invoice id, i thought

#

*returns an invoice object

versed isle
#

If you're using the Invoice API, underlying an Invoice is a PaymentIntent. Because you're not using Invoices, the PaymentIntent's invoice will not be populated

wary nest
#

well, poop

#

i see the response object can include 'link' as a payment method type...

versed isle
wary nest
#

oh, that thing

#

I forgot about that.

#

So what I would have to do in order to facilitate what I need is to use the Invoice api

#

?

versed isle
#

I think the key point here is that if your business/app should be using Apple Pay's in-app payment, if that's the case, then Stripe isn't really an option

wary nest
#

for apple im going to remove the ability to pay in-app

#

i dont have the bandwith for ANOTHER separate payment integration