3. Add Pay-at-Close Prompts

Now that you can accept Titus as a payment method, let your customers know early that they can pay at close.

Add prompts that open the Titus estimate modal on top of your site. In the modal, customers can see if they qualify, see their rate, and learn more about Titus.

This is a critical step because the whole point of Titus is to grow basket size and increase order conversion. This only happens if the customer knows early on that they can pay at close later.

1. Include the SDK

Paste this into your HTML:

<script src="https://assets.gotitus.com/sdk/v1/titus.js"></script>

Once loaded, the script defines the titus global. It opens the production estimate modal, even while you test on staging.

Wait for the script to load

Calling titus before the script loads throws an error. Show or enable your prompts only after the script's load callback runs.

In plain HTML, define the callback before the script tag, then pass it to onload:

<script>
  function onTitusLoad() {
    // titus is ready: show or enable your prompts here.
  }
</script>
<script src="https://assets.gotitus.com/sdk/v1/titus.js" onload="onTitusLoad()"></script>

In Next.js, use next/script with onReady in a client component:

import Script from 'next/script';

<Script
  src="https://assets.gotitus.com/sdk/v1/titus.js"
  onReady={() => {
    // titus is ready: show or enable your prompts here.
  }}
/>;

2. Choose where to show prompts

At minimum, add a prompt:

  • On every item page (e.g. a page that shows the cost of a service or package)

  • Inside the cart page (e.g. a page that shows current selection and total)

  • Inside the checkout page (e.g. the page where the customer checks out)

Additional options:

  • From a banner on top of any page

See the design guidelines for detailed guidance.

3. Find your business short code

The estimate modal uses your business short code to show your business's pay-at-close terms.

  1. In the dashboard, go to Settings → Account.

  2. Under Business details, copy Business short code.

Staging and production have separate accounts. Copy the short code again for production.

4. Open the modal

When the customer clicks a prompt, call showEstimateModal(). Pass your business short code and, wherever you know the price, the amount in dollars.

// typically in a button click handler
titus.showEstimateModal({
  businessShortCode: 'abc123', // your business short code
  amount: 1500.0, // the item or cart total, in dollars
});

Example inside a button click handler

<button onclick="titus.showEstimateModal({ businessShortCode: 'abc123', amount: 1500.00 })">
  Open Titus Estimate
</button>
  • businessShortCode makes the estimate use your business's pay-at-close terms. Without it, the modal shows default rates.

  • amount calculates the estimate against that total. Pass it on item, cart and checkout pages.

The modal only shows an estimate. The customer applies for pay at close when they pay.

For the full SDK API including checkout() and error handling, see the Browser SDK reference.

Next, share pay links if you want them, then go live.