#manu_occhia-payment-element-null

1 messages · Page 1 of 1 (latest)

blissful sleet
#

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?

jaunty portal
#

this "pm_1K5F7GAKy7tT9lVJaQmdR0hG"

blissful sleet
#

Thank you, checking in to that PM

blissful sleet
#

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?

jaunty portal
#

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

blissful sleet
#

Thanks for the clarification. Will try to reproduce that

blissful sleet
#

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?

jaunty portal
#

I'm not paying just create a payment method

blissful sleet
#

Can you share that code? Want to make sure I am recreating as close as possible

jaunty portal
#

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')

blissful sleet
#

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.

jaunty portal
#

I give to my users a way to create a payment method that I use to confirm all the payment intent they'll do

blissful sleet
#

Unfortunately p24 payment methods can't be reused

jaunty portal
#

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?