#birdy247

1 messages ยท Page 1 of 1 (latest)

tender otterBOT
crisp python
#

Hi

ionic lintel
#

Hello

#

How can I help?

crisp python
#

We are currently using the payment element in express mode

ionic lintel
#

express mode in payment element? ๐Ÿค”

Are there any guides you're following? If so, can you share a link?

crisp python
#

This works well for us, but we are wanting to change the look of the page

#

Sorry, I mean accordian mode

ionic lintel
#

ah okay

crisp python
#

Many sites now show buttons instead

#

i.e. card payment, or the wallet payments

#

A bit like your checkout page

#

Is this possible with element alone?

ionic lintel
crisp python
#

Yes, wallet buttons

#

Ok, is this express checkout element new?

ionic lintel
#

You'd want to use express checkout element with PaymentElement

The PaymentElement can't show those buttons on its own. It can only support tab or accordian

crisp python
#

It looks cool

ionic lintel
#

yes

crisp python
#

Ok, and it works out the box with these payment buttons?

#

In this image, it shows a good example. I notice no address is collected with express options

#

Is that because we get that by default?

#

Another question: Is this idea that if they dont use an express checkout option, we then show the default card element (via stripe elements)

#

So its an either/or?

ionic lintel
#

Is that because we get that by default?
Shipping address is being collected no? Look at the bottom section in the screenshot

Another question: Is this idea that if they dont use an express checkout option, we then show the default card element (via stripe elements)
So its an either/or?
Are you asking about the screenshot?
To be clear, you can use PaymentElement and Express Checkout Element on the same page.

crisp python
#

It says "Or" though

#

Suggesting shipping address is only supplied when not using an express checkout

#

Ok, so presumably its just mounting

ionic lintel
crisp python
#

Brilliant

#

Exciting stuff!

#

Are there any examples of express and paymentElement on the same page

ionic lintel
#

Don't think we have a full guide unfortunately : (

crisp python
#

Oh!

ionic lintel
#

If you create PaymentIntent prior to rendering the Elements then you'd likely need to update your integration

crisp python
#

๐Ÿ˜• Oh. Thats how we used to do it... then Stripe suggested we did it the other way

#

Whats the advantage of that v creating payment intent first?

ionic lintel
#

With defer intent flow, you can tokenize the payment method earlier in the flow.

One major benefit I've seen is that it prevents creating unnecessary payment intents (which stays in incomplete state if the customer abandons checkout)

crisp python
#

Yes, this is like the old way of creating tokens

#

payment form -> token -> backend make payment -> confirm to frontend

#

This sounds like

#

payment form -> get token (keep on frontend) -> create payment intent (backend) -> submit client_secret and token from front end

#

is deferred payment intent now the preferred way of doing things?

tender otterBOT
ionic lintel
#

is deferred payment intent now the preferred way of doing things?
if it fits your usecase then yes. To be clear, its better in some ways and is an alternative.
It isn't supposed to be a replacement of the intent first approach.

crisp python
#

Ok, I am just trying to get my head around where were would use this

#

It sounds like if we want to make use of expressCheckoutElement we have to either way