Checkout content

Get your lenders' logos and a financing description for the PayTomorrow option at checkout.

PayTomorrow can return the content for your checkout's PayTomorrow payment option: the logos of the lenders on your account followed by a short description of financing. It updates automatically when your lenders change.

GET https://api.paytomorrow.com/api/content/public/{publicId}/template/custom/checkout

The endpoint is public and takes your Public ID, found under Resources in the merchant dashboard. No access token is needed, and it allows cross-origin requests, so you can load it from your checkout page.

If you use the WooCommerce or Magento plugin, this content is already on your checkout.

Live preview

The real response from a PayTomorrow staging demo account, rendered unstyled. Your logos depend on the lenders on your account.

Loading from staging...

Your URL

Environment

Find your production Public ID under Resources in the merchant dashboard. It's safe to put in page code.

https://api.paytomorrow.com/api/content/public/YOUR_PUBLIC_ID/template/custom/checkout

Response

An HTML snippet with one logo per lender on your account, then the description. For a merchant with Bread and PayTomorrow Lending:

<div class="pt-logo-wrapper">
  <span class="pt-logo" style="padding-right: 0.5rem;">
    <img src="https://cdn.paytomorrow.com/image/financing-page/bread-logo-icon.svg"/>
  </span>
  <span class="pt-logo" style="padding-right: 0.5rem;">
    <img src="https://cdn.paytomorrow.com/image/financing-page/paytomorrow-lending-logo-icon.svg"/>
  </span>
</div>
<p>PayTomorrow offers Financing for All Credit Types. Simply select PayTomorrow, supply some basic information via our secure application process and get a decision in seconds to complete your purchase. Applying to PayTomorrow will not affect your credit score.</p>

Staging

Use https://api-staging.paytomorrow.com/api with your staging Public ID. A Public ID only works in its own environment.

Errors

The endpoint returns 200 even when the Public ID is unknown, belongs to the other environment, or the account isn't active. In those cases the body is:

Your organization is inactive or not setup!

On this page