#Rango-expand
1 messages · Page 1 of 1 (latest)
Generally it's not. Expanding feature is only for server-side call
Inside your PaymentIntent in frontend, what do you see for PaymentMethod?
I only see the payment method ID, and not the payment method object.
For context, we need to show the ACH mandate text with the account details. This is after calling stripe.collectBankAccountForPayment
According to the documentation, we would need to show the account number and customer name. The account number is the challenge for us
I see. Are you not using Checkout of Payment Element? I think those products already did that part for you
Stripe displays a mandate on the payment page for you if you use one of the following hosted products:
Checkout
Payment Element
Hosted Invoices Page
In case you don't use them, did you try including this code in your retrieving call?
expand: ['payment_method'],
I'm using Payment Element. The retriving call only accepts the client secret, it doesn't seem to receive any other argument. Any suggestions on how to add the expand property to the request?
stripe
.retrievePaymentIntent('{PAYMENT_INTENT_CLIENT_SECRET}')
.then(function(result) {
// Handle result.error or result.paymentIntent
});
I'm adding the retrieve call for reference.