Reliability & Testing

Fail-Open Principle

Connected Accounts acceleration must never be able to block a checkout. If any step in the Returning User Flow fails for any reason, do not surface an error to the customer. Instead, drop the acceleration attempt and proceed with a standard, non-accelerated checkout. The customer simply falls back to normal authentication flow.

Relevant Screens

The following screens are specific to Connected Accounts and will not appear like this in standard flows.

Phone Number Entry Page

The phone number entry page will render a checkbox that says "Keep me logged in to checkout faster". When users check this box, they consent to Connected Accounts and refresh token creation will be attempted.

User Profile

Once a user is signed in, a user profile will will appear in the top right corner. When opened, it will show the user's name and email. This is where a user is able to sign-out and disconnect their account.

Test Scenarios

ScenarioHow to TestExpected Result
New customer linkingComplete checkout with “Keep me logged in to checkout faster” checkedReceive refresh token via webhook or Token Lookup API
Returning customer accelerationUse stored refresh token in Token ExchangeReceive access token; checkout is accelerated, so the user bypasses the authentication flow.
Expired refresh tokenRevoke the token via the ‘Switch accounts’ button to disconnect your account from the merchantunauthorized error; standard checkout proceeds
Invalid access tokenUse a malformed or expired access tokenCheckout proceeds without acceleration (fail-open)
Token rotationExchange the same refresh token twice (minutes later)Second request fails with unauthorized

Did this page help you?