#JohnM-payments

1 messages · Page 1 of 1 (latest)

hoary cedar
#

Hello! Can you share the example bank account payment so I can take a look?

wicked scaffold
#

pi_3LX9pSHFDCZvO5mL1kfe4IdD

#

I see the balance transaction in the console, but the call in the java SDK does not appear to be returning it

#

ChargeCollection chargeCollection = paymentIntent.getCharges();

#

charges.get(0).getBalanceTransaction() is null

#

only 1 item in collection

hoary cedar
#

You're not getting it back from your Java creation reqeust because Bank Account payments have an initial "processing" state before the payment is fully successful (we consider it to be "delayed notification payment method"). That's why we say you need to listen for the Payment Intent events so you know when it's finally failed or successful (see https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=API#web-confirm-paymentintent-succeeded)

Build a custom payment form or use Stripe Checkout to accept payments with ACH Direct Debit.

wicked scaffold
#

so, why does it work on credit card payments ?

hoary cedar
#

Beacuse credit cards are NOT a delayed notification payment method - we know whether it's failed or successful immediately

wicked scaffold
#

I am transitioning from the legacy charge api's to the payment intent .... and the charge API supported a balance transaction immediatly

hoary cedar
#

Legacy ACH had the same issue though - it was still a delayed notification type and wouldn't send a charge.succeeded notification until days later

wicked scaffold
#

I got a balance transaction as part of the charge object created. It gave me the fees' associated with the charge, as well as the estimated date of settlement. It had nothing to do with completion or failure of payment.

#

I still see the balance transaction in the console...

hoary cedar
#

Ahhh I see what you mean - legacy ACH charges do immediately create a balance transaction, but it's pending until the charge is actually successful or failed

#

That's the legacy flow thought - if you want to use the new ACH flows, you can't rely on that assumption anymore

wicked scaffold
#

exactly.... I was retrieving the fees and estimated date ... which would not change if the payment failed.... fee would be the same.... estimated settlement date ... well it is estimated only...

#

Ok.. I will see if I can get at it a different way