#Danish.CS()

1 messages · Page 1 of 1 (latest)

versed scrollBOT
serene hamlet
#

hello! it sounds like you're confirming the PaymentIntent off-session - since it's already successful, there's nothing further else to be done

oak forum
#

I see. I was getting this "requires_payment_method", so I used the customer's payment method and the customer id to complete creating the charge.
When does the "charge.succeeded" webhook fire in this case? I'm already catching it to update my database

serene hamlet
#

when the PaymentIntent moves into succeeded, the charge.succeeded will fire

oak forum
#

So since the payment intent returns the status: 'succeeded'. This should have fired the charge.succeeded event already? Does this means the destination charge is done at this point?

serene hamlet
#

yep, that's correct

serene hamlet
#

@oak forum lets continue the conversation in the same thread

oak forum
#

yes please

serene hamlet
#

Copying your question over for reference

We have these capabilities checked for the connected Express account. We wanna show a bank transfer option in the stripe elements in order for the customer to pay via bank transfer. I'm sending "customer_balance" as a payment_method_type. Anything else I need?

#

you're doing destination payments right? Are you using on_behalf_of?

oak forum
#

yea I'm using destination payment. Also setting on_behalf: connected account' s id

#

However, we also wanna bring an option for the bank transfer in the Stripe Elements ( we're currently showing card and ach there).

serene hamlet
#

then yep, give it a try - try creating a PaymentIntent with automatic_payment_methods.enabled=true and initialize the Payment Element with that PaymentIntent. See if the bank transfer shows as an option

#

let me know if it doesn't show (share the PaymentIntent id too)

oak forum
#

it doesn't show

#

id: 'pi_3NdjgeR1PpJDkQ6c0AlbOvWv',

#

payment_method_types: [ 'card', 'link', 'us_bank_account' ],

#

i can only see card and us bank elements

serene hamlet
#

On a side note, you're creating a direct charge, not a destination charge.

oak forum
#

that's correct

#

I've been able to show and get the card and us bank account payments from the Stripe Elements. Just want the bank transfer option to also show among the elements

serene hamlet
#

gimme a while to look into this

oak forum
#

alright sure, thank you

serene hamlet
#

hrm, can you try passing in customer_balance, and all the other payment method types you want to show manually in payment_method_types instead. You'll need to pass in a customer id too in order to display bank transfers as a payment method option

#

for context, bank transfers (customer_balance) is not available as a part of automatic_payment_methods yet, so you'll need to explicitly specify it in payment_method_types. It's on the roadmap but no specific timeline that I can share at the moment

oak forum
#

Yea I actually tried that after following a guide "Accept a bank transfer" and getting this error "No such customer: 'cus_****'"

serene hamlet
#

is it working for you now?

oak forum
#

it's not, i'm getting this "No such customer: 'cus_***"

serene hamlet
#

i suspect it's because you didn't create the customer on the connected account

oak forum
#

Yea I created it on the platform account and using it's id

serene hamlet
#

you need to create the customer on the connected account. To do so, you would use the StripeAccount header when making the create customer API call

oak forum
#

I see, and what should be my params? does it require a source?

serene hamlet
#

when doing a direct charge, the charge is actually created on the connected account. Similarly, all objects used in the direct charge must also exist on the connected account

oak forum
#

Also, is it ok to create a customer on the connected account right before creating the payment intent on the connected account?

serene hamlet
#

yep, that's fine

oak forum
#

alright, when I create the customer on the connected account, what do I need to send as params?

serene hamlet
#

it's up to you really, you just need to make sure you include the StripeAccount header

oak forum
#

got you, ok let me try that then
thank you

#

alright i got it to show finally
but when I click on it, it renders an email field
is that what it's supposed to show?
Also, paymentIntent status : requires_confirmation

serene hamlet
#

you can key in your own email and submit and see how it works

oak forum
#

yes, we have been accepting payments the same way with card and ach

serene hamlet
#

for the customer_balance, you would want to specify the funding_type and bank_transfer too

 payment_method_options: {
    customer_balance: {
      funding_type: 'bank_transfer',
      bank_transfer: {
        type: 'us_bank_transfer',
      },
    },
oak forum
#

yes I followed that guide and I did include all those properties as well
So eventally when i completed my payment with bank trasnfer, it's hsowing an Iframe and asking me to use the refernece mentioned above when I pay my bank tranfer.

#

does that mean this is an offline bank transfer then?

serene hamlet
#

yes, this is an offline bank transfer

#

this is a ACH bank transfer. were you looking for a ACH bank debit instead perhaps?

oak forum
#

I was actually looking to do a wire transfer online

#

Since ACH has a limit, we wanted to do an online wire transfer

serene hamlet
#

by wire transfer, do you mean SWIFT?

oak forum
#

yes sort of, but isn't SWIFT Canadian?

serene hamlet
#

iirc correctly SWIFT should be one of the generic methods of transferring funds, usually cross border though

#

but anyway

#

sorry, but i'm not super familiar with the US banking system, i believe a wire should work too, but maybe you would want to reach out to https://support.stripe.com/contact/email to check on that to be sure

#

is a "wire" what you do for international transfers too?

oak forum
#

it can be both domestic and international

#

It'll be like ach bank-to-bank, the sender needs to provide the recipient's bank info like account number, routing, email etc to do a tranfer the money electronically

serene hamlet
#

also, even though international wires can be received, Stripe won't be able to refund an international wire. You'll have to refund out of band

oak forum
#

I see, so is there a dedicated payment method for the stripe element that i can use?

serene hamlet
#

are you asking about dedicated payment method for wires? there's no dedicated payment method for wires, it's all covered under bank transfers

oak forum
#

oh ok, so yea this is what we need , but USD Bank Transfer takes me back to the link that I have been following to implement the bank transfer. But it's always offline right?

serene hamlet
#

it's always offline yes, i don't really quite get what you mean by an online bank transfer?