#jatinpatel0708

1 messages · Page 1 of 1 (latest)

austere orchidBOT
north oxide
#

Hi there!

regal meadow
#

How can we create charges for connetced accoun

#

*How can we create charges for connected accoun

north oxide
regal meadow
#

are we need to add the Routing number and account number manually or does stripe collect automatically

north oxide
#

Stripe will collect this information.

regal meadow
#

okay

#

I am trying to open Pop-up to select bank account but the pop-up is not opened

north oxide
#

What code did you wrote? What's the error message?

regal meadow
#

here is the code

north oxide
#

And what's the error message? Or a screenshot of the issue?

regal meadow
#

Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

north oxide
#

Can you console.log paymentMethodForm?

regal meadow
#

I am getting "NULL" paymentMethodForm

north oxide
#

So that's the issue then, which is unrelated to Stripe.

#

You need to debug your code to understand why this value is null.

regal meadow
#

okay,

austere orchidBOT
regal meadow
#

the Payment showing incomplete here is my payment_intent: pi_3N7xkvGbE4TMTQU00AwPeIBe

west meteor
#

Hey! Taking over for my colleague. Let me catch up.

regal meadow
#

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"

west meteor
regal meadow
#

Yes, I am following this Doc

west meteor
#

Can you share your code ?

regal meadow
#

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

brave vine
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

#

Could you please summarise the latest question?

regal meadow
#

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"

brave vine
#

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.

regal meadow
#

please let me know where I can collect the mandate or could you please provide the code

brave vine
#

Please, let me know if you have any other questions.