Unified Checkout
Implementation Quick Start Guide

This quick start guide provides essential information and guidance for integrating
Unified Checkout
into your e-commerce system. The guide is written for merchants who want to enable
Unified Checkout
so that they can accept payments on their e-commerce page.
For more detailed information, see the
Unified Checkout
Integration Guide
.

Recent Revisions to This Document

Version 25.06.01
Initial release of the guide.

Introduction to
Unified Checkout

Unified Checkout
is a powerful and flexible payment solution that simplifies the integration process and enhances the customer checkout experience. This guide will help you get up and running with
Unified Checkout
.

Key Features

  • Seamless integration with your existing e-commerce platform.
  • Support for multiple payment methods.
  • Customizable checkout flow.
  • Enhanced security features.
  • Responsive design for mobile and desktop.

Benefits

  • Simplified integration process.
  • Improved conversion rates.
  • Reduced cart abandonment.
  • Enhanced customer experience.
  • Compliance with industry security standards.

Additional Information

For detailed information about
Unified Checkout
and the integration process, see the
Unified Checkout
Integration Guide
.

Getting Started with
Unified Checkout

This section outlines the steps to integrate
Unified Checkout
into your e-commerce system.

Integration Prerequisites

Before getting started with the integration process, make sure you have:
  • A valid
    Cybersource
    merchant account.
  • A secure, PCI-compliant server environment.
  • Access to the
    Business Center
    :
    • Test:
      https://businesscentertest.cybersource.com
    • Production:
      https://businesscenter.cybersource.com
  • Accounts for the digital wallet payment methods you support.

Integration Steps

Integrating
Unified Checkout
into your e-commerce system involves these main steps:
  1. Enable
    Unified Checkout
    .
  2. Set up the server-side component.
  3. Set up the client-side component.
  4. Configure
    Unified Checkout
    .
  5. Test Your integration.
Each request sent to
Cybersource
requires specific header information. For details on constructing these headers, see the
Getting Started with REST Developer Guide
.
Optionally, you can capture the payment response through webhook notifications. For information on webhook notifications for
Unified Checkout
, see the Webhooks Support topic in the
Unified Checkout
Developer Guide
.
You can use the payment details API to retrieve billing and shipping information captured by
Unified Checkout
. Information that is captured by
Unified Checkout
, including the billing and shipping address, can be retrieved using the payment details API. For information about the Payment Details API, see the Payment Details API section of the
Unified Checkout
Developer Guide
.

Payment Flow

Figure:

Unified Checkout
Payment Flow
Diagram showing the sequence and flow of a Unified Checkout
                    payment.

Additional Information

For detailed information about
Unified Checkout
and the integration process, see the
Unified Checkout
Integration Guide
.

Step 1: Enable
Unified Checkout

To begin using , you must first ensure that your merchant ID (MID) is configured to use the service and that any payment methods you intend to use are properly set up.
For detailed information about
Unified Checkout
and the integration process, see the
Unified Checkout
Integration Guide
.
  1. Log in to the
    Business Center
    :
    If you are unable to access this page, contact your sales representative.
  2. In the
    Business Center
    , go to the left navigation panel and choose
    Payment Configuration
    >
    Unified Checkout
    .
  3. You can configure various payment methods such as Apple Pay,
    Click to Pay
    , and Google Pay. Click
    Set up
    and follow the instructions for your selected payment methods. When payment methods are enabled, they appear on the payment configuration page.
    You must configure payment methods you want to use for each transacting MID.

    Figure:

    Manage Unified Checkout Digital Payments Solutions
  4. Click
    Manage
    to edit your existing payment method configurations or enroll in new payment methods as they are released.

AFTER COMPLETING THE TASK

Step 2: Set Up the Server-Side Component

To initialize
Unified Checkout
within your webpage, you need to set up the server-side component. This task involves making a server-to-server call to the sessions API to authenticate your merchant credentials and establish how the
Unified Checkout
front-end components will function.
For detailed information about
Unified Checkout
and the integration process, see the
Unified Checkout
Integration Guide
.
  1. Implement a server-to-server call to the sessions API.

    ADDITIONAL INFORMATION

    This call should include parameters that define how
    Unified Checkout
    performs.
  2. Handle the response from the sessions API.

    ADDITIONAL INFORMATION

    The response will contain:
    • A transaction-specific public key for securing the transaction in the customer's browser.
    • An authenticated context description package that manages the payment experience on the client side, including available payment options, interface styling, and payment methods.
  3. Store and manage the JSON Web Token (JWT) object, referred to as the
    capture context
    .

    ADDITIONAL INFORMATION

    This JWT contains all the functions compiled from the sessions API response.
