The AutoLogin feature enables Ordway customers to offer their end users a seamless login experience when accessing the embedded checkout application.
By integrating this feature, users can sign up or sign in directly through your application without entering credentials again in Ordway.
How it Works
- When a user signs up or signs in to your application, your system must send a POST request to Ordway’s encryption API endpoint.
- The API encrypts the user’s email address. You must pass the encrypted email value to the user_email parameter in the embedded checkout configuration code.
- This process provides a secure and seamless login experience for end users within the embedded checkout application.
Benefits
- Secure login using encrypted email tokens.
- Seamless user experience with automatic account creation.
- Fully integrated login flow in your web application.
Enable AutoLogin for Embedded Checkout Iframe
-
Embed the Iframe
-
Add the Ordway checkout iframe to your webpage or web application.
- Once embedded, users automatically log in to the embedded checkout.
- If the user is new, a new Ordway account is automatically created.
-
|
Note |
If an iframe is already embedded within your webpage or web application, ensure the integration is configured to automatically pass the encrypted token value to the user_email parameter in the iframe configuration. |
-
Configure Encrypted Token
- Ensure the integration passes the encrypted email token to the user_email parameter in the iframe configuration.
|
Note |
Required if the iframe is already embedded. |
-
Generate Token Expiry
In Ordway, navigate to Settings > Portal Setup > Auto Login Token > Generate Token Expiry Days.
Configure the number of days for which the token remains invalid.
-
Encrypt User Email: Send a Post request to the Ordway encryption API endpoint.
Endpoint
| {{url}}/api/v1/portal_configurations/get_punchout_encrypted_user_email |
Request Parameters
|
{ "email":"john.doe@ordwaylabs.com", "customer_name":"John Doe", "display_name":"John PortalUser", // (optional) "portal_type":"embedded_checkout"
|
Sample Response
|
{ "success": true, "data": { "encryptedEmail": "4dbfb4e0577d9bf8778ba0db858a03dbbe936e9ff0215b22ac43962ea52db5d70c88b3c7d8e0f8b7c12b1d9bde6e91590691e064432f1e38e50b1b8b09a2b4f791cbd0cf557bba560b819643bb85f6240a1c2ae5d06f34676c8bc47928ede18699c5880f443ecf5b245058900471df0446be15908f0323b26299b90528f2debff520712ca7a99e9fce2eaf52eac49cbf4dd3924e34f0b0a83fcdbe16fb3dc24c0b3b4506da57394a215d5052842b904a6e27f9742684fe8d1bc32c17da571270a68d697af56ebce2e6091e94e18e031da7d566c8c71e120f94c729990cb1eb80a1bf39ceb0dac80fef14f3cf1dfd4ccc5c1d070e39f07649f5cbbec937b7f1d5" } } |
-
Pass Encrypted Email to Iframe
-
Include the encrypted email token in the iframe configuration using the user_email parameter.
-
Include the encrypted email token in the iframe configuration using the user_email parameter.
Result
When the iframe is embedded and configured:
- Users automatically log in to the embedded checkout.
- New users are automatically created in the Ordway instance.
- The process ensures a secure, seamless, and fully integrated autologin experience.
Comments
0 comments
Please sign in to leave a comment.