#bayorwor
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
"we are facing an issue with setting ACH"?
If so, what's the issue exactly?
ACH gets verified alright but not setting as the default paymentMethod for subscription
We want anytime a ACH is verified, the customer default payment method should set to ACH
But you are not creating a Subscription in this code snippet
Are you creating it elsewhere?
Yes
Or do you just want to save this Payment Method for the Customer.invoice_settings.default_payment_method?
I do not really understand the qtn but we want to set the default payment method to customer with the verified ACH
When the above payment is succeeded, you will need to take the Payment Method and update the Customer's invoice_settings.default_payment_method property: https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method