REST Example: Set Up the Server-Side Component
In this example, the
targetOrigins
and the
allowedPaymentTypes
fields define the target origin and the accepted digital payment methods in your capture context.
{ "clientReferenceInformation": { "code": "TAGX001" }, "targetOrigins": [ "https://www.test.com" ], "clientVersion": "0.26", "allowedCardNetworks": [ "VISA", "MASTERCARD", "AMEX" ], "allowedPaymentTypes": [ "PANENTRY", "CLICKTOPAY", "GOOGLEPAY" ], "country": "US", "locale": "en_US", "captureMandate": { "billingType": "FULL", "requestEmail": true, "requestPhone": true, "requestShipping": true, "shipToCountries": [ "US", "GB" ], "showAcceptedNetworkIcons": true }, "orderInformation": { "amountDetails": { "totalAmount": "1.01", "currency": "USD" } }, "completeMandate": { "type": "CAPTURE", "decisionManager": true } }

AFTER COMPLETING THE TASK

Step 3: Set Up the Client-Side Component

To add the payment interface to your e-commerce site, you need to set up the client-side component using the
Unified Checkout
JavaScript library. This setup involves two primary components:
  • The button widget, which lists available payment methods for the customer.
  • The payment acceptance page, which captures payment information from the cardholder. This can be integrated with your webpage or added as a sidebar.
For detailed information about
Unified Checkout
and the integration process, see the
Unified Checkout
Integration Guide
.
  1. Load the
    Unified Checkout
    JavaScript library.

    ADDITIONAL INFORMATION

    Include the library in your webpage's HTML.
  2. Initialize the accept object with the capture context JWT.

    ADDITIONAL INFORMATION

    Use the JWT obtained from the server-side setup in Step 2.
  3. Initialize the unified payment object with optional parameters.

    ADDITIONAL INFORMATION

    Configure the payment object according to your requirements.
  4. Display the button list or payment acceptance page (or both).

    ADDITIONAL INFORMATION

    Choose the appropriate display method for your e-commerce site.

RESULT

