#erikshestopal_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/1267959701082210337
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
hey
Affirm (and other BNPL payment methods) does not support setup_future_usage: https://docs.stripe.com/payments/payment-methods/integration-options#additional-api-buy-now-pay-later
ok, that's fair and makes sense for BNPL. So is the following scenario impossible to achieve then:
- create a payment intent with
setup_future_usage - if the user chooses a credit card at checkout, save the card to the customer's account
- if the user chooses a BNPL option, disregard and don't save the payment method to the customer's account
It seems like if the setup_future_usage is provided, Stripe will filter out any payment methods that do not support this flag, correct?
Correct, if you use setup_future_usage, we'll filter out any PaymentMethods that are not compatible
oof
You could use our deferred intent flow, specifically the two-step confirmation: https://docs.stripe.com/payments/build-a-two-step-confirmation
Can I use the deferred intent flow in conjunction with dynamic payment methods?
Yes
Hmm, that seems to behave identically as before and still does not show affirm if I provide setupFutureUsage:
const options: StripeElementsOptions = {
mode,
setupFutureUsage: 'off_session',
amount: amountInCents,
currency: currencyCode,
paymentMethodCreation: "manual",
loader: "always",
paymentMethodConfiguration: "pmc_",
onBehalfOf: "acct_"
}
Oh, no, you can't use setupFutureUsage for Elements options either. Sorry I didn't make that clear
got it - thanks. So either I have to use credit card + ACH only in order allow saving the payment method or I have to use Affirm and not be able to save payment methods, even if the user chooses a credit card in the Elements UI.