News for hackers. Stuff that matters.
Re:New version of Stripe Checkout by jenanwise on Wednesday April 24, 2019 @12:41PM (#19740172)
The Apple Pay button will only show up to customers who have Apple Pay onboarded and enabled. Customers who don't care about Apple Pay won't ever see the button.

(I work on Checkout)

Re:New version of Stripe Checkout by dmix on Wednesday April 24, 2019 @03:23PM (#19741836)
> customers who have Apple Pay onboarded and enabled

How is this handled on web forms? I have neither of those but it shows up on the preview.

I don't care, I think it's fine ala login via Google/FB links on login forms being on top. I'm just curious!

Re:New version of Stripe Checkout by bdibs on Wednesday April 24, 2019 @05:13PM (#19742638)
The preview is using a test key, so it's likely they show everything just for testing reasons.
Re:New version of Stripe Checkout by dmix on Wednesday April 24, 2019 @08:41PM (#19743924)
Oh they mean connected on the users Stripe account or the companies? I thought OP meant some iOS API to see if they have Apple wallet set up with an active card.

I'm guessing there will still be a link if the company supports it if it's the former (first party user level).

Re:New version of Stripe Checkout by dfabulich on Wednesday April 24, 2019 @01:05PM (#19740454)
Can you say a word or two about why the new Checkout experience is a full-page redirect instead of a modal dialog? (I preferred the dialog.)
Re:New version of Stripe Checkout by jenanwise on Wednesday April 24, 2019 @01:17PM (#19740617)
I wrote some notes below (https://news.ycombinator.com/item?id=19740475) but TL;DR is that this lets us support a lot of features that that the legacy version never could. If you’re looking for an embedded form, Elements work great (https://stripe.com/docs/stripe-js/elements/quickstart) — you can of course pair Elements with a lightbox/modal library to get a similar experience to the legacy version of Checkout.
Re:New version of Stripe Checkout by tex5 on Wednesday April 24, 2019 @04:54PM (#19742505)
So we can build a modal version with Elements that supports all features?

But Stripe removed the modal option from Checkout because features?

Re:New version of Stripe Checkout by zrail on Wednesday April 24, 2019 @05:09PM (#19742615)
A modal with Elements could support all the features that old modal Checkout supports. It would not be able to do all the things that new non-modal Checkout will be able to do in the near future.
Re:New version of Stripe Checkout by tex5 on Wednesday April 24, 2019 @06:50PM (#19743320)
You mean SCA-3DS or?

The Stripe 3DS and SCA page says a modal in combination with Elements is fully supported:

Pre-built modal: The Payment Intents API integrates tightly with Stripe.js and Elements to simplify the authentication process. If your Stripe integration uses handleCardPayment or handleCardAction, Stripe.js automatically handles the authentication process—displaying a modal dialog where the customer can provide the requisite information.

This makes it look like we can build a modal version via Elements which fully supports SCA and 3DS through another modal. All on one page.

Also, the Paymentintent docs say we have to set the viewport to mobile on our page so that the UI of Elements can handle 3DS, this makes it also look like it works on our page through a model without redirects. Otherwise Stripe would set the viewport.

Does Elements fully support 3DS and SCA all on our page through modals or not?

Re:New version of Stripe Checkout by mtgx on Wednesday April 24, 2019 @01:13PM (#19740566)
In the future will the "Apple Pay" in this instance also be replaced by PayPal, Google Pay, etc, depending on what the person uses?
Re:New version of Stripe Checkout by ultrarunner on Wednesday April 24, 2019 @01:31PM (#19740775)
In Elements the payment request button utilises the PaymentRequest API, so Apple Pay in Safari, a (default) purple browser button in Chrome, etc. So I imagine so.
Re:New version of Stripe Checkout by jenanwise on Wednesday April 24, 2019 @01:26PM (#19740714)
Google Pay coming soon!