The system will provide a transient token in response to user interactions. You can use the transient token to retrieve the payment information captured by the UI by calling the Payment Details API. For information about the Payment Details API, see the Payment Details API section of the
Unified Checkout
Developer Guide
.
JavaScript Examples: Set Up the Client-Side Component
Setting Up with Full Sidebar
<html> <head> <script src="[INSERT clientLibrary VALUE HERE]" integrity="[INSERT clientLibraryIntegrity VALUE HERE]” crossorigin=”anonymous" ></script> </head> <body> <h1>Unified Checkout Integration</h1> <input type="hidden" name="captureContext" value="[INSERT captureContext HERE]" /> <script type="text/javascript"> const sidebar = true; const captureContext = document.getElementById("captureContext").value; const showArgs = { containers: { paymentSelection: '#buttonPaymentListContainer', } }; async function launchCheckout() { try { const accept = await Accept(captureContext); const up = await accept.unifiedPayments(sidebar); const tt = await up.show(showArgs); const completeResponse = await up.complete(tt); console.log(completeResponse); // merchant logic for handling complete response } catch (error) { // merchant logic for handling issues console.error("something went wrong: " + error); } } // Call the function launchCheckout(); </script> </body>
Setting Up with Embedded Component
The main difference between using an embedded component and the sidebar is that the
accept.unifiedPayments
object is set to
false
, and the location of the payment screen is passed in the containers argument.
If you do not specify a location for the payment acceptance page, it is placed in the side bar.
<html> <head> <script src="[INSERT clientLibrary VALUE HERE]" integrity="[INSERT clientLibraryIntegrity VALUE HERE]” crossorigin=”anonymous" ></script> </head> <body> <h1>Unified Checkout Integration</h1> <input type="hidden" name="captureContext" value="[INSERT captureContext HERE]" /> <script type="text/javascript"> const sidebar = false; const captureContext = document.getElementById("captureContext").value; const showArgs = { containers: { paymentSelection: "#buttonPaymentListContainer", paymentScreen: '#embeddedPaymentContainer' } }; async function launchCheckout() { try { const accept = await Accept(captureContext); const up = await accept.unifiedPayments(sidebar); const tt = await up.show(showArgs); const completeResponse = await up.complete(tt); console.log(completeResponse); // merchant logic for handling complete response } catch (error) { // merchant logic for handling issues console.error("something went wrong: " + error); } } // Call the function launchCheckout(); </script> </body>

AFTER COMPLETING THE TASK

Step 4: Configure Unified Checkout

Proper configuration ensures that your checkout process aligns with your business needs and provides a smooth experience for your customers. This section outlines the steps for configuring the basic
Unified Checkout
settings.
For detailed information about
Unified Checkout
and the integration process, see the
Unified Checkout
Integration Guide
.
  1. Select and configure the payment methods you support:
    1. Log in to the
      Business Center
      and navigate to the
      Unified Checkout
      configuration section.
    2. Select the payment methods you want to use:

      ADDITIONAL INFORMATION

      • Credit and debit cards
      • Digital wallets
      • Alternative payment methods
      You must configure the payment methods you want to use for each transacting MID.
    3. Configure the settings for each selected payment method.

AFTER COMPLETING THE TASK

Step 5: Test Your Unified Checkout Integration

After configuring
Unified Checkout
, it's crucial to thoroughly test your integration to ensure it works correctly and provides a smooth checkout experience for your customers. This section outlines the steps to test your
Unified Checkout
integration.
For detailed information about
Unified Checkout
and the integration process, see the
Unified Checkout
Integration Guide
.
  1. Set up your test environment:
    1. Log in to the
      Business Center
      account using your test credentials.
    2. Switch to the test environment if not already in test mode.
    3. Set up a test website or application that integrates
      Unified Checkout
      .
  2. Use test card numbers to simulate different payment scenarios.

    ADDITIONAL INFORMATION

    Here are some example test card numbers you can use:
    Common Card Test Numbers
    Card Type
    Card Number
    Expiration Date
    Card Verification Number
    American Express
    378282246310005
    03/2026
    7890
    Mastercard
    5555555555554444
    02/2026
    265
    Visa
    4111111111111111
    12/2025
    123
    For more test payment data, see the Test Payment Details section of the
    Unified Checkout
    Developer Guide
    .
  3. Test different payment scenarios:

    ADDITIONAL INFORMATION

    • Successful transactions
    • Declined transactions
    • 3-D Secure
      authentication, if applicable
    • Different card brands
    • Digital wallet payments, if configured
  4. Verify the capture context and token handling.

    ADDITIONAL INFORMATION

    Ensure that your integration correctly handles the capture context and transient tokens throughout the payment process.
  5. Test error handling and edge cases.

    ADDITIONAL INFORMATION

    Simulate various error scenarios to ensure your integration gracefully handles and reports errors to the user.
  6. Verify webhook notifications, if configured.

    ADDITIONAL INFORMATION

    If you set up webhook notifications, ensure that your system correctly receives and processes them for various transaction events.

AFTER COMPLETING THE TASK

After completing these testing steps, you should have confidence in your integration. Remember to test in both the test and production environments before going live.

Next Steps

Now that you have successfully set up and tested your
Unified Checkout
integration, here are some next steps to consider:
  1. Move to Production:
    Once you're confident in your test results, update your integration to use production API credentials and endpoints.
  2. Monitor Transactions:
    Regularly review your transaction data in the
    Business Center
    to ensure everything is functioning as expected.
  3. Optimize Your Integration:
    Analyze your checkout flow and consider ways to improve the user experience based on customer feedback and conversion rates.
  4. Stay Updated:
    Keep an eye on the documentation and release notes for any updates or new features related to
    Unified Checkout
    .
  5. Explore Advanced Features:
    Consider implementing additional services, such as Advanced Fraud Management or Token Management Service (TMS) to further enhance your payment processing capabilities.
  6. Seek Support:
    If you encounter any issues or have questions, do not hesitate to reach out to the support team or consult the comprehensive documentation.
By following these steps, you can ensure that your
Unified Checkout
integration continues to provide a smooth and secure payment experience for your customers.

Additional Resources

  • API Reference tool and documentation:
    • REST API Reference tool:
      experiment with API request/response examples, and code samples in a variety of popular languages. Visit index.html.
    • REST API Field Reference guide:
      provides descriptions and specifications for the REST API fields. Visit rest-api-fields-intro.html.
    • Unified Checkout
      REST API Reference
      : Visit index.html#unified-checkout
  • Developer Portal:
    get access to SDKs, sample code, and integration tools. Visit CyberSource.
  • Knowledge Base:
    provides troubleshooting information and frequently asked questions. Visit .
  • Blog:
    stay updated with the latest features, best practices, and industry trends. Visit .
  • Technical Support:
    contact our dedicated support team for assistance. Visit support.html.