#alexbanks-invoice-payment-method
1 messages · Page 1 of 1 (latest)
Hi 👋 if you're planning to let the automatic retries handle the next payment attempt then you'll need to put the new payment method on the invoice.
If you're going to manually retrigger payment of the invoice then you can pass the payment method then
ok thanks toby
Any time!
toby one more question
i have a function to confirm a 3d secure payment if this flags up
the function works well but unfortunately the 'return_url' doesn't seem to get called when the 3ds popup is acknowledged
function authorise() {
stripe
.confirmCardPayment('{{ policy.stripe_payment_method_payment_intent_client_secret }}', {
payment_method: '{{ payment_method_id }}',
return_url: '{{ url_for("customer.authenticate_card_confirm", policy_id=policy.id, _external=True ) }}'
})
.then(function (result) {
if (result.error) {
const messageContainer = document.querySelector('#error-message');
messageContainer.textContent = error.message;
messageContainer.style.backgroundColor = "red";
click_protect_off();
} else {
// Your customer will be redirected to your return_url. For some payment
// methods like iDEAL, your customer will be redirected to an intermediate
// site first to authorize the payment, then redirected to the return_url.
}
});
}
any ideas?
catching up here one min!