doorpay

Product mapping

Lemon Squeezy Product Variants and WooCommerce: How Mapping Works

Connect the right catalog objects, preserve the purchased quantity, and verify an exact price before opening provider checkout.

Doorpay guides9 min readSources checked
A selected WooCommerce product or variation maps through Doorpay to the intended Lemon Squeezy variant in the matching environment.
Original conceptual illustration. Doorpay supplies integration software; the connected provider supplies payment services.

A variation and a variant are different records

Lemon Squeezy WooCommerce variants need an explicit association between the store item and the provider offer. Similar names in two dashboards do not establish that they represent the same purchase.

Lemon Squeezy variants describe versions or options of a provider product. WooCommerce variations are purchasable store options with their own configuration. Doorpay connects the selected store product or variation to the appropriate provider variant; it does not turn one catalog into the other.

This guide follows supplied Doorpay 1.5.7 documentation, reviewed 22 October 2026. The matching source package was not installed to write it. Confirm differences against your current release before following exact screen controls.

Doorpay is software for your own approved provider account. It does not receive, hold, route or settle funds, and does not create an approval exemption for a product category. Start with the Lemon Squeezy setup guide if the account connection is not ready.

Start with the documented cart shape

The supplied integration has a deliberately narrow checkout contract: one mapped virtual product or variation line, fixed one-time pricing, retained quantity and a supported two-decimal currency. One line with quantity two differs from two separate product lines.

Example cart Documented fit What still needs checking
One virtual mapped item; quantity one Potentially eligible Correct variant, environment, price, currency and tax result.
One virtual mapped item; quantity two Potentially eligible Retained quantity and an exact per-unit amount.
Two different product lines Outside the documented Lemon Squeezy scope Do not assume a common category or provider product merges the lines.
Recurring, physical shipping or arbitrary fee Outside the documented scope A provider capability or WordPress checkbox does not add integration support.

The provider supports features beyond this gateway contract. A subscription variant, pay-what-you-want offer or a choice of variants in a generic checkout is not evidence that Doorpay implements the same journey. Keep the advertised WooCommerce offer inside the installed integration’s supported shape.

1. Match the actual purchased item

Open Doorpay’s Products & mappings controls and review the selected WooCommerce product or variation. Compare its intended provider store, mode and variant. Use the current installation’s displayed fields rather than copying a setting path from another plugin.

For a language-edition example, the English PDF variation should reach the English provider offer and the German variation its intended German offer. Check price and delivery as well as the visible name. A correct parent-product title can conceal a wrong variation association.

Record a small mapping sheet: store item, provider variant, environment, billing type, currency, quantity and expected amount. Review it when an offer changes. A mapping is an operational relationship, not an assurance that future catalog edits stay synchronized.

Separate WooCommerce and Lemon Squeezy catalog objects are joined by a verified Doorpay mapping, followed by quantity and exact-price checks.
Original conceptual mapping. No real catalog identifiers, provider screens or completed checkout tests are shown.

2. Keep test and live records aligned

Choose the intended mode before copying catalog identifiers or configuring API access. Lemon Squeezy test mode gives a controlled environment for checkout testing; live selling also requires the store’s activation and applicable approval.

Keep test credentials and test catalog associations together, and review live configuration separately. A published test offer and a successful test purchase do not establish that a live variant exists, is purchasable or has the same identifier.

Changing the current mode must not change how an existing attempt is interpreted. Doorpay’s documented attempts retain their original environment and financial snapshot. Troubleshoot the particular attempt that belongs to the order instead of applying today’s mode to yesterday’s payment.

3. Understand per-unit custom pricing

The checkout creation API supports a positive integer custom_price for a variant. Doorpay’s documented one-time flow uses the saved WooCommerce amount and retained quantity to construct a supported checkout price; the field is not permission to accept a total supplied by browser code.

Keep the unit and line total separate. For a hypothetical US$29.00 item with quantity two, the line subtotal is US$58.00 before applicable tax or discount. A unit amount of 2900 cents multiplied by two equals 5800 cents.

