Checkout Champ Gateway Integration

Medpaid gateway setup in Checkout Champ

The Medpaid gateway enables payment processing for US consumers through Checkout Champ's CRM.

Gateway type
Medpaid is a complete payment processor gateway. It doesn't support direct Authorize, Capture, or Void.
Refunds
Refunds process asynchronously, after Medpaid provides final disposition.
Works with
Checkout Champ pages and landers that connect via Direct API.
Not supported
Order Entry workflows.

Setup process

Jump to step
1

Gateway installation

In Checkout Champ CRM, go to Gateways > Gateway Integrations and select the Medpaid tile.

If you're already a Medpaid customer, click Activate, then continue to Step 2 below.

If not, click Sign Up and follow the onboarding steps — once onboarding is complete the Medpaid gateway is created automatically, so you can skip ahead to Step 3 below.

Medpaid gateway tile in Checkout Champ, marked Hosted, with Sign Up, Activate, and Learn More buttons
2

Gateway settings

Edit the following fields for the gateway settings in the General Details section:

  1. Enter a Title and Category of your choosing.
  2. Enter the OnboardingKey from your Medpaid account.
  3. Set productUrl to a campaign URL pointing to your most complete campaign — this is the landing page Medpaid's own marketing will refer customers to.
Note: Your ExternalKey is assigned automatically by Checkout Champ and isn't something you edit.

Then click Create Gateway to save.

Filled in with sample data
3

Product configuration

HSA/FSA products must be approved by Medpaid before they qualify. Follow these steps to prepare your products for review by Medpaid's onboarding team:

  1. In CRM > Products, edit a product that could be eligible.
  2. Set the Client ID field:
    Client IDMedpaid
  3. Add a clear Product Description for Medpaid's medical providers to evaluate.
  4. Click Update Product to save changes.
  5. Repeat for every eligible product.
Edit Product page in Checkout Champ with the Client ID field set to Medpaid highlighted
4

Sync products with Medpaid (product review)

Navigate to the Medpaid gateway settings and click Sync Products to send your marked products to Medpaid for review.

Sync Products button on the Medpaid gateway edit page in Checkout Champ

