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
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.
Gateway settings
Edit the following fields for the gateway settings in the General Details section:
- Enter a Title and Category of your choosing.
- Enter the OnboardingKey from your Medpaid account.
- 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.
Then click Create Gateway to save.
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:
- In CRM > Products, edit a product that could be eligible.
- Set the Client ID field:Client ID
Medpaid - Add a clear Product Description for Medpaid's medical providers to evaluate.
- Click Update Product to save changes.
- Repeat for every eligible product.
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.
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.
Checkout configuration
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:
<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:
- Navigate to your funnel's page editor.
- Select the Blocks > Forms > Radio Button component.
- Drag and drop it onto the checkout page.
- 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.
payment_methodMEDPAIDUse this if your checkout switches between payment methods with a payment toggler. If your checkout lists payment methods as plain radio buttons, select Standard radio button instead.
fk-payment-option-togglerMEDPAID- Click Save to apply these changes to the checkout page.
- Exit out of the page editor and click Publish to go live with Medpaid!
hsa_fsa_eligible badge in the shopping cart.Upsell configuration (optional)
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.
Follow these steps to add the custom JavaScript code to each of your upsell pages that offer an eligible product:
- Navigate to the page editor in your funnel for the upsell page.
- 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.
- 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. - Edit the following script settings as needed:
The Browser Key Medpaid issued for your storeOptional. 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)."dev" while integrating, "prod" when you go live"true" prints setup logging to the browser console; set to "false" when livedata-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.<!-- your existing accept button, with ONE attribute added -->
<a href="#" class="your-accept-button" data-medpaid-accept="true">
Yes, I want this
</a>- 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.
- 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.
- Repeat for each upsell page that offers an eligible product.
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.
