Pay Later messaging

Background
Before starting this tutorial, make sure you understand the following topics from the Quick start section:

You can present customers with Pay Later messaging that provides information about financing options. Depending on the available payment methods, this messaging indicates whether customers can pay later or in installments. PayPal displays this messaging for payment amounts between $30 and $1500.

Nexio supports Pay Later messaging for the following APMs:

📘

Note

Pay Later messaging can be shown for only one payment method on the merchant account. If you need to change which payment method is enabled for Pay Later messaging, contact Integrations Support.

Add Pay Later Messaging

You can use Pay Later messaging on any relevant page within your workflow, such as the product details or checkout pages.

In order to present customers with Pay Later messaging, complete the following steps:

  1. Configure Your Account

    Contact Integrations Support to enable any desired APMs on your merchant account.

    📘

    Note

    Pay Later messaging can be shown for only one payment method on the merchant account. If you need to change which payment method is enabled for Pay Later messaging, contact Integrations Support.

  2. Add DIV to Page

    Add a div tag with a unique class (for example, "nexio-installments-div") to any relevant web pages in your workflow. The value is case-sensitive and cannot contain any spaces.

    You can include multiple different DIV sections and script references on the same page for different Pay Later messaging. This allows the promotion of several products on the same page with differing amounts, so the message is customized to the product amount.

    Put the DIV element where you want the Pay Later messaging to display on the page.

    For example:

    <html>
      <body>
        ...
        <div class="nexio-installments-div" />
        ...
      </body>
    </html>
    
  3. Add Script to Page

    Add the Pay Later messaging script to any relevant web pages in your workflow.

    The URL for the script must include a Nexio username, the total amount, the three-character ISO currency code, and optionally the DIV class to reference (if left out, the system uses the default of "nexio-installments-div").

    The script takes the following form:

https://{nexio_environment_base_URL}/apm/v3/installment/{username}/{total_amount}/{currency_code}/script.js

Substitute the relevant text above with the appropriate values or your own variables. For example, where the environment is the sandbox, the Nexio user is [email protected], the amount is 104.55, the currency is USD, and the DIV ID is my-div-id, the script would look like the following example:

<script src="https://api.nexiopaysandbox.com/apm/v3/installment/[email protected]/104.55/USD/script.js?divId=my-div-id" />

Use different divIDs in different script tags to reference each unique message you want and which DIV to show it in.

  1. Verify

    Open your site in a browser to verify the Pay Later wording displays as expected.

    The exact messaging text varies, depending on the available payment methods.

    Examples with PayPal:

    • Pay in 4 interest-free payments of $26.14 Pay Later Amount

    • Pay in 4 interest-free payments on qualifying purchases Pay Later Installments

    • No Interest if paid in full in 6 months Pay Later Credit

Troubleshooting Klarna Pay Later Messaging

Nexio provides a couple error messages in the response to assist in troubleshooting problems.

Status 400

The 400 message code indicates that the format used for the divId is not valid. For example, if there are spaces in the name.

Remove any spaces or other problem characters and retry the request.

Status 500

The 500 message code indicates that there is no matching DIV on the page with the specified divId.

Change the divId in the script to match one on the page, or add a DIV to the page and use the divId indicated in the script as the ID of the DIV.