#nikita_api

1 messages ยท Page 1 of 1 (latest)

daring horizonBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

ancient inlet
#

Hello ๐Ÿ‘‹

Do you have a question?

buoyant roost
#

Hey! yes, I'm not able to show US Bank transfers as a payment method on my frontend for Stripe Connect using Elements

#

Credit cards and US Bank account work great

ancient inlet
#

How are you integrating the Payment Element?

buoyant roost
#

hmm think so

#

I get this error when creating the intent for Stripe Connect

#

and so following that link I don't see which payment type is for Bank Transfers

#

the link you sent mentioned adding custom_balance which is the error we get above that I just shared

ancient inlet
#

Can you share the API request ID that returns this error?

buoyant roost
#

req_AwgMVpdCiXEzWX

#
  "customer": "cus_Stbh0GC9Zk3qIV",
  "payment_method_types": {
    "0": "card",
    "1": "us_bank_account",
    "2": "link",
    "3": "customer_balance"
  }
}```
ancient inlet
#

If you are manually listing the payment_method_types parameter, you need to also provide the payment_method_options our code snippet shows here

buoyant roost
#

I see, and if I use automatic, if it's enabled everywhere I should see it pop up as an option, right?

    {
        var customer = await stripeCustomerService.GetOrCreateStripeCustomerByBillingAccountId(billingAccountId);

        var client = new StripeClient(configuration["Stripe:ApiKey"]);
        var requestOptions = new RequestOptions { StripeAccount = customer.PaymentProcessorAccount.AccountId };

        var service = new SetupIntentService(client);

        var options = new SetupIntentCreateOptions
        {
            Customer = customer.CustomerId,
            AutomaticPaymentMethods = new SetupIntentAutomaticPaymentMethodsOptions() { Enabled = true, }
        };

        var setupIntent = await service.CreateAsync(options, requestOptions);

        return setupIntent.ClientSecret;
    }
ancient inlet
#

Can you share the ID of that Setup Intent?

buoyant roost
#

req_Dc0kSfSoZX4wEO

ancient inlet
#

You can see in the response what we consider valid payment methods for that intent:

payment_method_types: [
    "card",
    "link",
    "us_bank_account",
    "cashapp",
  ],
#

Let me see if I can find the reasons

buoyant roost
#

yeah, so are we looking for customer_balance?

#

I thought us_bank_account is both US Bank and Bank Transfers?

ancient inlet
#

Nope

#

you are looking for customer_balance

daring horizonBOT