#coraelstraze_api

1 messages ยท Page 1 of 1 (latest)

keen isleBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1427196468695142430

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

tidal quarry
#

Could i clarify what these "fake buttons" might be?

lusty tapir
#

Simple DOM element (picture) of button

#

That do nothing but show that you can click on them

#

And firstly I wanna know if 5Mb is ok for initializing this type of button. Or I do smth wrong

tidal quarry
#

hmmm, could you provide us with your ecommerce url where these buttons can be found?

#

Just to let you know, Payment Request Buttons are a legacy integration, Stripe has a new Express Checkout Element which allows you to accept card or wallet payments through one or more payment buttons

lusty tapir
#

Google pay

#

Can Express Checkout Element be used on product page also? For example if you click on "View all variations" button, we need buttons to be shown for each variation (see prscr)

tidal quarry
keen isleBOT
lusty tapir
#

No, all buttons should show. Right now its Google/Apple Pay that are available by CS-Cart. No more

#

By "all buttons" I mean all that are available. For example one client decides to show only GooglePay, another - to show ApplePay and maybe one more.

#

Since it is a platform and we give clients availability to customize their product pages and checkouts

#

I just wanna know maximum available features we can give without performance problems

uneven glen
#

๐Ÿ‘‹ Hey, taking over here, just taking a look

#

As you're using CS-Cart, it's difficult to say how exactly this integration would work. It would be best to talk directly to the CS-Cart folks

lusty tapir
#

No you did not understand. I'm representative of CS-Cart dev team

#

I'm not a user, I am working on refactoring of code for this buttons

uneven glen
#

Ah, I see. Looking at the screenshot above, it looks like there will need to be multiple instances of the element which is probably going to add a lot of overhead. This would likely apply to a Express Checkout Element integration too.

lusty tapir
#

I was thinking about this, and multiple instances is really the problem that leaded me to dig this.

The paymentRequest object https://docs.stripe.com/js/payment_request can be updated. So I was thinking to do 1 instance on a group "key+country+currency", and updating it on click trigger.

This works, but still 1 instance takes 5-6Mb of page resources. Becase without Stripe buttons page weight is 3-6Mb. And with button its 10-12 Mb

#

I was trying to find out could 1 instance be lighter than 5-6 Mb on page load

#

So you say that Express Checkout Element FULLY replaces "paymentRequest object" and has same features and more? And can be used not only on checkout but on product pages?

uneven glen
#

Have you seen what specific requests are responsible for these amounts of resources?

uneven glen
#

There may be less customization options for the buttons, however, if that's what you're currently making use of

lusty tapir
uneven glen
#

I don't see any big requests in the screenshot - are those requests repeated for every instance? In general though, with regard to the Stripe code, there's nothing that you can really do to decrease or selectively download, and we just wrap the wallet code from Google/Apple, so again the amount of resources that will need to be downloaded is static

lusty tapir
#

Ok thank you!

So basically your answers are:

  • Resources for 1 button instance can not be decreased
  • You recommend to migrate to ECE

Is that right?

#

Could you give more info about paymentRequest object. Since it is deprecated, does it mean that in closest future it can be fully removed from API?

uneven glen
keen isleBOT
lusty tapir
#

Got it. Thanks for your answers!