Review takes some time; approved products receive an hsa_fsa_eligible tag (which can't be removed) and automatically show an hsa_fsa_eligible badge in the shopping cart.

Important: New products in your store aren't sent to Medpaid automatically. Every time you add a product that you want reviewed for HSA/FSA eligibility, repeat Steps 3 and 4 for that product.
5

Checkout configuration

Tip: Before making changes, we recommend that you duplicate your current checkout page and/or funnel. In case something isn't working, you can quickly switch to a stable and working checkout.

Open the section below that matches how your checkout page connects to Checkout Champ.

Direct API

The checkout page must use HTTPS; a non-secure call to the Medpaid gateway is rejected. Pass paySource=PREPAID and prepaidType=MEDPAID on the import order API call from your checkout page. One option is hidden input fields:

html
<input type="hidden" name='paySource' value="PREPAID">
<input type='hidden' name='prepaidType' value='MEDPAID'>

The checkout page must also handle standard 3DS processing per Checkout Champ's Direct API 3DS instructions.

Hosted pages

To enable Medpaid as a payment option, add a radio button on the checkout page:

  1. Navigate to your funnel's page editor.
  2. Select the Blocks > Forms > Radio Button component.
  3. Drag and drop it onto the checkout page.
Checkout Champ page builder with the Blocks menu open to Forms and the Radio Button element highlighted
  1. Next, select the radio button and edit its settings. Choose the option that matches your checkout page:

Use this if your checkout lists payment methods as plain radio buttons. If your checkout switches between payment methods with a payment toggler, select Payment toggler instead.

Settings
Namepayment_method
ValueMEDPAID
Checkout page with a Pay with HSA/FSA Account radio button, and the settings panel with Name set to payment_method and Value set to MEDPAID
  1. Click Save to apply these changes to the checkout page.
    Checkout Champ "Page Saved Successfully" confirmation message
  2. Exit out of the page editor and click Publish to go live with Medpaid!
    Checkout Champ "Publish success" confirmation message
Note: The radio button is automatically disabled on a live page if no approved products are in the shopping cart.
Note: Approved products automatically display an hsa_fsa_eligible badge in the shopping cart.
6

Upsell configuration (optional)

Tip: Skip this step if your funnel has no upsell offers, or if none of your upsell products are HSA/FSA eligible.

If your funnel offers HSA/FSA-eligible products as upsells, a shopper can buy them with the same HSA/FSA card they used on the original order — no card entry and no second checkout.

Some products first need a question or two answered about them, and a small script asks those in the page before the shopper accepts.

Example render of Medpaid JavaScript code for upsells

Follow these steps to add the custom JavaScript code to each of your upsell pages that offer an eligible product:

  1. Navigate to the page editor in your funnel for the upsell page.
  2. Click on the Edit Code button at the top of the page.
    Tip: You can also right-click on a component in the page and click Edit Code to filter the source code to just the component and its subcomponents.
  3. Paste the custom code provided below near your accept button.
    html
    <script
      data-browser-key="YOUR_BROWSER_KEY"
      data-env="prod"
      data-debug="false">
    (function () {
      var CDN = 'https://cdn.medpaid.com/checkout-champ/upsell.js';
      var tags = document.getElementsByTagName('script');
      var self = document.currentScript || tags[tags.length - 1];
      var s = document.createElement('script');
      s.src = CDN;
      for (var i = 0; i < self.attributes.length; i++) {
        var a = self.attributes[i];
        if (a.name.indexOf('data-') === 0) s.setAttribute(a.name, a.value);
      }
      s.async = false;
      self.parentNode.insertBefore(s, self.nextSibling);
    })();
    </script>
    Tip: Do not put this in Global Scripts. The questions render where the snippet is pasted, so each upsell page gets its own copy, next to that page’s accept button.
  4. Edit the following script settings as needed:
Settings
data-browser-keyThe Browser Key Medpaid issued for your store
data-product-idOptional. Normally leave it off — Medpaid identifies the offer from Checkout Champ’s product data. Set it only when that cannot work: if the console (with data-debug="true") shows no offer found, or the wrong product — for example an A/B-test campaign product, or a page where Checkout Champ has not published its product data. Then give the offer’s BASE product ID (not the campaign product ID).
data-env"dev" while integrating, "prod" when you go live
data-debug"true" prints setup logging to the browser console; set to "false" when live
Important: If you set data-product-id, use the BASE product ID for the offer on that page: the ID on the product’s own page in Checkout Champ, not the campaign product ID beside it in a campaign’s product list. Those are different numbers, and only the BASE product ID identifies the product to us.
Use this
Product Id field on the Edit Product page in Checkout Champ, highlighted as the ID to use
Not these
Product IDs in the Campaigns table of a Checkout Champ product, crossed out as IDs not to use
Tip: Medpaid finds Checkout Champ’s standard accept button automatically. If the console (with data-debug="true") reports no accept control matched — usually because your page uses a custom button — add data-medpaid-accept="true" to the accept button itself: the <a> or <button> element the shopper clicks to accept the offer. Put it on that element, not on the snippet and not on a wrapping container.
html
<!-- your existing accept button, with ONE attribute added -->
<a href="#" class="your-accept-button" data-medpaid-accept="true">
  Yes, I want this
</a>
An accept button’s HTML with data-medpaid-accept="true" added on the <a> element, highlighted
Tip: If you can’t edit the button itself — it is rendered by a template or component you don’t control — leave the button alone and instead set data-accept-selector on the snippet’s <script> tag to a CSS selector that matches the button.
  1. Ask Medpaid to register this page’s origin against your Browser Key. The key is designed to be public and is visible in your page source; it is safe because Medpaid only accepts it from the origins registered against it.
  2. Route the arrow leaving each upsell page the same way for a decline as for a success. When an offer isn't completed on Medpaid — the shopper isn't eligible, or there's no card on file to charge an ineligible item — that is not a card failure and should not stop the rest of your offers; routing both the same way lets the funnel continue to the next one.
  3. Repeat for each upsell page that offers an eligible product.
Tip: If anything goes wrong — a network problem, a bad setting, a Medpaid outage — your accept button is restored exactly as it was and the shopper carries on. A Medpaid problem never blocks your funnel.

More than one offer on a page? See CC Advanced Funnels.

How Medpaid orders work

An eligible product is required

At least one product in the order must be HSA/FSA eligible (approved by Medpaid).

Rebills are supported

Medpaid supports rebills.

Split payments are supported

Medpaid can split payment between eligible and ineligible products in the same order.

Split payments show in Medpaid only

Checkout Champ's order system doesn't record whether a payment was split between an HSA/FSA card and a regular credit/debit card. You'll only see it in Medpaid.

Ineligible upsells depend on the card on file

Whether a shopper can buy an upsell that isn't HSA/FSA eligible depends on how they paid the original order. If they used a regular credit/debit card — in whole or in part — that card is on file, so the ineligible upsell charges to it normally; they just don't get the HSA/FSA benefit on it. If they paid the original order entirely with their HSA/FSA card, there's no other card on file to charge, so that offer can't be completed: nothing is charged and the funnel moves on to your next offer. Eligible upsells are unaffected — those always charge to the HSA/FSA card.