#ashtray-wasp_api

1 messages ยท Page 1 of 1 (latest)

calm drumBOT
#

๐Ÿ‘‹ 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.

limpid breach
digital zephyr
#

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

limpid breach
#

Are you still here?

digital zephyr
#

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.

limpid breach
#

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.

digital zephyr
#

Got it, thanks

limpid breach
#

Sure