#gaurav8690
1 messages · Page 1 of 1 (latest)
Payment Element and Express Checkout Element wouldn't be compatible with the Charges API at all. You're not able to create Sources (which you need ot use Charges) with these elements
If you want to use PaymentElement or ExpressCheckoutElement you'd need to migrate to using PaymentIntents first
I don't think we have specific docs for Payment Request Button + charges anymore because the charges API is so old, but the general idea is that you'd listen for the source event and from there you can use that source to create a charge (https://stripe.com/docs/js/payment_request/events/on_source)
Thanks for the quick reply and Payment Request button documentation.
Ok, I was expecting that but just wanted to confirm it.
Will keep my eyes open for your response to 3 other questions I have.
*Can we hide the card payments and enable only Apple Pay for Express Checkout Elements and Payment Elements? *
With Express Checkout Element you'd only see wallets as being availble (there isn't a card input form), but as far as I know you can't hide card payments AND use apple pay for Payment Element. So it sounds like your only optoin for this is Express Checkout Element
How is Payment Element different from Express Checkout Element?
These are VERY different - both in terms of UI and in terms of integration. If you haven't alreayd, you should read through the docs
Can we specify our custom fields and validation with Address Element?
Example: If we would like to capture building details - elevator vs walkup
No, this isn't somethign we support right now - you'd have to include custom fields in your own UI
https://stripe.com/docs/elements/express-checkout-element/comparison
As per the differences in the above link (Point 1 and 2), Express Checkout has the following features:
- Accept all Stripe-supported card brands through wallet pay buttons
- Accept payments with other payment methods
Can you help understand what the above mean?
Did you look at the docs I sent you? They show that the UI for Express Checkout looks like
Express Checkout ONLY accepts wallet payment method types (liek google pay, apply pey, etc)
That's why it can't accept payments with other payment methods
Yes, I agree with your statement above and I have looked at the docs in the link you have provided.
I am just trying to understand what points 1 and 2 in the link I have shared mean as they feel contradictory.
https://stripe.com/docs/elements/express-checkout-element/comparison
How are they contradictory? The first point is talking about card wallets - both Express Checkout and Payment Element support them. The second point is talking about all other types of payment methods (not including wallets) - only Payment Element supports this
The comparison chart is for Express Checkout and Payment Request button.
2nd point just says that
Other types of payment methods are supported for express checkout.
The chart does not talk about Payment Element at all. Why is that coming into picture here?
AH! That's what I was missing- thanks for clarifying that, I was reading too fast and thought it said Paymetn Element
Yeah I agree it's a bit confusing, I think what it's trying to get at is that Express Checkout Element also supports paypal which technically is categorized as it's own payment method on our end