#jatinpatel0708
1 messages · Page 1 of 1 (latest)
Hi there!
This is covered here: https://stripe.com/docs/payments/ach-debit/accept-a-payment
How can we create charges for connetced accoun
*How can we create charges for connected accoun
It depends on the type of charge you want to created. This is explained here: https://stripe.com/docs/connect/charges
are we need to add the Routing number and account number manually or does stripe collect automatically
Stripe will collect this information.
okay
I am trying to open Pop-up to select bank account but the pop-up is not opened
What code did you wrote? What's the error message?
here is the code
And what's the error message? Or a screenshot of the issue?
Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
Can you console.log paymentMethodForm?
I am getting "NULL" paymentMethodForm
So that's the issue then, which is unrelated to Stripe.
You need to debug your code to understand why this value is null.
okay,
the Payment showing incomplete here is my payment_intent: pi_3N7xkvGbE4TMTQU00AwPeIBe
Hey! Taking over for my colleague. Let me catch up.
That payment intent requires confirmation:
https://stripe.com/docs/api/payment_intents/confirm
Okay
Hi, when i am confirm then payment intent:
Error message
"message": "When confirming a PaymentIntent with a us_bank_account PaymentMethod and setup_future_usage, mandate_data is required."
"type": "invalid_request_error"
Are you following the guide my colleague previously shared with you ?
https://stripe.com/docs/payments/ach-debit/accept-a-payment
Then you update it for connect integration depending on what Charge types you need.
Yes, I am following this Doc
Can you share your code ?
paymentMethodForm.addEventListener('submit', (ev) => {
ev.preventDefault();
const accountHolderNameField = document.getElementById('account-holder-name-field');
const emailField = document.getElementById('email-field');
var posting = [];
posting.push({name: 'name', value:accountHolderNameField});
posting.push({name: 'email',value: emailField });
stripe.collectBankAccountForPayment({
clientSecret: 'pi_3N7z4QGbE4TMTQU013Q1jf9P_secret_qaoLlJcu9ul9mrPvcebl0d5q5',
params: {
payment_method_type: 'us_bank_account',
payment_method_data: {
billing_details: {
name: accountHolderNameField.value,
email: emailField.value,
},
},
},
expand: ['payment_method'],
})
.then(({paymentIntent, error}) => {
console.log(paymentIntent);
if (error) {
console.error(error.message);
// PaymentMethod collection failed for some reason.
} else if (paymentIntent.status === 'requires_payment_method') {
// Customer canceled the hosted verification modal. Present them with other
// payment method type options.
} else if (paymentIntent.status === 'requires_confirmation') {
}
});
});
here is the code
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Could you please summarise the latest question?
Yes, please check and let me know what's the issue,
here is the payment_intent_id: pi_3N80MDGbE4TMTQU00SdY3RDB
and the status is status: "requires_confirmation"
payment is not completed: "Incomplete"
I see you are confirming the payment on the backend. This will not work because the Customer needs to do it on the frontend, so Stripe can collect the mandate.
please let me know where I can collect the mandate or could you please provide the code
You can read about it here: https://stripe.com/docs/payments/ach-debit#mandates
If you use Checkout, Payment Element or Hosted Invoice Page, Stripe will collect it for you
Please, let me know if you have any other questions.