#b33fb0n3
1 messages · Page 1 of 1 (latest)
Hi there!
Can you share the PaymentIntent ID (pi_xxx)? Aso clarify exactly which other payment method you were expecting to see?
the paymentintent isn't created before the confirmation. So I don't have a paymentintent. I would like to see all the cardpayments, apple pay, google pay, link, wechat, blink, bancontact, eps, giropay, ideal, przelawy25, sofort, klarna and sepa
But could you in test mode complete the payment, and then share the PaymentIntent ID with me?
Or even better: do you have a link were I can reproduce the issue?
sure. The PI ID is: pi_3NxPqFD4LgnRPd5t1Dz6Ycsc
I haven't. It's not a public feature yet
Thanks! Give me a few minutes to look into this.
Can you share the code you're using to initialise the Elements object? Which parameters you're passing, etc
Of course. Thats my code: https://paste.gg/p/anonymous/92c7b8fe9fcb487999d5747bd349742a
Can you share a screenshot of the Payment Element?
yes: https://imgur.com/a/5vYfDbd
(discord does not handle my upload)
Hmm somethings seems off here
what else do you need from me? 🙂
You can see the available payment methods on the PI you shared earlier. If that was confirmed with the same Payment Element then those should be offered
they should. But at the moment I took the screenshot, the payment intent isn't created. So the payment elements doesn't know which payment methods are there
you can see in line 52, that I create the paymentintent after submit (line 39 or line 85)
Yep, I understand that. But that's how the deferred flow works. The payment_method_types on the PI reflects those available in the Element
Can you check your network tab for a request to https://api.stripe.com/v1/elements/sessions
And share the response please
Also what is the value of defaultPrice?
I found the request. Thats the response: https://privnote.com/VbD7YWtF#z1pyOClF8
(it's a one time note)
Nothing sensitive in that response (it's in your browser console after all)
the defaultPrice depends on the product. It's an integer like 7 or 9 or 15 or ...
Pasting here:
You can see ideal is the only PM returned:
"ordered_payment_method_types_and_wallets": [
"ideal"
],
where can I change that?
You can't directly, it's automatically calculated. Just not sure why it's omitting everything else
Can you log defaultPrice for me? I think it might be too small when you initialise the Elements instance
Like, is it 7 for €7 or 700 for €7?
Because you parse it later in your code when you create the PI.
it needs to be an integer in the lowest currency unit (i.e. cents)
ahhh got it! https://imgur.com/a/sCawpsh
Now all the paymentmethods are avaiable ^^
So I would guess that the other PM types are being omitted because that value is too low to be used as a payment? Not sure why iDEAL is still shown in that regard (maybe that's the real bug here)
yeah, I entered the 7 as amount and not 700. Inside my server endpoint I multiple the 7 with 100, but not on client side. Thanks a lot! ❤️
np, let me see if this is a bug and I'll raise internally
for sure. Do you need something from me?
Nope all good!