#manu_occhia-payment-element-null
1 messages · Page 1 of 1 (latest)
Hello. Good question. That payment method won't be usable in prod but I will look in to that behavior
Can you send me the ID of the Payment Method that you created like this?
this "pm_1K5F7GAKy7tT9lVJaQmdR0hG"
Thank you, checking in to that PM
Hey, apologies I dropped off this for a bit. I can't recreate your behavior here. How are you passing in the bank as null?
And you are using the Payment Element correct?https://stripe.com/docs/payments/payment-element
I'm using the p24Bank element input
when I mount the element the bank is not selected yet
and Stripe accept the element if I confirm the form giving me back a payment method with null bank
Thanks for the clarification. Will try to reproduce that
I'm still having trouble reproducing this. If I attempt the call with no bank, I get an error. Can you share the code for your confirmP24Payment call?
I'm not paying just create a payment method
Can you share that code? Want to make sure I am recreating as close as possible
stripe.createPaymentMethod({
type: 'p24',
p24: p24_element,
billing_details: {
name: Select('#new_p24_method .owner-name').value,
email: Select('#new_p24_method .owner-email').value,
},
})
and this to create element:
p24_element = stripe_elements.create('p24Bank', stripe_element_bank_style);
p24_element.mount('#p24_element_form')
Thanks, was able to recreate it but it doesn't look like that PM would be able to do anything.
Why are you creating this as a payment method instead of confirming a payment with it?
It looks like our flow expects it to be used on a payment intent and we don't support much outside of that.
I give to my users a way to create a payment method that I use to confirm all the payment intent they'll do
Unfortunately p24 payment methods can't be reused
You can store their bank preference and prefill it but unfortunately the object itself can't be re used and they will have to go to the bank's page each time. https://stripe.com/docs/payments/p24/accept-a-payment#customer-bank-preferences
oh yes I know, but even if the user has to authorize every time the payment, I can reuse the same payment method for more than one payment intent. I tested and it works in test environment. Am I right? or I will have problems in production?