#ashtray-wasp_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/1358797249886425302
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, you can use this integration, https://docs.stripe.com/payments/build-a-two-step-confirmation that would allow you to inpect the payment method details before you create the PaymentIntent.
That's useful, but I think there are still scenarios when the payment method is unknown until it's paid โ like invoices with collection_method=send_invoice
You could also use https://docs.stripe.com/connect/platform-pricing-tools/pricing-schemes as you mentioned here as well.
Alternatively, for invoices that is collected at a later time, you could price them with a flat rate. You can calculate it by taking teh average of your existing flows where you have collection_method=send_invoice
Are you still here?
Yeah, trying to figure out how I can use flat rate prices for this.
My main issue with price schemes is that subscription payments need to have a higher fee than a non-subscription invoices. And I don't see a way to do it easily with the pricing schemes. The approach with metadata does not always work too, because the payment intent might be confirmed before the async workers react to the webhook events by actually setting the metadata.
I can't be of much help on the price settings for the pricing schemes as we're here to help developers with their code. However, I think overall the combination from the above recommendations would work. For payments made on the checkout page, use https://docs.stripe.com/payments/build-a-two-step-confirmation. Then, for paments made on collection_method=send_invoice, you calculate a flat rate/ average rate that applies to all invoices sent.
Got it, thanks
Sure