If WooCommerce applies an eligible 10% discount to that line, the discounted amount is US$52.20. Dividing 5220 cents by two gives an exact unit price of 2610 cents. That example meets the arithmetic condition; the actual checkout must still pass the other mapping and tax checks.

By contrast, a US$50.00 total divided across quantity three is 5000 ÷ 3 cents, which is not an integer. Rounding a unit price would change the collected line total. The documented integration rejects a non-exact allocation rather than silently charging a different amount.

4. Keep coupons and tax checks in their own layer

WooCommerce remains the coupon engine. It decides eligibility and calculates the supported saved discount. The documented Lemon Squeezy translation does not require a matching provider coupon code, and it disables the provider coupon field to avoid a second independent discount calculation.

Use the WooCommerce coupon guide for restriction and allocation rules. The numbers above are hypothetical, tax-free arithmetic examples, not active promotions or proof that every coupon/cart combination is supported.

The provider checkout object can include pricing-preview information at creation. A preview is useful evidence about the requested checkout; it is not the eventual paid order. Doorpay verifies the saved amount and tax expectations again against authoritative payment data.

Tax-inclusive and added-tax amounts must not be mixed with the pre-tax examples casually. For the related Paddle accounting distinction, see the tax-inclusive pricing guide; it describes Paddle, not a universal Lemon Squeezy tax configuration.

5. Preserve the selected offer through checkout

Doorpay’s documented checkout does not let a customer switch the mapped variant inside provider checkout. The saved order identifies what was bought, and the provider result must describe that same offer. A generic provider product link with several choices is a different integration shape.

If an order’s product, quantity or amount changes, do not assume the old saved checkout URL now reflects it. Unchanged valid attempts may be reopened; a changed order must follow supported revalidation and attempt handling rather than reuse a stale financial snapshot.

Likewise, a successful provider purchase does not by itself prove the correct WooCommerce variation was fulfilled. Compare the payment association, selected variant, quantity, currency and authorized customer delivery once reconciliation completes.

Troubleshoot the record that disagrees

Symptom Useful check Safe next step
Variant not found or not purchasable Account/store, mode, identifier and provider status Select the correct existing eligible offer.
Wrong item or language Purchased variation versus mapped provider variant Repair future mapping and investigate affected attempts separately.
Amount or currency mismatch Saved unit/line values, quantity and checkout preview Resolve the actual mismatch; do not weaken exact checks.
Coupon accepted in Woo but checkout rejected Integer per-unit division and supported tax outcome Use a representable supported result, not arbitrary rounding.
Provider paid; store remains pending Signed event and authoritative reconciliation Use the existing attempt and payment evidence; avoid another charge.

After a correction, test the full intended order in the proper environment and document its real outcome. Use the payment-testing guide rather than treating a saved mapping or a product preview as a passed checkout test.

Variant mapping FAQs

Is a WooCommerce variation ID also the Lemon Squeezy variant ID?

No. They identify records in different systems. Verify the association instead of assuming similar numbers or names establish a match.

Does quantity two count as a multi-line order?

Not when it is one eligible order line with quantity two. Two different purchased lines remain outside the documented Lemon Squeezy cart scope.

Can I round a discounted custom unit price?

Not when rounding changes the amount to be collected. The documented flow requires exact minor-unit representation for the retained quantity.

Do provider subscription variants add recurring support to Doorpay?

No. The supplied Doorpay Lemon Squeezy documentation describes its supported one-time flow. Provider catalog capabilities do not add missing gateway lifecycle behavior.

Can a shopper change variants after opening checkout?

That is outside the documented Doorpay flow. Preserve the selected saved offer and use supported cart/order changes before preparing a new valid attempt.

Sources & scope

Provider references were checked on 24 October 2026. Doorpay-specific behavior is based on the supplied project documentation for release 1.5.7, reviewed 22 October 2026. Illustrations explain the workflow; they are not dashboard screenshots. No live provider-payment test, installed-code verification or performance benchmark is claimed.