Similar to #3620 for block checkout, we will pre-fill the email address and phone number fields in the classic (shortcode) checkout, to improve the user experience for Link in the Payment Element.
Testing instructions
Enable Link as a payment method.
Unregistered user
As a shopper, add a product to cart and go to classic/shortcode checkout.
Enter your test email address, one that is NOT registered with Link.
Complete shipping/billing details and enter a phone number.
In the Payment Element, after filling in the card number, expiry and CVC, you should see the option Save your info for secure 1-click checkout with Link appear.
Check the checkbox. You should see pre-filled email address and phone number fields. See Screenshot 1.
Verify that you can complete the purchase without any problem.
Screenshot 1: Notice how the email address and phone number are pre-filled.
Registered user
As a shopper, add a product to cart and go to classic/shortcode checkout.
Enter your test email address, one that is registered with Link.
You can use the now-registered email address from the previous test.
In the Payment Element, notice your Link-registered email address with challenge code boxes. Since we are in test mode, you may enter any 5-digit number to authenticate. See Screensot 2.
You should now see your saved credit cards. See Screenshot 3.
Verify that you can complete the purchase without any problem.
Screenshot 2: Notice how the email address is pre-filled.
Screenshot 3: After authentication via challenge code, user's saved credit cards are available for use.
[ ] Covered with tests (or have a good reason not to test in description ☝️)
[x] Added changelog entry in bothchangelog.txt and readme.txt (or does not apply)
Completes #3619
Changes proposed in this Pull Request:
Similar to #3620 for block checkout, we will pre-fill the email address and phone number fields in the classic (shortcode) checkout, to improve the user experience for Link in the Payment Element.
Testing instructions
Unregistered user
Save your info for secure 1-click checkout with Link
appear.Screenshot 1: Notice how the email address and phone number are pre-filled.
Registered user
Screenshot 2: Notice how the email address is pre-filled.
Screenshot 3: After authentication via challenge code, user's saved credit cards are available for use.
changelog.txt
andreadme.txt
(or does not apply)Post merge