Orders and writeback
How a paid order reaches Shopify
On Whop’s payment webhook LatchPay creates the Shopify order with a paid transaction, the quoted numbers, the latchpay tag and the Whop payment id.
Updated
When the order is created
LatchPay never creates a Shopify order from the browser. It waits for Whop's payment.succeeded webhook, verifies its signature, and only then writes the order. That usually happens within a few seconds of the buyer paying; the checkout's thank-you page waits for it before sending the buyer to Shopify's order status page.
What the Shopify order looks like
The numbers Shopify quoted, verbatim
Line items with their unit prices and per-line tax, the shipping line with its tax, the discount as one order-level code, the presentment currency and your store currency, taxes included or not as your store is set up.
A paid sale transaction
Gateway
Latchpay via Whop, the Whop payment id as the authorization code, so the order reads as paid, not pending.Tags and notes
Tag
latchpay; sourcelatchpay; the Whop payment id in the note, in a metafield and as the source identifier, so you can search Shopify by it. Review tags are added only when something needs a look (see Partially paid, needs review).The customer
The buyer's email is attached to the customer record (created if new), with the shipping and billing addresses from the checkout.
Inventory, emails and fulfilment
- Inventory is decremented, obeying your inventory policy, exactly as for an order from Shopify's checkout.
- Shopify sends its own order confirmation email; LatchPay sends none.
- Fulfilment, the order status page, refunds in the Shopify admin and reports all work as usual.
One Shopify cart is one Whop payment. A second Whop payment for the same checkout (a double tap on a flaky connection) never creates a second order; the existing order is flagged for review with the duplicate payment id so you can refund it on Whop.
The Orders page
Orders lists every LatchPay order newest first with the Whop payment id, the Shopify order name and link, the amount and a status pill: Paid, Partially paid, Needs review, Writing back, Writeback failed, Partly refunded or Refunded. The tabs filter by All, Paid, Partially paid, Refunded, Needs review and Writeback failed; the search box matches the order name, the buyer email or a Whop or Shopify id.
Test orders
A payment made through the test path is written back like any other, so the whole chain is exercised, but the order is marked as a test in LatchPay: it is left out of the usage fee and of the dashboard's revenue numbers, and the Shopify order carries a note saying so.