#erikshestopal_api

1 messages ¡ Page 1 of 1 (latest)

devout sandBOT
#

👋 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.

pearl plaza
#

Hi there

delicate kayak
#

hey

pearl plaza
delicate kayak
#

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?

pearl plaza
#

Correct, if you use setup_future_usage, we'll filter out any PaymentMethods that are not compatible

delicate kayak
#

oof

pearl plaza
delicate kayak
#

Can I use the deferred intent flow in conjunction with dynamic payment methods?

pearl plaza
#

Yes

delicate kayak
#

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_"
  }
pearl plaza
#

Oh, no, you can't use setupFutureUsage for Elements options either. Sorry I didn't make that clear

delicate kayak
#

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.