#smudgester

1 messages · Page 1 of 1 (latest)

stable crowBOT
young chasm
#

Hey there, you're trying to set up sepa payment methods using IBANs? Is that right?

floral trout
#

Not exactly.

Basically we are after an endpoint that when passed either sort code, account number and country code OR iban and country code returns a response confirming if it's a valid account or not.

We are not setting up a payment, at this point, just validating that the information the user has entered is correct. If you know what I mean ?

young chasm
#

There is no API that offers what you ask. You'll want to look at our options for setting up payment methods for future use via setup intents.

For example, you could use setup intents and specify support for a list of payment method types you want to offer (or use the automatic list after configuring in your dashboard) then use the payment element to collect the details:
https://stripe.com/docs/payments/save-and-reuse

Learn how to save card details and charge your customers later.

#
stripe.confirmSepaDebitSetup(
    clientSecret,
    {
      payment_method: {
        sepa_debit: iban,
        billing_details: {
          name: accountholderName.value,
          email: email.value,
        },
      },
    }
  );