[{"data":1,"prerenderedAt":1768},["ShallowReactive",2],{"versions":3,"nav-guides":8,"nav-ref-v1":86,"guide-\u002Fguides\u002Fembed-checkout":618,"guide-around-\u002Fguides\u002Fembed-checkout":1763},[4],{"id":5,"label":5,"file":6,"status":7},"v1","cartirra-v1.json","current",[9,14,19,24,29,34,39,44,49,55,60,65,70,75,80],{"path":10,"title":11,"group":11,"order":12,"description":13},"\u002Fguides\u002Fgetting-started","Getting started",1,"What the Cartirra API does, how requests look, and the three things to set up first.",{"path":15,"title":16,"group":11,"order":17,"description":18},"\u002Fguides\u002Fquickstart","Quickstart",2,"Create a checkout session from your server, let the shopper pay, and read the order. About ten minutes, all in test mode.",{"path":20,"title":21,"group":11,"order":22,"description":23},"\u002Fguides\u002Fembed-checkout","Cartirra Popup and Redirect",2.5,"Open the checkout over your own page with one script tag (Cartirra Popup), or send shoppers to Cartirra's checkout page (Cartirra Redirect). Then confirm the order on your server.",{"path":25,"title":26,"group":11,"order":27,"description":28},"\u002Fguides\u002Fad-tracking","Track checkouts in your ads",2.6,"Your Meta, Google and TikTok pixels see every checkout step and purchase, in the browser and from Cartirra's server, counted once.",{"path":30,"title":31,"group":11,"order":32,"description":33},"\u002Fguides\u002Fpay-at-table","Pay at table",2.7,"Tables with QR codes, bills guests pay from their phone (all at once or split), the live board, refunds and the day's reconciliation. An add-on, per store.",{"path":35,"title":36,"group":11,"order":37,"description":38},"\u002Fguides\u002Fwarranties","Warranties",2.8,"Give a warranty with an item at checkout, or add one after the sale. The shopper keeps it in their Cartirra account and is reminded before it ends. Growth and above.",{"path":40,"title":41,"group":11,"order":42,"description":43},"\u002Fguides\u002Fauthentication","Authentication",3,"Secret and public keys, test and live mode, rotating keys without downtime, and keeping them safe.",{"path":45,"title":46,"group":11,"order":47,"description":48},"\u002Fguides\u002Ftest-mode","Test mode",4,"Build and test your integration with test keys. Payments, refunds and payouts are simulated; no real money moves.",{"path":50,"title":51,"group":52,"order":53,"description":54},"\u002Fguides\u002Fpagination","Pagination and filtering","Core concepts",10,"Lists are newest first and use cursors. Ask for up to 100 items a page and follow next_cursor.",{"path":56,"title":57,"group":52,"order":58,"description":59},"\u002Fguides\u002Fidempotency","Idempotency",11,"Retry creates and refunds safely. The same Idempotency-Key always gets the same response, and the action happens once.",{"path":61,"title":62,"group":52,"order":63,"description":64},"\u002Fguides\u002Ferrors","Errors and troubleshooting",12,"One error shape everywhere. Branch on code, show message, and quote request_id when you contact support.",{"path":66,"title":67,"group":52,"order":68,"description":69},"\u002Fguides\u002Frate-limits","Rate limits",13,"Each secret key gets its own request budget. Back off on 429 using Retry-After.",{"path":71,"title":72,"group":52,"order":73,"description":74},"\u002Fguides\u002Fversioning","Versioning",14,"The version is in the path. Within v1 we only add things, and anything removed is announced with Deprecation and Sunset headers first.",{"path":76,"title":77,"group":77,"order":78,"description":79},"\u002Fguides\u002Fwebhooks","Webhooks",20,"Cartirra posts signed events to your endpoint when orders, payments, refunds, payouts and customers change. Verify, deduplicate, answer fast.",{"path":81,"title":82,"group":83,"order":84,"description":85},"\u002Fguides\u002Fchangelog","Changelog","Resources",30,"Changes to the Cartirra API and these docs. Within v1, changes are additive only.",{"title":87,"version":88,"tags":89,"webhooks":536},"Cartirra API","1.0.0",[90,112,136,171,239,313,345,355,369,384,409,432,446,456,481,496,511,526],{"name":91,"slug":92,"description":93,"operations":94},"Checkout sessions","checkout-sessions","Open a checkout for a cart; the shopper pays in Cartirra Popup on your page or through Cartirra Redirect.",[95,101,107],{"operationId":96,"slug":97,"method":98,"path":99,"summary":100,"tag":91},"createCheckoutSession","create-checkout-session","post","\u002Fv1\u002Fcheckout-sessions","Create a checkout session",{"operationId":102,"slug":103,"method":104,"path":105,"summary":106,"tag":91},"getCheckoutSession","get-checkout-session","get","\u002Fv1\u002Fcheckout-sessions\u002F{id}","Retrieve a checkout session",{"operationId":108,"slug":109,"method":98,"path":110,"summary":111,"tag":91},"expireCheckoutSession","expire-checkout-session","\u002Fv1\u002Fcheckout-sessions\u002F{id}\u002Fexpire","Expire a checkout session",{"name":113,"slug":114,"description":115,"operations":116},"Payment links","payment-links","Carts you share as a link (WhatsApp, Instagram, SMS): no code needed.",[117,122,126,131],{"operationId":118,"slug":119,"method":104,"path":120,"summary":121,"tag":113},"listPaymentLinks","list-payment-links","\u002Fv1\u002Fpayment-links","List payment links",{"operationId":123,"slug":124,"method":98,"path":120,"summary":125,"tag":113},"createPaymentLink","create-payment-link","Create a payment link",{"operationId":127,"slug":128,"method":104,"path":129,"summary":130,"tag":113},"getPaymentLink","get-payment-link","\u002Fv1\u002Fpayment-links\u002F{id}","Retrieve a payment link",{"operationId":132,"slug":133,"method":134,"path":129,"summary":135,"tag":113},"updatePaymentLink","update-payment-link","patch","Update a payment link",{"name":137,"slug":138,"description":139,"operations":140},"Tables","tables","Pay at table: your tables and the QR code printed on each.",[141,146,152,157,161,166],{"operationId":142,"slug":143,"method":104,"path":144,"summary":145,"tag":137},"listPayAtTableStores","list-pay-at-table-stores","\u002Fv1\u002Fpay-at-table\u002Fstores","List Pay at table stores",{"operationId":147,"slug":148,"method":149,"path":150,"summary":151,"tag":137},"setStorePayAtTable","set-store-pay-at-table","put","\u002Fv1\u002Fstores\u002F{store_id}\u002Fpay-at-table","Turn Pay at table on or off at a store",{"operationId":153,"slug":154,"method":104,"path":155,"summary":156,"tag":137},"listTables","list-tables","\u002Fv1\u002Fstores\u002F{store_id}\u002Ftables","List tables",{"operationId":158,"slug":159,"method":98,"path":155,"summary":160,"tag":137},"createTables","create-tables","Add tables",{"operationId":162,"slug":163,"method":134,"path":164,"summary":165,"tag":137},"updateTable","update-table","\u002Fv1\u002Ftables\u002F{id}","Update a table",{"operationId":167,"slug":168,"method":98,"path":169,"summary":170,"tag":137},"rotateTableQr","rotate-table-qr","\u002Fv1\u002Ftables\u002F{id}\u002Frotate-qr","Replace a table’s QR link",{"name":172,"slug":173,"description":174,"operations":175},"Bills","bills","Pay at table: bills guests pay from the table QR (all at once or split), the live board, refunds and the day’s reconciliation.",[176,181,185,190,195,200,205,210,215,220,224,229,234],{"operationId":177,"slug":178,"method":104,"path":179,"summary":180,"tag":172},"listBills","list-bills","\u002Fv1\u002Fbills","List bills",{"operationId":182,"slug":183,"method":98,"path":179,"summary":184,"tag":172},"openBill","open-bill","Open a bill",{"operationId":186,"slug":187,"method":104,"path":188,"summary":189,"tag":172},"getBillBoard","get-bill-board","\u002Fv1\u002Fbills\u002Fboard","Retrieve the table board",{"operationId":191,"slug":192,"method":104,"path":193,"summary":194,"tag":172},"lookupBillPayments","lookup-bill-payments","\u002Fv1\u002Fbills\u002Fpayments","Find a table payment",{"operationId":196,"slug":197,"method":104,"path":198,"summary":199,"tag":172},"getBillReconciliation","get-bill-reconciliation","\u002Fv1\u002Fbills\u002Freconciliation","Retrieve the day’s reconciliation",{"operationId":201,"slug":202,"method":104,"path":203,"summary":204,"tag":172},"listBillRefunds","list-bill-refunds","\u002Fv1\u002Fbills\u002Frefunds","List the refund queue",{"operationId":206,"slug":207,"method":98,"path":208,"summary":209,"tag":172},"refundBillRefund","refund-bill-refund","\u002Fv1\u002Fbills\u002Frefunds\u002F{id}\u002Frefund","Send a queued refund",{"operationId":211,"slug":212,"method":98,"path":213,"summary":214,"tag":172},"dismissBillRefund","dismiss-bill-refund","\u002Fv1\u002Fbills\u002Frefunds\u002F{id}\u002Fdismiss","Dismiss a queued refund",{"operationId":216,"slug":217,"method":104,"path":218,"summary":219,"tag":172},"getBill","get-bill","\u002Fv1\u002Fbills\u002F{id}","Retrieve a bill",{"operationId":221,"slug":222,"method":134,"path":218,"summary":223,"tag":172},"updateBill","update-bill","Update a bill",{"operationId":225,"slug":226,"method":98,"path":227,"summary":228,"tag":172},"recordBillOutsidePayment","record-bill-outside-payment","\u002Fv1\u002Fbills\u002F{id}\u002Foutside","Record a payment outside Cartirra",{"operationId":230,"slug":231,"method":98,"path":232,"summary":233,"tag":172},"closeBill","close-bill","\u002Fv1\u002Fbills\u002F{id}\u002Fclose","Close a bill",{"operationId":235,"slug":236,"method":98,"path":237,"summary":238,"tag":172},"voidBill","void-bill","\u002Fv1\u002Fbills\u002F{id}\u002Fvoid","Void a bill",{"name":240,"slug":241,"description":242,"operations":243},"Orders","orders","Orders placed through checkout: read them and move them through fulfilment, and answer problems shoppers report.",[244,249,254,259,264,269,274,279,284,289,294,298,303,308],{"operationId":245,"slug":246,"method":104,"path":247,"summary":248,"tag":240},"getOrderRelated","get-order-related","\u002Fv1\u002Forders\u002F{id}\u002Frelated","Retrieve order extras",{"operationId":250,"slug":251,"method":104,"path":252,"summary":253,"tag":240},"listOrders","list-orders","\u002Fv1\u002Forders","List orders",{"operationId":255,"slug":256,"method":104,"path":257,"summary":258,"tag":240},"getOrder","get-order","\u002Fv1\u002Forders\u002F{id}","Retrieve an order",{"operationId":260,"slug":261,"method":104,"path":262,"summary":263,"tag":240},"listOrderActivity","list-order-activity","\u002Fv1\u002Forders\u002F{id}\u002Factivity","List order activity",{"operationId":265,"slug":266,"method":98,"path":267,"summary":268,"tag":240},"updateOrderStatus","update-order-status","\u002Fv1\u002Forders\u002F{id}\u002Fstatus","Update order status",{"operationId":270,"slug":271,"method":98,"path":272,"summary":273,"tag":240},"acceptOrder","accept-order","\u002Fv1\u002Forders\u002F{id}\u002Faccept","Accept an order",{"operationId":275,"slug":276,"method":149,"path":277,"summary":278,"tag":240},"updateOrderDeliveryAddress","update-order-delivery-address","\u002Fv1\u002Forders\u002F{id}\u002Fdelivery-address","Update delivery address",{"operationId":280,"slug":281,"method":98,"path":282,"summary":283,"tag":240},"cancelOrder","cancel-order","\u002Fv1\u002Forders\u002F{id}\u002Fcancel","Cancel an order",{"operationId":285,"slug":286,"method":104,"path":287,"summary":288,"tag":240},"listOrderIssues","list-order-issues","\u002Fv1\u002Forder-issues","List problem reports",{"operationId":290,"slug":291,"method":104,"path":292,"summary":293,"tag":240},"getOrderIssue","get-order-issue","\u002Fv1\u002Forder-issues\u002F{id}","Retrieve a problem report",{"operationId":295,"slug":296,"method":134,"path":292,"summary":297,"tag":240},"updateOrderIssue","update-order-issue","Update a problem report",{"operationId":299,"slug":300,"method":98,"path":301,"summary":302,"tag":240},"markPayOnDeliveryCollected","mark-pay-on-delivery-collected","\u002Fv1\u002Forders\u002F{id}\u002Fpay-on-delivery\u002Fcollected","Mark pay on delivery collected",{"operationId":304,"slug":305,"method":98,"path":306,"summary":307,"tag":240},"markPayOnDeliveryNotPaid","mark-pay-on-delivery-not-paid","\u002Fv1\u002Forders\u002F{id}\u002Fpay-on-delivery\u002Fnot-paid","Mark pay on delivery not paid",{"operationId":309,"slug":310,"method":98,"path":311,"summary":312,"tag":240},"rejectOrder","reject-order","\u002Fv1\u002Forders\u002F{id}\u002Freject","Reject an order",{"name":36,"slug":314,"description":315,"operations":316},"warranties","Warranties on what you sold: sent on checkout lines or added afterwards. Shoppers keep them in their Cartirra account.",[317,322,327,331,336,341],{"operationId":318,"slug":319,"method":104,"path":320,"summary":321,"tag":36},"listWarranties","list-warranties","\u002Fv1\u002Fwarranties","List warranties",{"operationId":323,"slug":324,"method":104,"path":325,"summary":326,"tag":36},"getWarranty","get-warranty","\u002Fv1\u002Fwarranties\u002F{id}","Retrieve a warranty",{"operationId":328,"slug":329,"method":134,"path":325,"summary":330,"tag":36},"updateWarranty","update-warranty","Update a warranty",{"operationId":332,"slug":333,"method":98,"path":334,"summary":335,"tag":36},"voidWarranty","void-warranty","\u002Fv1\u002Fwarranties\u002F{id}\u002Fvoid","Void a warranty",{"operationId":337,"slug":338,"method":104,"path":339,"summary":340,"tag":36},"listOrderWarranties","list-order-warranties","\u002Fv1\u002Forders\u002F{id}\u002Fwarranties","List an order's warranties",{"operationId":342,"slug":343,"method":98,"path":339,"summary":344,"tag":36},"createWarranty","create-warranty","Add a warranty to an order",{"name":346,"slug":347,"description":348,"operations":349},"Payments","payments","The payment behind an order (bank transfer or card).",[350],{"operationId":351,"slug":352,"method":104,"path":353,"summary":354,"tag":346},"getPayment","get-payment","\u002Fv1\u002Fpayments\u002F{id}","Retrieve a payment",{"name":356,"slug":357,"description":358,"operations":359},"Refunds","refunds","Return money to the shopper, in full or in part.",[360,365],{"operationId":361,"slug":362,"method":104,"path":363,"summary":364,"tag":356},"listRefunds","list-refunds","\u002Fv1\u002Forders\u002F{id}\u002Frefunds","List refunds",{"operationId":366,"slug":367,"method":98,"path":363,"summary":368,"tag":356},"createRefund","create-refund","Create a refund",{"name":370,"slug":371,"description":372,"operations":373},"Receipts","receipts","Receipts and credit notes issued for orders.",[374,379],{"operationId":375,"slug":376,"method":104,"path":377,"summary":378,"tag":370},"getOrderReceipt","get-order-receipt","\u002Fv1\u002Forders\u002F{id}\u002Freceipt","Retrieve a receipt",{"operationId":380,"slug":381,"method":104,"path":382,"summary":383,"tag":370},"listOrderCreditNotes","list-order-credit-notes","\u002Fv1\u002Forders\u002F{id}\u002Fcredit-notes","List credit notes",{"name":385,"slug":386,"description":387,"operations":388},"Customers","customers","Shoppers who shared their details with your business.",[389,394,399,404],{"operationId":390,"slug":391,"method":104,"path":392,"summary":393,"tag":385},"listCustomerActivity","list-customer-activity","\u002Fv1\u002Fcustomers\u002F{id}\u002Factivity","List customer activity",{"operationId":395,"slug":396,"method":104,"path":397,"summary":398,"tag":385},"listCustomerAddresses","list-customer-addresses","\u002Fv1\u002Fcustomers\u002F{id}\u002Faddresses","List customer addresses",{"operationId":400,"slug":401,"method":104,"path":402,"summary":403,"tag":385},"listCustomers","list-customers","\u002Fv1\u002Fcustomers","List customers",{"operationId":405,"slug":406,"method":104,"path":407,"summary":408,"tag":385},"getCustomer","get-customer","\u002Fv1\u002Fcustomers\u002F{id}","Retrieve a customer",{"name":410,"slug":411,"description":412,"operations":413},"Promotions","promotions","Discount codes and automatic promotions.",[414,419,423,428],{"operationId":415,"slug":416,"method":104,"path":417,"summary":418,"tag":410},"listPromotions","list-promotions","\u002Fv1\u002Fpromotions","List promotions",{"operationId":420,"slug":421,"method":98,"path":417,"summary":422,"tag":410},"createPromotion","create-promotion","Create a promotion",{"operationId":424,"slug":425,"method":104,"path":426,"summary":427,"tag":410},"getPromotion","get-promotion","\u002Fv1\u002Fpromotions\u002F{id}","Retrieve a promotion",{"operationId":429,"slug":430,"method":134,"path":426,"summary":431,"tag":410},"updatePromotion","update-promotion","Update a promotion",{"name":433,"slug":434,"description":435,"operations":436},"Gift cards","gift-cards","Issue and list gift cards.",[437,442],{"operationId":438,"slug":439,"method":104,"path":440,"summary":441,"tag":433},"listGiftCards","list-gift-cards","\u002Fv1\u002Fgift-cards","List gift cards",{"operationId":443,"slug":444,"method":98,"path":440,"summary":445,"tag":433},"createGiftCard","create-gift-card","Issue a gift card",{"name":447,"slug":448,"description":449,"operations":450},"Reviews","reviews","Ratings shoppers left on completed orders.",[451],{"operationId":452,"slug":453,"method":104,"path":454,"summary":455,"tag":447},"listReviews","list-reviews","\u002Fv1\u002Freviews","List reviews",{"name":457,"slug":458,"description":459,"operations":460},"Balance","balance","Your Cartirra balance and its movements.",[461,466,471,476],{"operationId":462,"slug":463,"method":104,"path":464,"summary":465,"tag":457},"getBalance","get-balance","\u002Fv1\u002Fbalance","Retrieve balance",{"operationId":467,"slug":468,"method":104,"path":469,"summary":470,"tag":457},"listBalanceTransactions","list-balance-transactions","\u002Fv1\u002Fbalance\u002Ftransactions","List balance transactions",{"operationId":472,"slug":473,"method":104,"path":474,"summary":475,"tag":457},"getBalanceTransaction","get-balance-transaction","\u002Fv1\u002Fbalance\u002Ftransactions\u002F{id}","Retrieve a balance transaction",{"operationId":477,"slug":478,"method":104,"path":479,"summary":480,"tag":457},"getDeposit","get-deposit","\u002Fv1\u002Fbalance\u002Fdeposits\u002F{id}","Retrieve a deposit",{"name":482,"slug":483,"description":484,"operations":485},"Payouts","payouts","Money sent from your balance to your bank account.",[486,491],{"operationId":487,"slug":488,"method":104,"path":489,"summary":490,"tag":482},"listPayouts","list-payouts","\u002Fv1\u002Fpayouts","List payouts",{"operationId":492,"slug":493,"method":104,"path":494,"summary":495,"tag":482},"getPayout","get-payout","\u002Fv1\u002Fpayouts\u002F{id}","Retrieve a payout",{"name":497,"slug":498,"description":499,"operations":500},"Stores","stores","Your business's stores.",[501,506],{"operationId":502,"slug":503,"method":104,"path":504,"summary":505,"tag":497},"listStores","list-stores","\u002Fv1\u002Fstores","List stores",{"operationId":507,"slug":508,"method":104,"path":509,"summary":510,"tag":497},"getStore","get-store","\u002Fv1\u002Fstores\u002F{store_id}","Retrieve a store",{"name":512,"slug":513,"description":514,"operations":515},"Events","events","Everything Cartirra sent (or would send) to your webhook endpoint.",[516,521],{"operationId":517,"slug":518,"method":104,"path":519,"summary":520,"tag":512},"listEvents","list-events","\u002Fv1\u002Fevents","List events",{"operationId":522,"slug":523,"method":104,"path":524,"summary":525,"tag":512},"getEvent","get-event","\u002Fv1\u002Fevents\u002F{id}","Retrieve an event",{"name":527,"slug":528,"description":529,"operations":530},"Account","account","The business and mode your key belongs to.",[531],{"operationId":532,"slug":533,"method":104,"path":534,"summary":535,"tag":527},"getContext","get-context","\u002Fv1\u002Fme\u002Fcontext","Retrieve key context",[537,540,543,546,549,552,555,558,561,564,567,570,573,576,579,582,585,588,591,594,597,600,603,606,609,612,615],{"event":538,"slug":539,"summary":538},"order.created","order-created",{"event":541,"slug":542,"summary":541},"order.updated","order-updated",{"event":544,"slug":545,"summary":544},"payment.succeeded","payment-succeeded",{"event":547,"slug":548,"summary":547},"payment.failed","payment-failed",{"event":550,"slug":551,"summary":550},"payment.expired","payment-expired",{"event":553,"slug":554,"summary":553},"refund.succeeded","refund-succeeded",{"event":556,"slug":557,"summary":556},"refund.failed","refund-failed",{"event":559,"slug":560,"summary":559},"payout.paid","payout-paid",{"event":562,"slug":563,"summary":562},"payout.failed","payout-failed",{"event":565,"slug":566,"summary":565},"webhook.test","webhook-test",{"event":568,"slug":569,"summary":568},"customer.created","customer-created",{"event":571,"slug":572,"summary":571},"customer.updated","customer-updated",{"event":574,"slug":575,"summary":574},"bill.opened","bill-opened",{"event":577,"slug":578,"summary":577},"bill.updated","bill-updated",{"event":580,"slug":581,"summary":580},"bill.payment_received","bill-payment-received",{"event":583,"slug":584,"summary":583},"bill.closed","bill-closed",{"event":586,"slug":587,"summary":586},"bill.voided","bill-voided",{"event":589,"slug":590,"summary":589},"customer.consent_revoked","customer-consent-revoked",{"event":592,"slug":593,"summary":592},"order.issue_reported","order-issue-reported",{"event":595,"slug":596,"summary":595},"order.issue_updated","order-issue-updated",{"event":598,"slug":599,"summary":598},"warranty.created","warranty-created",{"event":601,"slug":602,"summary":601},"warranty.updated","warranty-updated",{"event":604,"slug":605,"summary":604},"warranty.voided","warranty-voided",{"event":607,"slug":608,"summary":607},"order.accepted","order-accepted",{"event":610,"slug":611,"summary":610},"order.rejected","order-rejected",{"event":613,"slug":614,"summary":613},"loyalty.tier_changed","loyalty-tier-changed",{"event":616,"slug":617,"summary":616},"loyalty.reward_redeemed","loyalty-reward-redeemed",{"id":619,"title":21,"body":620,"description":23,"extension":1758,"group":11,"meta":1759,"navigation":910,"order":22,"path":20,"seo":1760,"stem":1761,"__hash__":1762},"guides\u002Fguides\u002Fembed-checkout.md",{"type":621,"value":622,"toc":1743},"minimark",[623,627,644,647,672,682,687,690,733,747,751,757,1061,1168,1174,1181,1198,1202,1212,1268,1272,1275,1285,1335,1346,1380,1459,1465,1505,1512,1518,1585,1589,1592,1600,1608,1612,1617,1649,1652,1656,1674,1678,1685,1691,1697,1704,1708,1715,1719,1739],[624,625,626],"p",{},"There are two ways to take a shopper through checkout:",[628,629,630,638],"ul",{},[631,632,633,637],"li",{},[634,635,636],"strong",{},"Cartirra Popup"," opens the checkout over your page in a secure frame. You add one script tag. Steps 1 and 2 below.",[631,639,640,643],{},[634,641,642],{},"Cartirra Redirect"," sends the shopper to Cartirra's checkout page, with no script on your side. Step 3 below.",[624,645,646],{},"Either way, the shopper signs in or checks out as a guest, chooses delivery or pickup, and pays by bank transfer or card. Card details are entered on your card provider's own page; they never touch your site or Cartirra.",[624,648,649,650,653,654,658,659,662,663,666,667,671],{},"You need two things from your server for each checkout: your ",[634,651,652],{},"public"," key (",[655,656,657],"code",{},"pk_test_…"," or ",[655,660,661],{},"pk_live_…",", safe in the browser) and the session's ",[655,664,665],{},"client_secret"," from ",[668,669,670],"a",{"href":15},"creating a checkout session",".",[624,673,674,675,677,678,681],{},"The API is snake_case (",[655,676,665],{},"); this script's options are JavaScript, so they're camelCase (",[655,679,680],{},"clientSecret",").",[683,684,686],"h2",{"id":685},"_1-add-the-script","1. Add the script",[624,688,689],{},"Load it once, on any page that can start a checkout:",[691,692,697],"pre",{"className":693,"code":694,"language":695,"meta":696,"style":696},"language-html shiki shiki-themes github-light github-dark","\u003Cscript src=\"https:\u002F\u002Fcheckout.cartirra.com\u002Fv1\u002Fcartirra.js\" async>\u003C\u002Fscript>\n","html","",[655,698,699],{"__ignoreMap":696},[700,701,703,707,711,715,718,722,725,728,730],"span",{"class":702,"line":12},"line",[700,704,706],{"class":705},"sVt8B","\u003C",[700,708,710],{"class":709},"s9eBZ","script",[700,712,714],{"class":713},"sScJk"," src",[700,716,717],{"class":705},"=",[700,719,721],{"class":720},"sZZnC","\"https:\u002F\u002Fcheckout.cartirra.com\u002Fv1\u002Fcartirra.js\"",[700,723,724],{"class":713}," async",[700,726,727],{"class":705},">\u003C\u002F",[700,729,710],{"class":709},[700,731,732],{"class":705},">\n",[624,734,735,736,739,740,743,744,671],{},"The script is small (about 2 KB) and defines ",[655,737,738],{},"window.Cartirra",". It stays at ",[655,741,742],{},"\u002Fv1\u002F"," and only ever gets compatible fixes; a breaking change would ship as ",[655,745,746],{},"\u002Fv2\u002F",[683,748,750],{"id":749},"_2-open-cartirra-popup","2. Open Cartirra Popup",[624,752,753,754,756],{},"When the shopper presses your pay button, create a session on your server, then open the checkout with its ",[655,755,665],{},":",[691,758,760],{"className":693,"code":759,"language":695,"meta":696,"style":696},"\u003Cbutton id=\"pay\">Pay\u003C\u002Fbutton>\n\u003Cscript>\n  document.getElementById('pay').addEventListener('click', async () => {\n    \u002F\u002F Your endpoint: it calls POST \u002Fv1\u002Fcheckout-sessions with your secret key\n    \u002F\u002F and returns the session's client_secret to the browser as { clientSecret }.\n    const { clientSecret } = await fetch('\u002Fapi\u002Fcheckout', { method: 'POST' }).then((r) => r.json());\n\n    Cartirra.open({\n      publicKey: 'pk_test_your_key',\n      clientSecret,\n      onSuccess: ({ orderId, reference, successUrl }) => {\n        \u002F\u002F The shopper has paid. Thank them, then confirm on your server (step 4).\n        \u002F\u002F Don't fulfil from here: anyone can call this from their own browser.\n      },\n      onClose: () => {\n        \u002F\u002F The shopper closed the checkout without paying. Their session stays open until it expires.\n      },\n      onError: ({ code, message }) => {\n        \u002F\u002F The checkout couldn't start, e.g. INVALID_PUBLIC_KEY.\n      },\n    });\n  });\n\u003C\u002Fscript>\n",[655,761,762,784,792,832,838,844,905,912,924,936,941,969,974,979,984,997,1003,1008,1029,1035,1039,1045,1051],{"__ignoreMap":696},[700,763,764,766,769,772,774,777,780,782],{"class":702,"line":12},[700,765,706],{"class":705},[700,767,768],{"class":709},"button",[700,770,771],{"class":713}," id",[700,773,717],{"class":705},[700,775,776],{"class":720},"\"pay\"",[700,778,779],{"class":705},">Pay\u003C\u002F",[700,781,768],{"class":709},[700,783,732],{"class":705},[700,785,786,788,790],{"class":702,"line":17},[700,787,706],{"class":705},[700,789,710],{"class":709},[700,791,732],{"class":705},[700,793,794,797,800,803,806,808,811,813,816,819,823,826,829],{"class":702,"line":42},[700,795,796],{"class":705},"  document.",[700,798,799],{"class":713},"getElementById",[700,801,802],{"class":705},"(",[700,804,805],{"class":720},"'pay'",[700,807,681],{"class":705},[700,809,810],{"class":713},"addEventListener",[700,812,802],{"class":705},[700,814,815],{"class":720},"'click'",[700,817,818],{"class":705},", ",[700,820,822],{"class":821},"szBVR","async",[700,824,825],{"class":705}," () ",[700,827,828],{"class":821},"=>",[700,830,831],{"class":705}," {\n",[700,833,834],{"class":702,"line":47},[700,835,837],{"class":836},"sJ8bj","    \u002F\u002F Your endpoint: it calls POST \u002Fv1\u002Fcheckout-sessions with your secret key\n",[700,839,841],{"class":702,"line":840},5,[700,842,843],{"class":836},"    \u002F\u002F and returns the session's client_secret to the browser as { clientSecret }.\n",[700,845,847,850,853,856,859,861,864,867,869,872,875,878,881,884,887,891,894,896,899,902],{"class":702,"line":846},6,[700,848,849],{"class":821},"    const",[700,851,852],{"class":705}," { ",[700,854,680],{"class":855},"sj4cs",[700,857,858],{"class":705}," } ",[700,860,717],{"class":821},[700,862,863],{"class":821}," await",[700,865,866],{"class":713}," fetch",[700,868,802],{"class":705},[700,870,871],{"class":720},"'\u002Fapi\u002Fcheckout'",[700,873,874],{"class":705},", { method: ",[700,876,877],{"class":720},"'POST'",[700,879,880],{"class":705}," }).",[700,882,883],{"class":713},"then",[700,885,886],{"class":705},"((",[700,888,890],{"class":889},"s4XuR","r",[700,892,893],{"class":705},") ",[700,895,828],{"class":821},[700,897,898],{"class":705}," r.",[700,900,901],{"class":713},"json",[700,903,904],{"class":705},"());\n",[700,906,908],{"class":702,"line":907},7,[700,909,911],{"emptyLinePlaceholder":910},true,"\n",[700,913,915,918,921],{"class":702,"line":914},8,[700,916,917],{"class":705},"    Cartirra.",[700,919,920],{"class":713},"open",[700,922,923],{"class":705},"({\n",[700,925,927,930,933],{"class":702,"line":926},9,[700,928,929],{"class":705},"      publicKey: ",[700,931,932],{"class":720},"'pk_test_your_key'",[700,934,935],{"class":705},",\n",[700,937,938],{"class":702,"line":53},[700,939,940],{"class":705},"      clientSecret,\n",[700,942,943,946,949,952,954,957,959,962,965,967],{"class":702,"line":58},[700,944,945],{"class":713},"      onSuccess",[700,947,948],{"class":705},": ({ ",[700,950,951],{"class":889},"orderId",[700,953,818],{"class":705},[700,955,956],{"class":889},"reference",[700,958,818],{"class":705},[700,960,961],{"class":889},"successUrl",[700,963,964],{"class":705}," }) ",[700,966,828],{"class":821},[700,968,831],{"class":705},[700,970,971],{"class":702,"line":63},[700,972,973],{"class":836},"        \u002F\u002F The shopper has paid. Thank them, then confirm on your server (step 4).\n",[700,975,976],{"class":702,"line":68},[700,977,978],{"class":836},"        \u002F\u002F Don't fulfil from here: anyone can call this from their own browser.\n",[700,980,981],{"class":702,"line":73},[700,982,983],{"class":705},"      },\n",[700,985,987,990,993,995],{"class":702,"line":986},15,[700,988,989],{"class":713},"      onClose",[700,991,992],{"class":705},": () ",[700,994,828],{"class":821},[700,996,831],{"class":705},[700,998,1000],{"class":702,"line":999},16,[700,1001,1002],{"class":836},"        \u002F\u002F The shopper closed the checkout without paying. Their session stays open until it expires.\n",[700,1004,1006],{"class":702,"line":1005},17,[700,1007,983],{"class":705},[700,1009,1011,1014,1016,1018,1020,1023,1025,1027],{"class":702,"line":1010},18,[700,1012,1013],{"class":713},"      onError",[700,1015,948],{"class":705},[700,1017,655],{"class":889},[700,1019,818],{"class":705},[700,1021,1022],{"class":889},"message",[700,1024,964],{"class":705},[700,1026,828],{"class":821},[700,1028,831],{"class":705},[700,1030,1032],{"class":702,"line":1031},19,[700,1033,1034],{"class":836},"        \u002F\u002F The checkout couldn't start, e.g. INVALID_PUBLIC_KEY.\n",[700,1036,1037],{"class":702,"line":78},[700,1038,983],{"class":705},[700,1040,1042],{"class":702,"line":1041},21,[700,1043,1044],{"class":705},"    });\n",[700,1046,1048],{"class":702,"line":1047},22,[700,1049,1050],{"class":705},"  });\n",[700,1052,1054,1057,1059],{"class":702,"line":1053},23,[700,1055,1056],{"class":705},"\u003C\u002F",[700,1058,710],{"class":709},[700,1060,732],{"class":705},[1062,1063,1064,1080],"table",{},[1065,1066,1067],"thead",{},[1068,1069,1070,1074,1077],"tr",{},[1071,1072,1073],"th",{},"Option",[1071,1075,1076],{},"Required",[1071,1078,1079],{},"What it does",[1081,1082,1083,1097,1108,1140,1152],"tbody",{},[1068,1084,1085,1091,1094],{},[1086,1087,1088],"td",{},[655,1089,1090],{},"publicKey",[1086,1092,1093],{},"Yes",[1086,1095,1096],{},"Your public key. Test keys open test sessions; live keys open live ones.",[1068,1098,1099,1103,1105],{},[1086,1100,1101],{},[655,1102,680],{},[1086,1104,1093],{},[1086,1106,1107],{},"From the session you just created. Use it for one checkout, then discard it.",[1068,1109,1110,1115,1118],{},[1086,1111,1112],{},[655,1113,1114],{},"onSuccess",[1086,1116,1117],{},"No",[1086,1119,1120,1121,1123,1124,1126,1127,1130,1131,1133,1134,1136,1137,1139],{},"Called once when the payment succeeds, with the order's ",[655,1122,951],{}," and ",[655,1125,956],{},", and the session's ",[655,1128,1129],{},"success_url"," (as ",[655,1132,961],{},"). If the session has a ",[655,1135,1129],{},", the checkout goes there 5 seconds later by itself (see below). Use it to thank the shopper, never to fulfil: anyone can call it from their browser. Fulfil on the signed ",[655,1138,544],{}," webhook.",[1068,1141,1142,1147,1149],{},[1086,1143,1144],{},[655,1145,1146],{},"onClose",[1086,1148,1117],{},[1086,1150,1151],{},"Called when the checkout closes without a payment.",[1068,1153,1154,1159,1161],{},[1086,1155,1156],{},[655,1157,1158],{},"onError",[1086,1160,1117],{},[1086,1162,1163,1164,1123,1166,671],{},"Called when the checkout can't start, with the error ",[655,1165,655],{},[655,1167,1022],{},[624,1169,1170,1173],{},[655,1171,1172],{},"Cartirra.close()"," closes an open checkout from your code.",[1175,1176,1178,1179],"h3",{"id":1177},"after-payment-your-success_url","After payment: your ",[655,1180,1129],{},[624,1182,1183,1184,1186,1187,1190,1191,1194,1195,1197],{},"If you created the session with a ",[655,1185,1129],{},", the \"Order confirmed!\" screen counts down 5 seconds (\"Taking you back to …\") and then takes the shopper there. The shopper can tap ",[634,1188,1189],{},"Stay here"," to stop it, or ",[634,1192,1193],{},"Continue shopping"," to go at once. Without a ",[655,1196,1129],{},", the checkout stays on \"Order confirmed!\" until the shopper closes it.",[1175,1199,1201],{"id":1200},"no-javascript-of-your-own","No JavaScript of your own",[624,1203,1204,1205,1208,1209,1211],{},"If you render the session on your server, a button with data attributes opens the checkout on click and goes to ",[655,1206,1207],{},"data-success-url"," 5 seconds after payment (the session's ",[655,1210,1129],{}," wins when it has one):",[691,1213,1215],{"className":693,"code":1214,"language":695,"meta":696,"style":696},"\u003Cbutton\n  data-cartirra-checkout\n  data-public-key=\"pk_test_your_key\"\n  data-client-secret=\"cs_0193…_secret_…\"\n  data-success-url=\"https:\u002F\u002Fshop.example.com\u002Fthanks\"\n>Pay ₦9,000.00\u003C\u002Fbutton>\n",[655,1216,1217,1224,1229,1239,1249,1259],{"__ignoreMap":696},[700,1218,1219,1221],{"class":702,"line":12},[700,1220,706],{"class":705},[700,1222,1223],{"class":709},"button\n",[700,1225,1226],{"class":702,"line":17},[700,1227,1228],{"class":713},"  data-cartirra-checkout\n",[700,1230,1231,1234,1236],{"class":702,"line":42},[700,1232,1233],{"class":713},"  data-public-key",[700,1235,717],{"class":705},[700,1237,1238],{"class":720},"\"pk_test_your_key\"\n",[700,1240,1241,1244,1246],{"class":702,"line":47},[700,1242,1243],{"class":713},"  data-client-secret",[700,1245,717],{"class":705},[700,1247,1248],{"class":720},"\"cs_0193…_secret_…\"\n",[700,1250,1251,1254,1256],{"class":702,"line":840},[700,1252,1253],{"class":713},"  data-success-url",[700,1255,717],{"class":705},[700,1257,1258],{"class":720},"\"https:\u002F\u002Fshop.example.com\u002Fthanks\"\n",[700,1260,1261,1264,1266],{"class":702,"line":846},[700,1262,1263],{"class":705},">Pay ₦9,000.00\u003C\u002F",[700,1265,768],{"class":709},[700,1267,732],{"class":705},[1175,1269,1271],{"id":1270},"show-cartirra-on-your-page","Show Cartirra on your page",[624,1273,1274],{},"Shoppers trust a checkout they recognise. Let them see it's Cartirra on your page, before the checkout opens. The script draws these as soon as it loads, in Cartirra's colours and with the Cartirra mark, and your site's CSS can't change how they look. Where they sit (margins, and width unless you ask for full width) stays up to your layout.",[624,1276,1277,1280,1281,1284],{},[634,1278,1279],{},"A branded button."," Add ",[655,1282,1283],{},"data-cartirra-style=\"branded\""," to a checkout button, and write \"Checkout with Cartirra\" in it so the words are there even before the script loads:",[691,1286,1288],{"className":693,"code":1287,"language":695,"meta":696,"style":696},"\u003Cbutton\n  data-cartirra-checkout\n  data-cartirra-style=\"branded\"\n  data-public-key=\"pk_test_your_key\"\n  data-client-secret=\"cs_0193…_secret_…\"\n>Checkout with Cartirra\u003C\u002Fbutton>\n",[655,1289,1290,1296,1300,1310,1318,1326],{"__ignoreMap":696},[700,1291,1292,1294],{"class":702,"line":12},[700,1293,706],{"class":705},[700,1295,1223],{"class":709},[700,1297,1298],{"class":702,"line":17},[700,1299,1228],{"class":713},[700,1301,1302,1305,1307],{"class":702,"line":42},[700,1303,1304],{"class":713},"  data-cartirra-style",[700,1306,717],{"class":705},[700,1308,1309],{"class":720},"\"branded\"\n",[700,1311,1312,1314,1316],{"class":702,"line":47},[700,1313,1233],{"class":713},[700,1315,717],{"class":705},[700,1317,1238],{"class":720},[700,1319,1320,1322,1324],{"class":702,"line":840},[700,1321,1243],{"class":713},[700,1323,717],{"class":705},[700,1325,1248],{"class":720},[700,1327,1328,1331,1333],{"class":702,"line":846},[700,1329,1330],{"class":705},">Checkout with Cartirra\u003C\u002F",[700,1332,768],{"class":709},[700,1334,732],{"class":705},[624,1336,1337,1338,1341,1342,1345],{},"If your page opens the checkout itself with ",[655,1339,1340],{},"Cartirra.open",", use ",[655,1343,1344],{},"data-cartirra-button"," instead: the same look, and the click stays yours.",[691,1347,1349],{"className":693,"code":1348,"language":695,"meta":696,"style":696},"\u003Cbutton id=\"pay\" data-cartirra-button data-cartirra-width=\"full\">Checkout with Cartirra\u003C\u002Fbutton>\n",[655,1350,1351],{"__ignoreMap":696},[700,1352,1353,1355,1357,1359,1361,1363,1366,1369,1371,1374,1376,1378],{"class":702,"line":12},[700,1354,706],{"class":705},[700,1356,768],{"class":709},[700,1358,771],{"class":713},[700,1360,717],{"class":705},[700,1362,776],{"class":720},[700,1364,1365],{"class":713}," data-cartirra-button",[700,1367,1368],{"class":713}," data-cartirra-width",[700,1370,717],{"class":705},[700,1372,1373],{"class":720},"\"full\"",[700,1375,1330],{"class":705},[700,1377,768],{"class":709},[700,1379,732],{"class":705},[1062,1381,1382,1395],{},[1065,1383,1384],{},[1068,1385,1386,1389,1392],{},[1071,1387,1388],{},"Attribute",[1071,1390,1391],{},"Values",[1071,1393,1394],{},"Default",[1081,1396,1397,1422,1443],{},[1068,1398,1399,1404,1418],{},[1086,1400,1401],{},[655,1402,1403],{},"data-cartirra-label",[1086,1405,1406,1409,1410,1413,1414,1417],{},[655,1407,1408],{},"checkout"," (Checkout with Cartirra), ",[655,1411,1412],{},"pay"," (Pay with Cartirra), ",[655,1415,1416],{},"buy"," (Buy with Cartirra)",[1086,1419,1420],{},[655,1421,1408],{},[1068,1423,1424,1429,1439],{},[1086,1425,1426],{},[655,1427,1428],{},"data-cartirra-theme",[1086,1430,1431,1434,1435,1438],{},[655,1432,1433],{},"dark"," (black button) or ",[655,1436,1437],{},"light"," (white with a border)",[1086,1440,1441],{},[655,1442,1433],{},[1068,1444,1445,1450,1456],{},[1086,1446,1447],{},[655,1448,1449],{},"data-cartirra-width",[1086,1451,1452,1455],{},[655,1453,1454],{},"full"," to fill its container",[1086,1457,1458],{},"as wide as its words",[624,1460,1461,1464],{},[634,1462,1463],{},"A badge under your own button."," Keep your button as it is and add the badge under it. It reads \"🔒 Secured by Cartirra\", like the bottom of the checkout:",[691,1466,1468],{"className":693,"code":1467,"language":695,"meta":696,"style":696},"\u003Cbutton id=\"pay\">Place order\u003C\u002Fbutton>\n\u003Cdiv data-cartirra-badge>\u003C\u002Fdiv>\n",[655,1469,1470,1489],{"__ignoreMap":696},[700,1471,1472,1474,1476,1478,1480,1482,1485,1487],{"class":702,"line":12},[700,1473,706],{"class":705},[700,1475,768],{"class":709},[700,1477,771],{"class":713},[700,1479,717],{"class":705},[700,1481,776],{"class":720},[700,1483,1484],{"class":705},">Place order\u003C\u002F",[700,1486,768],{"class":709},[700,1488,732],{"class":705},[700,1490,1491,1493,1496,1499,1501,1503],{"class":702,"line":17},[700,1492,706],{"class":705},[700,1494,1495],{"class":709},"div",[700,1497,1498],{"class":713}," data-cartirra-badge",[700,1500,727],{"class":705},[700,1502,1495],{"class":709},[700,1504,732],{"class":705},[624,1506,1507,1508,1511],{},"On a dark background, add ",[655,1509,1510],{},"data-cartirra-theme=\"dark\""," to the badge.",[624,1513,1514,1517],{},[634,1515,1516],{},"From JavaScript."," Pages that render later (React, Vue and similar) are branded as they appear. You can also brand an element yourself:",[691,1519,1523],{"className":1520,"code":1521,"language":1522,"meta":696,"style":696},"language-js shiki shiki-themes github-light github-dark","Cartirra.button(document.getElementById('pay'), { label: 'pay', theme: 'light', fullWidth: true });\nCartirra.badge(document.getElementById('secured'), { theme: 'dark' });\n","js",[655,1524,1525,1561],{"__ignoreMap":696},[700,1526,1527,1530,1532,1535,1537,1539,1541,1544,1546,1549,1552,1555,1558],{"class":702,"line":12},[700,1528,1529],{"class":705},"Cartirra.",[700,1531,768],{"class":713},[700,1533,1534],{"class":705},"(document.",[700,1536,799],{"class":713},[700,1538,802],{"class":705},[700,1540,805],{"class":720},[700,1542,1543],{"class":705},"), { label: ",[700,1545,805],{"class":720},[700,1547,1548],{"class":705},", theme: ",[700,1550,1551],{"class":720},"'light'",[700,1553,1554],{"class":705},", fullWidth: ",[700,1556,1557],{"class":855},"true",[700,1559,1560],{"class":705}," });\n",[700,1562,1563,1565,1568,1570,1572,1574,1577,1580,1583],{"class":702,"line":17},[700,1564,1529],{"class":705},[700,1566,1567],{"class":713},"badge",[700,1569,1534],{"class":705},[700,1571,799],{"class":713},[700,1573,802],{"class":705},[700,1575,1576],{"class":720},"'secured'",[700,1578,1579],{"class":705},"), { theme: ",[700,1581,1582],{"class":720},"'dark'",[700,1584,1560],{"class":705},[683,1586,1588],{"id":1587},"_3-or-use-cartirra-redirect","3. Or use Cartirra Redirect",[624,1590,1591],{},"If you can't add a script (a link in an email or a chat, a mobile app's web view), send the shopper to Cartirra's checkout page instead. The client secret goes in the URL fragment, which browsers don't send to servers, and the page removes it from the address bar as soon as it loads:",[691,1593,1598],{"className":1594,"code":1596,"language":1597,"meta":696},[1595],"language-text","https:\u002F\u002Fcheckout.cartirra.com\u002F#\u002Fpay\u002F\u003Cclient_secret>?pk=\u003Cpublic_key>\n","text",[655,1599,1596],{"__ignoreMap":696},[624,1601,1602,1603,1605,1606,671],{},"Cartirra Popup falls back to Cartirra Redirect by itself if the frame can't start (for example, a strict browser extension blocks it). After payment it takes the shopper to the session's ",[655,1604,1129],{}," after the same 5-second countdown, or at once with ",[634,1607,1193],{},[683,1609,1611],{"id":1610},"_4-confirm-the-order-on-your-server","4. Confirm the order on your server",[624,1613,1614,1616],{},[655,1615,1114],{}," runs in the shopper's browser, so treat it as a signal to show a thank-you message, not as proof of payment. Fulfil the order when your server hears about it:",[628,1618,1619,1632],{},[631,1620,1621,1624,1625,1123,1627,1629,1630,671],{},[634,1622,1623],{},"Webhooks:"," ",[655,1626,538],{},[655,1628,544],{}," arrive at your endpoint, signed. See ",[668,1631,77],{"href":76},[631,1633,1634,1624,1637,1640,1641,1644,1645,1648],{},[634,1635,1636],{},"Or ask:",[655,1638,1639],{},"GET \u002Fv1\u002Fcheckout-sessions\u002F{id}"," shows ",[655,1642,1643],{},"completed"," and the ",[655,1646,1647],{},"order_id"," once paid.",[624,1650,1651],{},"The shopper also gets a receipt by email, with a link to the receipt online.",[683,1653,1655],{"id":1654},"allow-only-your-sites","Allow only your sites",[624,1657,1658,1659,1662,1663,1666,1667,1670,1671,681],{},"Your checkout settings' ",[634,1660,1661],{},"allowed origins"," (",[655,1664,1665],{},"allowed_origins",") list the sites that may open your checkout, such as ",[655,1668,1669],{},"https:\u002F\u002Fshop.example.com"," (no path; up to 20). When the list is empty, any site can open it with your public key. Once you add origins, the checkout refuses to start anywhere else and shows the shopper \"This website can’t use this checkout\" (",[655,1672,1673],{},"EMBED_ORIGIN_NOT_ALLOWED",[683,1675,1677],{"id":1676},"content-security-policy","Content Security Policy",[624,1679,1680,1681,1684],{},"If your site sends a ",[655,1682,1683],{},"Content-Security-Policy"," header, allow the script and the frame:",[691,1686,1689],{"className":1687,"code":1688,"language":1597,"meta":696},[1595],"script-src 'self' https:\u002F\u002Fcheckout.cartirra.com;\nframe-src https:\u002F\u002Fcheckout.cartirra.com;\nimg-src 'self' data:;\n",[655,1690,1688],{"__ignoreMap":696},[624,1692,1693,1696],{},[655,1694,1695],{},"img-src data:"," is for the Cartirra mark on branded buttons and badges, which comes inside the script.",[624,1698,1699,1700,1703],{},"The checkout calls the Cartirra API from its own frame, so your ",[655,1701,1702],{},"connect-src"," doesn't need to change.",[683,1705,1707],{"id":1706},"your-brand","Your brand",[624,1709,1710,1711,1714],{},"The checkout uses your ",[634,1712,1713],{},"Checkout settings"," logo and brand colour: the colour on buttons, selections and highlights. If a colour is too light or too mid-toned for readable text, the checkout darkens it slightly where text sits on it, so it stays readable (WCAG AA).",[683,1716,1718],{"id":1717},"test-it","Test it",[624,1720,1721,1722,1725,1726,1728,1729,1732,1733,1736,1737,671],{},"With test keys, a ",[634,1723,1724],{},"Test mode · No real money moves"," strip runs across the top of the checkout, and payment screens show a ",[634,1727,46],{}," panel: ",[634,1730,1731],{},"Simulate the transfer"," pays a bank transfer, and ",[634,1734,1735],{},"Simulate a card payment"," pays a card when no card provider is connected. If you've connected a provider's test keys (Paystack, Flutterwave, Monnify), card payments go to that provider's test page instead. See ",[668,1738,46],{"href":45},[1740,1741,1742],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}",{"title":696,"searchDepth":17,"depth":42,"links":1744},[1745,1746,1752,1753,1754,1755,1756,1757],{"id":685,"depth":17,"text":686},{"id":749,"depth":17,"text":750,"children":1747},[1748,1750,1751],{"id":1177,"depth":42,"text":1749},"After payment: your success_url",{"id":1200,"depth":42,"text":1201},{"id":1270,"depth":42,"text":1271},{"id":1587,"depth":17,"text":1588},{"id":1610,"depth":17,"text":1611},{"id":1654,"depth":17,"text":1655},{"id":1676,"depth":17,"text":1677},{"id":1706,"depth":17,"text":1707},{"id":1717,"depth":17,"text":1718},"md",{},{"title":21,"description":23},"guides\u002Fembed-checkout","Nf5DahyXzGgooT18KKLd9irba5FZ0eVlKVA0RBoBA2M",[1764,1766],{"title":16,"path":15,"stem":1765,"children":-1},"guides\u002Fquickstart",{"title":26,"path":25,"stem":1767,"children":-1},"guides\u002Fad-tracking",1795864569796]