#cesperian_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Stripe does have emailable hosted payment pages. However, Stripe doesn't replace in-app purchases and you need to use Apple's API to perform in-app purchases. See here for details : https://stripe.com/docs/apple-pay#using-stripe-and-apple-pay-versus-in-app-purchases
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
when you create an invoice, you can create it with collection_method=send_invoice if that works for you? https://docs.stripe.com/api/invoices/create#create_invoice-collection_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
i'm a bit confused, cause you mentioned an invoice id
well, my system creates a payment intent, and an invoice is also created automatically as a result of this.
can you share an example PaymentIntent id so that I can take a look at how your integration works right now?
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
im trying to find one
one sec
pi_3Orzu8FaJFPalF8Q07cjXBq2
that is a production pi
not test
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.
hmm
the api docs payment intent create() returns an invoice id, i thought
*returns an invoice object
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
Link is not an email, it's a fast checkout solution : https://docs.stripe.com/payments/link
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
?
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