#alanartemest_04580
1 messages · Page 1 of 1 (latest)
Can you share your code you use to initialise ECE?
What does your onClick handler look like? Are you passing billingAddressRequired? https://stripe.com/docs/js/elements_object/express_checkout_element_click_event#express_checkout_element_on_click-handler-resolve-billingAddressRequired
Which event is the data in your initial screenshot from?
It's your https://api.stripe.com/v1/elements/express_checkout/9YY46546NU7648427 API from your https://stripe.com/docs/elements/express-checkout-element#try-demo documentation. Try to close a payment with it using Paypal and check the response of that API: all data are blank strings even if you set that data on Pypal form
we have the same issue, we cannot collect billing details using Paypal. The same is working using both ApplePay and GPay
Ok, but which event(s) (click, confirm, cancel) are you listening to in your integration that receives that JSON payload with the empty strings? The API link you shared is an internal API – you shouldn't be using that
Hmm, but there's no address hash in that event like your screenshot shows: https://stripe.com/docs/js/elements_object/express_checkout_element_confirm_event
So, again, where is that original screenshot taken from? Where is the code that logs those values?
billingDetails is an object containing black string, except for the country
Ok, so billingDetails[address]?
yes
Ok, looking into this
Ok, this looks like a current limitation. PayPal doesn't make the billing address available to us
is this an expected behaviour, or sounds like a bug on their side?
should I raise an issue on your Github?
It's expected right now unfortunately. It's feedback I'll relay with the ECE team
We will add notes to the docs to clarify this limitation
could you suggest me a way to exclude Paypal from the Express Checkout without removing it by dashboard? as we want to keep it available on normal checkout
Let me check, don't think you can right now. Confirming
Ok, you can use paymentMethodTypes: ['card'] with elements.create function: https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-paymentMethodTypes
That will omit PayPal from the ECE and only show Apple Pay and Google Pay
We're actually working on some improvements to make it easier to control which wallets are shown, but the above should work for now
I was aware of this solution before, but unfortunately it makes all payments not working, returning this error:
"message": "Payment details were collected through Stripe Elements using payment_method_types and cannot be confirmed with a Payment Intent configured with automatic payment methods."
"type": "invalid_request_error"
Yeah you'll need to adjust your PI creation call to also include payment_method_types: ['card']
As I said, it's a but cumbersome but we're working on improving it
ok. have you an ETA for the improvements you mentioned? just to know if we should postpone the go live
Nothing I can share just now. If you share your acct_xxx ID I can let the team know you're interested and they'll reach out once there's availability. Sometimes they run betas for new stuff like this