[{"data":1,"prerenderedAt":2452},["ShallowReactive",2],{"docs-navigation":3,"page-\u002Fpayments\u002Fin-person\u002Fphysical-terminal\u002Fget-started":787},[4,20,48,169,226,273,326,330,370,442,641,738],{"title":5,"path":6,"stem":7,"children":8,"page":19},"Shared","\u002F_shared","_shared",[9],{"title":10,"path":11,"stem":12,"children":13,"page":19},"Payments","\u002F_shared\u002Fpayments","_shared\u002Fpayments",[14],{"title":15,"path":16,"stem":17,"markets":18},"Webhook confirmation","\u002F_shared\u002Fpayments\u002F_webhook-note","_shared\u002Fpayments\u002F_webhook-note",null,false,{"title":21,"path":22,"stem":23,"children":24},"Api","\u002Fapi","api",[25,28,32,36,40,44],{"title":26,"path":22,"stem":27,"markets":18},"API Reference","api\u002Findex",{"title":29,"path":30,"stem":31,"markets":18},"Authentication","\u002Fapi\u002Fauthentication","api\u002Fauthentication",{"title":33,"path":34,"stem":35,"markets":18},"Errors","\u002Fapi\u002Ferrors","api\u002Ferrors",{"title":37,"path":38,"stem":39,"markets":18},"Pagination","\u002Fapi\u002Fpagination","api\u002Fpagination",{"title":41,"path":42,"stem":43,"markets":18},"Rate Limits","\u002Fapi\u002Frate-limits","api\u002Frate-limits",{"title":45,"path":46,"stem":47,"markets":18},"Supported Currencies","\u002Fapi\u002Fsupported-currencies","api\u002Fsupported-currencies",{"title":49,"path":50,"stem":51,"children":52},"Commerce","\u002Fcommerce","commerce",[53,56,64,85,108,122,132,151],{"title":49,"path":50,"stem":54,"markets":18,"order":55},"commerce\u002Findex",0,{"title":57,"path":58,"stem":59,"children":60,"markets":18,"order":63},"Get started","\u002Fcommerce\u002Fget-started","commerce\u002F1.get-started\u002Findex",[61],{"title":62,"path":58,"stem":59,"markets":18,"order":55},"Build Your First Store",1,{"title":65,"markets":18,"order":66,"path":67,"stem":68,"children":69},"Payment Pages",2,"\u002Fcommerce\u002Fpayment-pages","commerce\u002F2.payment-pages\u002Findex",[70,71,76,80],{"title":65,"path":67,"stem":68,"markets":18,"order":55},{"title":72,"path":73,"stem":74,"markets":18,"order":75},"Add Products to a Page","\u002Fcommerce\u002Fpayment-pages\u002Fadd-products","commerce\u002F2.payment-pages\u002Fadd-products",4,{"title":77,"path":78,"stem":79,"markets":18,"order":66},"Create a Payment Page","\u002Fcommerce\u002Fpayment-pages\u002Fcreate","commerce\u002F2.payment-pages\u002Fcreate",{"title":81,"path":82,"stem":83,"markets":18,"order":84},"Manage Payment Pages","\u002Fcommerce\u002Fpayment-pages\u002Fmanage","commerce\u002F2.payment-pages\u002Fmanage",3,{"title":86,"markets":18,"order":84,"path":87,"stem":88,"children":89},"Payment Requests","\u002Fcommerce\u002Fpayment-requests","commerce\u002F3.payment-requests\u002Findex",[90,91,95,99,103],{"title":86,"path":87,"stem":88,"markets":18,"order":55},{"title":92,"path":93,"stem":94,"markets":18,"order":66},"Create a Payment Request","\u002Fcommerce\u002Fpayment-requests\u002Fcreate","commerce\u002F3.payment-requests\u002Fcreate",{"title":96,"path":97,"stem":98,"markets":18,"order":75},"Manage Payment Requests","\u002Fcommerce\u002Fpayment-requests\u002Fmanage","commerce\u002F3.payment-requests\u002Fmanage",{"title":100,"path":101,"stem":102,"markets":18,"order":84},"Notify and Finalize Requests","\u002Fcommerce\u002Fpayment-requests\u002Fnotify-and-finalize","commerce\u002F3.payment-requests\u002Fnotify-and-finalize",{"title":104,"path":105,"stem":106,"markets":18,"order":107},"Verify a Payment Request","\u002Fcommerce\u002Fpayment-requests\u002Fverify","commerce\u002F3.payment-requests\u002Fverify",5,{"title":109,"markets":18,"order":75,"path":110,"stem":111,"children":112},"Products","\u002Fcommerce\u002Fproducts","commerce\u002F4.products\u002Findex",[113,114,118],{"title":109,"path":110,"stem":111,"markets":18,"order":55},{"title":115,"path":116,"stem":117,"markets":18,"order":66},"Create a Product","\u002Fcommerce\u002Fproducts\u002Fcreate","commerce\u002F4.products\u002Fcreate",{"title":119,"path":120,"stem":121,"markets":18,"order":84},"Manage Products","\u002Fcommerce\u002Fproducts\u002Fmanage","commerce\u002F4.products\u002Fmanage",{"title":123,"path":124,"stem":125,"children":126,"markets":18,"order":107},"Orders","\u002Fcommerce\u002Forders","commerce\u002F5.orders\u002Findex",[127,128],{"title":123,"path":124,"stem":125,"markets":18,"order":55},{"title":129,"path":130,"stem":131,"markets":18,"order":66},"Manage Orders","\u002Fcommerce\u002Forders\u002Fmanage","commerce\u002F5.orders\u002Fmanage",{"title":133,"markets":18,"order":134,"path":135,"stem":136,"children":137},"Storefronts",6,"\u002Fcommerce\u002Fstorefronts","commerce\u002F6.storefronts\u002Findex",[138,139,143,147],{"title":133,"path":135,"stem":136,"markets":18,"order":55},{"title":140,"path":141,"stem":142,"markets":18,"order":66},"Create a Storefront","\u002Fcommerce\u002Fstorefronts\u002Fcreate","commerce\u002F6.storefronts\u002Fcreate",{"title":144,"path":145,"stem":146,"markets":18,"order":84},"Publish and Manage Storefronts","\u002Fcommerce\u002Fstorefronts\u002Fmanage","commerce\u002F6.storefronts\u002Fmanage",{"title":148,"path":149,"stem":150,"markets":18,"order":75},"Products and Orders","\u002Fcommerce\u002Fstorefronts\u002Fproducts-and-orders","commerce\u002F6.storefronts\u002Fproducts-and-orders",{"title":152,"markets":18,"order":153,"path":154,"stem":155,"children":156,"page":19},"Concepts",7,"\u002Fcommerce\u002Fconcepts","commerce\u002F7.concepts",[157,161,165],{"title":158,"path":159,"stem":160,"markets":18,"order":84},"No-code Builder vs API Approach","\u002Fcommerce\u002Fconcepts\u002Fnocode-vs-api","commerce\u002F7.concepts\u002Fnocode-vs-api",{"title":162,"path":163,"stem":164,"markets":18,"order":66},"Commerce Order Lifecycle","\u002Fcommerce\u002Fconcepts\u002Forder-lifecycle","commerce\u002F7.concepts\u002Forder-lifecycle",{"title":166,"path":167,"stem":168,"markets":18,"order":63},"Payment Pages vs Payment Requests","\u002Fcommerce\u002Fconcepts\u002Fpayment-pages-vs-requests","commerce\u002F7.concepts\u002Fpayment-pages-vs-requests",{"title":170,"path":171,"stem":172,"children":173},"Developer Tools","\u002Fdeveloper-tools","developer-tools",[174,176,193,197,214,218,222],{"title":170,"path":171,"stem":175,"markets":18,"order":55},"developer-tools\u002Findex",{"title":177,"markets":18,"order":63,"path":178,"stem":179,"children":180,"page":19},"Integration toolkit","\u002Fdeveloper-tools\u002Fintegration","developer-tools\u002F1.integration",[181,185,189],{"title":182,"path":183,"stem":184,"markets":18,"order":63},"API keys","\u002Fdeveloper-tools\u002Fintegration\u002Fapi-keys","developer-tools\u002F1.integration\u002Fapi-keys",{"title":186,"path":187,"stem":188,"markets":18,"order":84},"Test payments","\u002Fdeveloper-tools\u002Fintegration\u002Ftest-payments","developer-tools\u002F1.integration\u002Ftest-payments",{"title":190,"path":191,"stem":192,"markets":18,"order":66},"Webhooks","\u002Fdeveloper-tools\u002Fintegration\u002Fwebhooks","developer-tools\u002F1.integration\u002Fwebhooks",{"title":194,"path":195,"stem":196,"markets":18,"order":66},"InlineJS","\u002Fdeveloper-tools\u002Finline-js","developer-tools\u002F2.inline-js",{"title":198,"markets":18,"order":84,"path":199,"stem":200,"children":201,"page":19},"Mobile SDKs","\u002Fdeveloper-tools\u002Fmobile-sdks","developer-tools\u002F3.mobile-sdks",[202,206,210],{"title":203,"path":204,"stem":205,"markets":18,"order":63},"Android SDK","\u002Fdeveloper-tools\u002Fmobile-sdks\u002Fandroid","developer-tools\u002F3.mobile-sdks\u002Fandroid",{"title":207,"path":208,"stem":209,"markets":18,"order":84},"Flutter SDK","\u002Fdeveloper-tools\u002Fmobile-sdks\u002Fflutter","developer-tools\u002F3.mobile-sdks\u002Fflutter",{"title":211,"path":212,"stem":213,"markets":18,"order":66},"iOS SDK","\u002Fdeveloper-tools\u002Fmobile-sdks\u002Fios","developer-tools\u002F3.mobile-sdks\u002Fios",{"title":215,"path":216,"stem":217,"markets":18,"order":75},"Server SDKs","\u002Fdeveloper-tools\u002Fserver-sdks","developer-tools\u002F4.server-sdks",{"title":219,"path":220,"stem":221,"markets":18,"order":107},"Plugins","\u002Fdeveloper-tools\u002Fplugins","developer-tools\u002F5.plugins",{"title":223,"path":224,"stem":225,"markets":18,"order":134},"MCP Server","\u002Fdeveloper-tools\u002Fmcp-server","developer-tools\u002F6.mcp-server",{"title":227,"path":228,"stem":229,"children":230},"Disbursements","\u002Fdisbursements","disbursements",[231,233,236],{"title":227,"path":228,"stem":232,"markets":18,"order":55},"disbursements\u002Findex",{"title":57,"path":234,"stem":235,"markets":18,"order":63},"\u002Fdisbursements\u002Fget-started","disbursements\u002F1.get-started",{"title":237,"markets":18,"order":66,"path":238,"stem":239,"children":240,"page":19},"Transfers","\u002Fdisbursements\u002Ftransfers","disbursements\u002Ftransfers",[241,245,253,257,261,265,269],{"title":242,"path":243,"stem":244,"markets":18},"Transfer recipients","\u002Fdisbursements\u002Ftransfers\u002Frecipients","disbursements\u002Ftransfers\u002F01.recipients",{"title":246,"path":247,"stem":248,"markets":249},"Verify an account number","\u002Fdisbursements\u002Ftransfers\u002Fverify-account","disbursements\u002Ftransfers\u002F02.verify-account",[250,251,252],"ng","gh","za",{"title":254,"path":255,"stem":256,"markets":18},"Send money to a single recipient","\u002Fdisbursements\u002Ftransfers\u002Fsingle-transfers","disbursements\u002Ftransfers\u002F03.single-transfers",{"title":258,"path":259,"stem":260,"markets":18},"Send money to multiple recipients","\u002Fdisbursements\u002Ftransfers\u002Fbulk-transfers","disbursements\u002Ftransfers\u002F04.bulk-transfers",{"title":262,"path":263,"stem":264,"markets":18},"Check your balance","\u002Fdisbursements\u002Ftransfers\u002Fbalance-management","disbursements\u002Ftransfers\u002F05.balance-management",{"title":266,"path":267,"stem":268,"markets":18},"Transfer approval","\u002Fdisbursements\u002Ftransfers\u002Ftransfer-approval","disbursements\u002Ftransfers\u002F06.transfer-approval",{"title":270,"path":271,"stem":272,"markets":18},"How transfers work","\u002Fdisbursements\u002Ftransfers\u002Fhow-transfers-work","disbursements\u002Ftransfers\u002F07.how-transfers-work",{"title":274,"path":275,"stem":251,"children":276,"page":19},"Gh","\u002Fgh",[277],{"title":10,"path":278,"stem":279,"children":280,"markets":18,"order":55},"\u002Fgh\u002Fpayments","gh\u002Fpayments\u002Findex",[281,282,316],{"title":10,"path":278,"stem":279,"markets":18,"order":55},{"title":283,"markets":18,"order":66,"path":284,"stem":285,"children":286},"Payment channels","\u002Fgh\u002Fpayments\u002Fchannels","gh\u002Fpayments\u002Fchannels\u002Findex",[287,289,294,298,308,312],{"title":288,"path":284,"stem":285,"markets":18,"order":55},"Overview",{"title":290,"path":291,"stem":292,"markets":18,"order":293},"Apple Pay","\u002Fgh\u002Fpayments\u002Fchannels\u002Fapple-pay","gh\u002Fpayments\u002Fchannels\u002Fapple-pay",98,{"title":295,"path":296,"stem":297,"markets":18,"order":66},"Cards","\u002Fgh\u002Fpayments\u002Fchannels\u002Fcards","gh\u002Fpayments\u002Fchannels\u002Fcards",{"title":299,"markets":18,"order":75,"path":300,"stem":301,"children":302},"Dedicated Virtual Accounts","\u002Fgh\u002Fpayments\u002Fchannels\u002Fdedicated-virtual-accounts","gh\u002Fpayments\u002Fchannels\u002Fdedicated-virtual-accounts\u002Findex",[303,304],{"title":299,"path":300,"stem":301,"markets":18},{"title":305,"path":306,"stem":307,"markets":18},"Create and Assign Dedicated Virtual Accounts","\u002Fgh\u002Fpayments\u002Fchannels\u002Fdedicated-virtual-accounts\u002Fcreate-and-assign-dedicated-virtual-accounts","gh\u002Fpayments\u002Fchannels\u002Fdedicated-virtual-accounts\u002Fcreate-and-assign-dedicated-virtual-accounts",{"title":309,"path":310,"stem":311,"markets":18,"order":63},"Mobile Money","\u002Fgh\u002Fpayments\u002Fchannels\u002Fmobile-money","gh\u002Fpayments\u002Fchannels\u002Fmobile-money",{"title":313,"path":314,"stem":315,"markets":18,"order":84},"Pay with Transfer","\u002Fgh\u002Fpayments\u002Fchannels\u002Fpwt","gh\u002Fpayments\u002Fchannels\u002Fpwt",{"title":317,"path":318,"stem":319,"children":320,"markets":18,"order":107},"In-person","\u002Fgh\u002Fpayments\u002Fin-person","gh\u002Fpayments\u002Fin-person\u002Findex",[321,322],{"title":288,"path":318,"stem":319,"markets":18,"order":55},{"title":323,"path":324,"stem":325,"markets":18,"order":63},"Virtual Terminal","\u002Fgh\u002Fpayments\u002Fin-person\u002Fvirtual-terminal","gh\u002Fpayments\u002Fin-person\u002Fvirtual-terminal",{"title":327,"path":328,"stem":329,"markets":18},"Home","\u002F","index",{"title":331,"path":332,"stem":333,"children":334,"page":19},"Ke","\u002Fke","ke",[335],{"title":10,"path":336,"stem":337,"children":338,"markets":18,"order":55},"\u002Fke\u002Fpayments","ke\u002Fpayments\u002Findex",[339,340,362],{"title":10,"path":336,"stem":337,"markets":18,"order":55},{"title":283,"markets":18,"order":66,"path":341,"stem":342,"children":343},"\u002Fke\u002Fpayments\u002Fchannels","ke\u002Fpayments\u002Fchannels\u002Findex",[344,345,348,351,354,358],{"title":288,"path":341,"stem":342,"markets":18,"order":55},{"title":290,"path":346,"stem":347,"markets":18,"order":293},"\u002Fke\u002Fpayments\u002Fchannels\u002Fapple-pay","ke\u002Fpayments\u002Fchannels\u002Fapple-pay",{"title":295,"path":349,"stem":350,"markets":18,"order":84},"\u002Fke\u002Fpayments\u002Fchannels\u002Fcards","ke\u002Fpayments\u002Fchannels\u002Fcards",{"title":309,"path":352,"stem":353,"markets":18,"order":66},"\u002Fke\u002Fpayments\u002Fchannels\u002Fmobile-money","ke\u002Fpayments\u002Fchannels\u002Fmobile-money",{"title":355,"path":356,"stem":357,"markets":18,"order":63},"M-PESA","\u002Fke\u002Fpayments\u002Fchannels\u002Fmpesa","ke\u002Fpayments\u002Fchannels\u002Fmpesa",{"title":359,"path":360,"stem":361,"markets":18,"order":75},"PesaLink","\u002Fke\u002Fpayments\u002Fchannels\u002Fpesalink","ke\u002Fpayments\u002Fchannels\u002Fpesalink",{"title":317,"path":363,"stem":364,"children":365,"markets":18,"order":107},"\u002Fke\u002Fpayments\u002Fin-person","ke\u002Fpayments\u002Fin-person\u002Findex",[366,367],{"title":288,"path":363,"stem":364,"markets":18,"order":55},{"title":323,"path":368,"stem":369,"markets":18,"order":63},"\u002Fke\u002Fpayments\u002Fin-person\u002Fvirtual-terminal","ke\u002Fpayments\u002Fin-person\u002Fvirtual-terminal",{"title":371,"path":372,"stem":373,"children":374},"Operations","\u002Foperations","operations",[375,377,386,395,404,421],{"title":371,"path":372,"stem":376,"markets":18,"order":55},"operations\u002Findex",{"title":378,"markets":18,"order":84,"path":379,"stem":380,"children":381,"page":19},"Refunds","\u002Foperations\u002Frefunds","operations\u002F3.refunds",[382],{"title":383,"path":384,"stem":385,"markets":18},"How to issue a refund","\u002Foperations\u002Frefunds\u002Fprocess-a-refund","operations\u002F3.refunds\u002Fprocess-a-refund",{"title":387,"markets":18,"order":75,"path":388,"stem":389,"children":390,"page":19},"Disputes","\u002Foperations\u002Fdisputes","operations\u002F4.disputes",[391],{"title":392,"path":393,"stem":394,"markets":18},"How to manage disputes","\u002Foperations\u002Fdisputes\u002Fmanage-disputes","operations\u002F4.disputes\u002Fmanage-disputes",{"title":396,"markets":18,"order":107,"path":397,"stem":398,"children":399,"page":19},"Settlements","\u002Foperations\u002Fsettlements","operations\u002F5.settlements",[400],{"title":401,"path":402,"stem":403,"markets":18},"Settlements reference","\u002Foperations\u002Fsettlements\u002Fview-settlements","operations\u002F5.settlements\u002Fview-settlements",{"title":405,"markets":18,"order":134,"path":406,"stem":407,"children":408,"page":19},"Verification","\u002Foperations\u002Fverification","operations\u002F6.verification",[409,413,417],{"title":410,"path":411,"stem":412,"markets":18,"order":84},"Resolve BVN","\u002Foperations\u002Fverification\u002Fresolve-bvn","operations\u002F6.verification\u002Fresolve-bvn",{"title":414,"path":415,"stem":416,"markets":18,"order":66},"Resolve Card BIN","\u002Foperations\u002Fverification\u002Fresolve-card-bin","operations\u002F6.verification\u002Fresolve-card-bin",{"title":418,"path":419,"stem":420,"markets":18,"order":75},"Verify BVN Match","\u002Foperations\u002Fverification\u002Fverify-bvn-match","operations\u002F6.verification\u002Fverify-bvn-match",{"title":152,"markets":18,"order":422,"path":423,"stem":424,"children":425,"page":19},8,"\u002Foperations\u002Fconcepts","operations\u002F8.concepts",[426,430,434,438],{"title":427,"path":428,"stem":429,"markets":18,"order":75},"Customer Lifecycle in Paystack","\u002Foperations\u002Fconcepts\u002Fcustomer-lifecycle","operations\u002F8.concepts\u002Fcustomer-lifecycle",{"title":431,"path":432,"stem":433,"markets":18,"order":66},"The Dispute Resolution Process","\u002Foperations\u002Fconcepts\u002Fdispute-resolution","operations\u002F8.concepts\u002Fdispute-resolution",{"title":435,"path":436,"stem":437,"markets":18,"order":63},"How Settlements Work","\u002Foperations\u002Fconcepts\u002Fhow-settlements-work","operations\u002F8.concepts\u002Fhow-settlements-work",{"title":439,"path":440,"stem":441,"markets":18,"order":84},"Refund Timelines by Channel","\u002Foperations\u002Fconcepts\u002Frefund-timelines","operations\u002F8.concepts\u002Frefund-timelines",{"title":10,"path":443,"stem":444,"children":445},"\u002Fpayments","payments",[446,448,486,538,576,607,625],{"title":10,"path":443,"stem":447,"markets":18,"order":55},"payments\u002Findex",{"title":283,"markets":18,"order":66,"path":449,"stem":450,"children":451},"\u002Fpayments\u002Fchannels","payments\u002F2.channels\u002Findex",[452,454,457,461,464,479,482],{"title":453,"path":449,"stem":450,"markets":18,"order":55},"Payment Channels",{"title":290,"path":455,"stem":456,"markets":18,"order":293},"\u002Fpayments\u002Fchannels\u002Fapple-pay","payments\u002F2.channels\u002Fapple-pay",{"title":458,"path":459,"stem":460,"markets":18,"order":75},"Bank Accounts","\u002Fpayments\u002Fchannels\u002Fbank","payments\u002F2.channels\u002Fbank",{"title":295,"path":462,"stem":463,"markets":18,"order":63},"\u002Fpayments\u002Fchannels\u002Fcards","payments\u002F2.channels\u002Fcards",{"title":299,"markets":18,"order":84,"path":465,"stem":466,"children":467},"\u002Fpayments\u002Fchannels\u002Fdedicated-virtual-accounts","payments\u002F2.channels\u002Fdedicated-virtual-accounts\u002Findex",[468,470,474],{"title":299,"path":465,"stem":466,"markets":469},[250,251],{"title":305,"path":471,"stem":472,"markets":473},"\u002Fpayments\u002Fchannels\u002Fdedicated-virtual-accounts\u002Fcreate-and-assign-dedicated-virtual-accounts","payments\u002F2.channels\u002Fdedicated-virtual-accounts\u002Fcreate-and-assign-dedicated-virtual-accounts",[250,251],{"title":475,"path":476,"stem":477,"markets":478},"Validate Customer","\u002Fpayments\u002Fchannels\u002Fdedicated-virtual-accounts\u002Fvalidate-customer","payments\u002F2.channels\u002Fdedicated-virtual-accounts\u002Fvalidate-customer",[250],{"title":313,"path":480,"stem":481,"markets":18,"order":66},"\u002Fpayments\u002Fchannels\u002Fpwt","payments\u002F2.channels\u002Fpwt",{"title":483,"path":484,"stem":485,"markets":18,"order":107},"USSD","\u002Fpayments\u002Fchannels\u002Fussd","payments\u002F2.channels\u002Fussd",{"title":487,"markets":18,"order":84,"path":488,"stem":489,"children":490},"Online","\u002Fpayments\u002Fonline","payments\u002F3.online\u002Findex",[491,493,507,526,530,534],{"title":492,"path":488,"stem":489,"markets":18,"order":55},"Online payments",{"title":494,"path":495,"stem":496,"children":497,"markets":18,"order":66},"Checkout","\u002Fpayments\u002Fonline\u002Fcheckout","payments\u002F3.online\u002F1.checkout\u002Findex",[498,499,503],{"title":494,"path":495,"stem":496,"markets":18,"order":55},{"title":500,"path":501,"stem":502,"markets":18},"How to integrate Popup Checkout","\u002Fpayments\u002Fonline\u002Fcheckout\u002Fpopup","payments\u002F3.online\u002F1.checkout\u002Fpopup",{"title":504,"path":505,"stem":506,"markets":18},"How to integrate Redirect Checkout","\u002Fpayments\u002Fonline\u002Fcheckout\u002Fredirect","payments\u002F3.online\u002F1.checkout\u002Fredirect",{"title":508,"markets":18,"order":84,"path":509,"stem":510,"children":511},"Charge API","\u002Fpayments\u002Fonline\u002Fcharge-api","payments\u002F3.online\u002F2.charge-api\u002Findex",[512,513,518,522],{"title":508,"path":509,"stem":510,"markets":18,"order":55},{"title":514,"path":515,"stem":516,"markets":517},"How to charge via bank transfer","\u002Fpayments\u002Fonline\u002Fcharge-api\u002Fbank-transfers","payments\u002F3.online\u002F2.charge-api\u002Fbank-transfers",[250,251],{"title":519,"path":520,"stem":521,"markets":18},"How to charge a card","\u002Fpayments\u002Fonline\u002Fcharge-api\u002Fcards","payments\u002F3.online\u002F2.charge-api\u002Fcards",{"title":523,"path":524,"stem":525,"markets":18},"Charge your first card in 10 minutes","\u002Fpayments\u002Fonline\u002Fcharge-api\u002Fquickstart","payments\u002F3.online\u002F2.charge-api\u002Fquickstart",{"title":527,"path":528,"stem":529,"markets":18},"Metadata reference","\u002Fpayments\u002Fonline\u002Fmetadata","payments\u002F3.online\u002Fmetadata",{"title":531,"path":532,"stem":533,"markets":18,"order":63},"Build your first checkout","\u002Fpayments\u002Fonline\u002Fquickstart","payments\u002F3.online\u002Fquickstart",{"title":535,"path":536,"stem":537,"markets":18},"Verify a payment","\u002Fpayments\u002Fonline\u002Fverify-payments","payments\u002F3.online\u002Fverify-payments",{"title":539,"markets":18,"order":75,"path":540,"stem":541,"children":542},"Recurring","\u002Fpayments\u002Frecurring","payments\u002F4.recurring\u002Findex",[543,545,561,565],{"title":544,"path":540,"stem":541,"markets":18,"order":55},"Recurring payments",{"title":546,"markets":18,"order":63,"path":547,"stem":548,"children":549},"Charge authorization","\u002Fpayments\u002Frecurring\u002Fcharge-authorization","payments\u002F4.recurring\u002F1.charge-authorization\u002Findex",[550,552,557],{"title":551,"path":547,"stem":548,"markets":18,"order":55},"How to set up recurring charges",{"title":553,"path":554,"stem":555,"markets":556,"order":66},"Direct Debit","\u002Fpayments\u002Frecurring\u002Fcharge-authorization\u002Fdirect-debit","payments\u002F4.recurring\u002F1.charge-authorization\u002Fdirect-debit",[250],{"title":558,"path":559,"stem":560,"markets":18,"order":63},"How to use partial debits","\u002Fpayments\u002Frecurring\u002Fcharge-authorization\u002Fpartial-debits","payments\u002F4.recurring\u002F1.charge-authorization\u002Fpartial-debits",{"title":562,"path":563,"stem":564,"markets":18,"order":66},"How to run bulk charges","\u002Fpayments\u002Frecurring\u002Fbulk-charge","payments\u002F4.recurring\u002F2.bulk-charge",{"title":566,"path":567,"stem":568,"children":569,"markets":18,"order":84},"Subscriptions","\u002Fpayments\u002Frecurring\u002Fsubscriptions","payments\u002F4.recurring\u002F3.subscriptions\u002Findex",[570,572],{"title":571,"path":567,"stem":568,"markets":18},"How subscriptions work",{"title":573,"path":574,"stem":575,"markets":18},"Set up your first subscription in 15 minutes","\u002Fpayments\u002Frecurring\u002Fsubscriptions\u002Fquickstart","payments\u002F4.recurring\u002F3.subscriptions\u002Fquickstart",{"title":317,"markets":18,"order":107,"path":577,"stem":578,"children":579},"\u002Fpayments\u002Fin-person","payments\u002F5.in-person\u002Findex",[580,582,604],{"title":581,"path":577,"stem":578,"markets":18,"order":55},"In-person payments",{"title":583,"markets":18,"order":63,"path":584,"stem":585,"children":586},"Physical Terminal","\u002Fpayments\u002Fin-person\u002Fphysical-terminal","payments\u002F5.in-person\u002F1.physical-terminal\u002Findex",[587,588,592,596,600],{"title":583,"path":584,"stem":585,"markets":18,"order":55},{"title":589,"path":590,"stem":591,"markets":18},"Custom Terminal apps","\u002Fpayments\u002Fin-person\u002Fphysical-terminal\u002Fcustom-apps","payments\u002F5.in-person\u002F1.physical-terminal\u002Fcustom-apps",{"title":593,"path":594,"stem":595,"markets":18,"order":63},"Your First Terminal Integration","\u002Fpayments\u002Fin-person\u002Fphysical-terminal\u002Fget-started","payments\u002F5.in-person\u002F1.physical-terminal\u002Fget-started",{"title":597,"path":598,"stem":599,"markets":18},"Invoice payments on Terminal","\u002Fpayments\u002Fin-person\u002Fphysical-terminal\u002Finvoice-payments","payments\u002F5.in-person\u002F1.physical-terminal\u002Finvoice-payments",{"title":601,"path":602,"stem":603,"markets":18},"Push payment requests","\u002Fpayments\u002Fin-person\u002Fphysical-terminal\u002Fpush-payment-requests","payments\u002F5.in-person\u002F1.physical-terminal\u002Fpush-payment-requests",{"title":323,"path":605,"stem":606,"markets":18,"order":66},"\u002Fpayments\u002Fin-person\u002Fvirtual-terminal","payments\u002F5.in-person\u002Fvirtual-terminal",{"title":608,"markets":18,"order":134,"path":609,"stem":610,"children":611},"Split payments","\u002Fpayments\u002Fsplit-payments","payments\u002F6.split-payments\u002Findex",[612,613,617,621],{"title":608,"path":609,"stem":610,"markets":18,"order":55},{"title":614,"path":615,"stem":616,"markets":18,"order":63},"Create a subaccount","\u002Fpayments\u002Fsplit-payments\u002Fsubaccounts","payments\u002F6.split-payments\u002F1.subaccounts",{"title":618,"path":619,"stem":620,"markets":18,"order":66},"Split a payment with a subaccount","\u002Fpayments\u002Fsplit-payments\u002Fsingle-split","payments\u002F6.split-payments\u002F2.single-split",{"title":622,"path":623,"stem":624,"markets":18,"order":84},"Split a payment across multiple subaccounts","\u002Fpayments\u002Fsplit-payments\u002Fmulti-split","payments\u002F6.split-payments\u002F3.multi-split",{"title":152,"markets":18,"order":153,"path":626,"stem":627,"children":628,"page":19},"\u002Fpayments\u002Fconcepts","payments\u002F7.concepts",[629,633,637],{"title":630,"path":631,"stem":632,"markets":18,"order":63},"Payment flow","\u002Fpayments\u002Fconcepts\u002Fpayment-flow","payments\u002F7.concepts\u002Fpayment-flow",{"title":634,"path":635,"stem":636,"markets":18,"order":84},"Transaction statuses","\u002Fpayments\u002Fconcepts\u002Ftransaction-statuses","payments\u002F7.concepts\u002Ftransaction-statuses",{"title":638,"path":639,"stem":640,"markets":18,"order":66},"Webhooks vs polling","\u002Fpayments\u002Fconcepts\u002Fwebhooks-vs-polling","payments\u002F7.concepts\u002Fwebhooks-vs-polling",{"title":642,"path":643,"stem":644,"children":645},"Use Cases","\u002Fuse-cases","use-cases",[646,649,670,687,704,721],{"title":647,"path":643,"stem":648,"markets":18,"order":55},"Use-cases","use-cases\u002Findex",{"title":650,"markets":18,"order":63,"path":651,"stem":652,"children":653,"page":19},"Fintech","\u002Fuse-cases\u002Ffintech","use-cases\u002F1.fintech",[654,658,662,666],{"title":655,"path":656,"stem":657,"markets":18},"Fund a Wallet with Paystack","\u002Fuse-cases\u002Ffintech\u002Fwallet-funding","use-cases\u002F1.fintech\u002F1.wallet-funding",{"title":659,"path":660,"stem":661,"markets":18},"Send Money Between Users","\u002Fuse-cases\u002Ffintech\u002Fpeer-to-peer-transfers","use-cases\u002F1.fintech\u002F2.peer-to-peer-transfers",{"title":663,"path":664,"stem":665,"markets":18},"Set Up Recurring Savings Contributions","\u002Fuse-cases\u002Ffintech\u002Fsavings-investment-apps","use-cases\u002F1.fintech\u002F3.savings-investment-apps",{"title":667,"path":668,"stem":669,"markets":18},"Automate Loan Repayment Collection","\u002Fuse-cases\u002Ffintech\u002Flending-loan-repayments","use-cases\u002F1.fintech\u002F4.lending-loan-repayments",{"title":671,"markets":18,"order":66,"path":672,"stem":673,"children":674,"page":19},"E-commerce","\u002Fuse-cases\u002Fecommerce","use-cases\u002F2.ecommerce",[675,679,683],{"title":676,"path":677,"stem":678,"markets":18},"Split Payments Between a Platform and Vendors","\u002Fuse-cases\u002Fecommerce\u002Fmarketplace-split-payments","use-cases\u002F2.ecommerce\u002F1.marketplace-split-payments",{"title":680,"path":681,"stem":682,"markets":18},"Charge Customers on a Monthly Subscription","\u002Fuse-cases\u002Fecommerce\u002Fsubscription-box-store","use-cases\u002F2.ecommerce\u002F2.subscription-box-store",{"title":684,"path":685,"stem":686,"markets":18},"Sell and Deliver Digital Products","\u002Fuse-cases\u002Fecommerce\u002Fdigital-downloads","use-cases\u002F2.ecommerce\u002F3.digital-downloads",{"title":688,"markets":18,"order":84,"path":689,"stem":690,"children":691,"page":19},"Gaming & entertainment","\u002Fuse-cases\u002Fgaming","use-cases\u002F3.gaming",[692,696,700],{"title":693,"path":694,"stem":695,"markets":18},"Accept In-app Purchases on Mobile","\u002Fuse-cases\u002Fgaming\u002Fin-app-purchases","use-cases\u002F3.gaming\u002F1.in-app-purchases",{"title":697,"path":698,"stem":699,"markets":18},"Offer Premium Membership Tiers","\u002Fuse-cases\u002Fgaming\u002Fsubscription-memberships","use-cases\u002F3.gaming\u002F2.subscription-memberships",{"title":701,"path":702,"stem":703,"markets":18},"Sell Virtual Currency (Coins\u002FGems)","\u002Fuse-cases\u002Fgaming\u002Fvirtual-currency-top-ups","use-cases\u002F3.gaming\u002F3.virtual-currency-top-ups",{"title":705,"markets":18,"order":75,"path":706,"stem":707,"children":708,"page":19},"Transportation","\u002Fuse-cases\u002Ftransportation","use-cases\u002F4.transportation",[709,713,717],{"title":710,"path":711,"stem":712,"markets":18},"Capture and Charge Rides with Preauthorization","\u002Fuse-cases\u002Ftransportation\u002Fride-hailing-payment-flow","use-cases\u002F4.transportation\u002F1.ride-hailing-payment-flow",{"title":714,"path":715,"stem":716,"markets":18},"Pay Drivers in Bulk After Each Shift","\u002Fuse-cases\u002Ftransportation\u002Ffleet-driver-payouts","use-cases\u002F4.transportation\u002F2.fleet-driver-payouts",{"title":718,"path":719,"stem":720,"markets":18},"Accept Toll and Ticket Payments Online","\u002Fuse-cases\u002Ftransportation\u002Ftoll-ticketing","use-cases\u002F4.transportation\u002F3.toll-ticketing",{"title":722,"markets":18,"order":107,"path":723,"stem":724,"children":725,"page":19},"Travel & hospitality","\u002Fuse-cases\u002Ftravel","use-cases\u002F5.travel",[726,730,734],{"title":727,"path":728,"stem":729,"markets":18},"Hold a Deposit on Hotel Booking","\u002Fuse-cases\u002Ftravel\u002Fhotel-booking-preauthorization","use-cases\u002F5.travel\u002F1.hotel-booking-preauthorization",{"title":731,"path":732,"stem":733,"markets":18},"Sell Flight Tickets and Process Refunds","\u002Fuse-cases\u002Ftravel\u002Fflight-ticketing-refunds","use-cases\u002F5.travel\u002F2.flight-ticketing-refunds",{"title":735,"path":736,"stem":737,"markets":18},"Sell Tour Experiences with Split Revenue","\u002Fuse-cases\u002Ftravel\u002Ftour-experience-bookings","use-cases\u002F5.travel\u002F3.tour-experience-bookings",{"title":739,"path":740,"stem":252,"children":741,"page":19},"Za","\u002Fza",[742],{"title":10,"path":743,"stem":744,"children":745,"markets":18,"order":55},"\u002Fza\u002Fpayments","za\u002Fpayments\u002Findex",[746,747,779],{"title":10,"path":743,"stem":744,"markets":18,"order":55},{"title":283,"markets":18,"order":66,"path":748,"stem":749,"children":750},"\u002Fza\u002Fpayments\u002Fchannels","za\u002Fpayments\u002Fchannels\u002Findex",[751,752,755,759,763,766,771,775],{"title":288,"path":748,"stem":749,"markets":18,"order":55},{"title":290,"path":753,"stem":754,"markets":18,"order":293},"\u002Fza\u002Fpayments\u002Fchannels\u002Fapple-pay","za\u002Fpayments\u002Fchannels\u002Fapple-pay",{"title":756,"path":757,"stem":758,"markets":18,"order":84},"Capitec Pay","\u002Fza\u002Fpayments\u002Fchannels\u002Fcapitec-pay","za\u002Fpayments\u002Fchannels\u002Fcapitec-pay",{"title":760,"path":761,"stem":762,"markets":18,"order":107},"Card Preauthorization","\u002Fza\u002Fpayments\u002Fchannels\u002Fcard-preauthorization","za\u002Fpayments\u002Fchannels\u002Fcard-preauthorization",{"title":295,"path":764,"stem":765,"markets":18,"order":63},"\u002Fza\u002Fpayments\u002Fchannels\u002Fcards","za\u002Fpayments\u002Fchannels\u002Fcards",{"title":767,"path":768,"stem":769,"markets":18,"order":770},"Google Pay","\u002Fza\u002Fpayments\u002Fchannels\u002Fgoogle-pay","za\u002Fpayments\u002Fchannels\u002Fgoogle-pay",99,{"title":772,"path":773,"stem":774,"markets":18,"order":66},"Instant EFT","\u002Fza\u002Fpayments\u002Fchannels\u002Finstant-eft","za\u002Fpayments\u002Fchannels\u002Finstant-eft",{"title":776,"path":777,"stem":778,"markets":18,"order":75},"QR code payments","\u002Fza\u002Fpayments\u002Fchannels\u002Fqr-codes","za\u002Fpayments\u002Fchannels\u002Fqr-codes",{"title":317,"path":780,"stem":781,"children":782,"markets":18,"order":107},"\u002Fza\u002Fpayments\u002Fin-person","za\u002Fpayments\u002Fin-person\u002Findex",[783,784],{"title":288,"path":780,"stem":781,"markets":18,"order":55},{"title":323,"path":785,"stem":786,"markets":18,"order":63},"\u002Fza\u002Fpayments\u002Fin-person\u002Fvirtual-terminal","za\u002Fpayments\u002Fin-person\u002Fvirtual-terminal",{"id":788,"title":593,"body":789,"description":2445,"extension":2446,"markets":18,"meta":2447,"navigation":2448,"path":594,"seo":2449,"stem":595,"type":2450,"whats_next":18,"__hash__":2451},"content\u002Fpayments\u002F5.in-person\u002F1.physical-terminal\u002Fget-started.md",{"type":790,"value":791,"toc":2436},"minimark",[792,796,799,823,828,831,857,860,864,871,1049,1055,1059,1062,1216,1219,1226,1230,1233,1257,1260,1658,1665,1669,1675,1846,1849,1873,1876,1880,1889,2384,2390,2394,2397,2429,2432],[793,794,795],"p",{},"This tutorial walks through the most common Paystack Terminal flow: your POS completes an order, your server pushes a payment request to a specific terminal, and the customer pays on the device.",[793,797,798],{},"You will:",[800,801,802,806,809,812,815],"ul",{},[803,804,805],"li",{},"find the terminal to target",[803,807,808],{},"confirm that it is online",[803,810,811],{},"push the payment request to the device",[803,813,814],{},"poll the event until delivery completes",[803,816,817,818,822],{},"handle the final ",[819,820,821],"code",{},"charge.success"," webhook",[824,825,827],"h2",{"id":826},"step-1-gather-the-prerequisites","Step 1: Gather the prerequisites",[793,829,830],{},"Before you start, make sure you have:",[832,833,834,837,840],"ol",{},[803,835,836],{},"A physical Paystack Terminal device, or a test simulation that can receive terminal events.",[803,838,839],{},"Your Paystack secret key.",[803,841,842,843],{},"A payment request already created for the order, with:\n",[800,844,845,851],{},[803,846,847,850],{},[819,848,849],{},"id",": the payment request ID you want the terminal to process",[803,852,853,856],{},[819,854,855],{},"offline_reference",": the reference you use to reconcile the charge in your system",[793,858,859],{},"If your POS creates the payment request at checkout time, store those values before you push anything to the terminal.",[824,861,863],{"id":862},"step-2-list-your-terminals","Step 2: List your terminals",[793,865,866,867,870],{},"Use ",[819,868,869],{},"GET \u002Fterminal"," to see every terminal connected to your integration and identify the one you want to target.",[872,873,874,918],"code-tabs",{},[875,876,878],"template",{"v-slot:curl":877},"",[879,880,884],"pre",{"className":881,"code":882,"language":883,"meta":877,"style":877},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","curl https:\u002F\u002Fapi.paystack.co\u002Fterminal \\\n  -H \"Authorization: Bearer YOUR_SECRET_KEY\"\n","bash",[819,885,886,902],{"__ignoreMap":877},[887,888,890,894,898],"span",{"class":889,"line":63},"line",[887,891,893],{"class":892},"s0zq4","curl",[887,895,897],{"class":896},"sOv1k"," https:\u002F\u002Fapi.paystack.co\u002Fterminal",[887,899,901],{"class":900},"s8jVp"," \\\n",[887,903,904,908,912,915],{"class":889,"line":66},[887,905,907],{"class":906},"scI3H","  -H",[887,909,911],{"class":910},"sO3A-"," \"",[887,913,914],{"class":896},"Authorization: Bearer YOUR_SECRET_KEY",[887,916,917],{"class":910},"\"\n",[875,919,920],{"v-slot:nodejs":877},[879,921,925],{"className":922,"code":923,"language":924,"meta":877,"style":877},"language-js shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","const response = await fetch('https:\u002F\u002Fapi.paystack.co\u002Fterminal', {\n  headers: {\n    Authorization: 'Bearer YOUR_SECRET_KEY'\n  }\n})\n\nconst terminals = await response.json()\nconsole.log(terminals)\n","js",[819,926,927,968,979,995,1000,1008,1014,1036],{"__ignoreMap":877},[887,928,929,933,937,941,945,949,953,956,959,961,965],{"class":889,"line":63},[887,930,932],{"class":931},"sAeZB","const",[887,934,936],{"class":935},"s1fxI"," response",[887,938,940],{"class":939},"s6LNo"," =",[887,942,944],{"class":943},"sb9E3"," await",[887,946,948],{"class":947},"sENpr"," fetch",[887,950,952],{"class":951},"swCDk","(",[887,954,955],{"class":910},"'",[887,957,958],{"class":896},"https:\u002F\u002Fapi.paystack.co\u002Fterminal",[887,960,955],{"class":910},[887,962,964],{"class":963},"s7Vxm",",",[887,966,967],{"class":963}," {\n",[887,969,970,974,977],{"class":889,"line":66},[887,971,973],{"class":972},"sOnBC","  headers",[887,975,976],{"class":963},":",[887,978,967],{"class":963},[887,980,981,984,986,989,992],{"class":889,"line":84},[887,982,983],{"class":972},"    Authorization",[887,985,976],{"class":963},[887,987,988],{"class":910}," '",[887,990,991],{"class":896},"Bearer YOUR_SECRET_KEY",[887,993,994],{"class":910},"'\n",[887,996,997],{"class":889,"line":75},[887,998,999],{"class":963},"  }\n",[887,1001,1002,1005],{"class":889,"line":107},[887,1003,1004],{"class":963},"}",[887,1006,1007],{"class":951},")\n",[887,1009,1010],{"class":889,"line":134},[887,1011,1013],{"emptyLinePlaceholder":1012},true,"\n",[887,1015,1016,1018,1021,1023,1025,1027,1030,1033],{"class":889,"line":153},[887,1017,932],{"class":931},[887,1019,1020],{"class":935}," terminals",[887,1022,940],{"class":939},[887,1024,944],{"class":943},[887,1026,936],{"class":951},[887,1028,1029],{"class":963},".",[887,1031,1032],{"class":947},"json",[887,1034,1035],{"class":951},"()\n",[887,1037,1038,1041,1043,1046],{"class":889,"line":422},[887,1039,1040],{"class":951},"console",[887,1042,1029],{"class":963},[887,1044,1045],{"class":947},"log",[887,1047,1048],{"class":951},"(terminals)\n",[793,1050,1051,1052,1029],{},"Look for the terminal your cashier is using and note its ",[819,1053,1054],{},"terminal_id",[824,1056,1058],{"id":1057},"step-3-check-the-terminal-status","Step 3: Check the terminal status",[793,1060,1061],{},"Before you push a payment request, confirm that the terminal is available to receive it.",[872,1063,1064,1090],{},[875,1065,1066],{"v-slot:curl":877},[879,1067,1069],{"className":881,"code":1068,"language":883,"meta":877,"style":877},"curl https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002FTERM_123456 \\\n  -H \"Authorization: Bearer YOUR_SECRET_KEY\"\n",[819,1070,1071,1080],{"__ignoreMap":877},[887,1072,1073,1075,1078],{"class":889,"line":63},[887,1074,893],{"class":892},[887,1076,1077],{"class":896}," https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002FTERM_123456",[887,1079,901],{"class":900},[887,1081,1082,1084,1086,1088],{"class":889,"line":66},[887,1083,907],{"class":906},[887,1085,911],{"class":910},[887,1087,914],{"class":896},[887,1089,917],{"class":910},[875,1091,1092],{"v-slot:nodejs":877},[879,1093,1095],{"className":922,"code":1094,"language":924,"meta":877,"style":877},"const terminalId = 'TERM_123456'\n\nconst response = await fetch(`https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002F${terminalId}`, {\n  headers: {\n    Authorization: 'Bearer YOUR_SECRET_KEY'\n  }\n})\n\nconst terminal = await response.json()\nconsole.log(terminal)\n",[819,1096,1097,1113,1117,1150,1158,1170,1174,1180,1184,1204],{"__ignoreMap":877},[887,1098,1099,1101,1104,1106,1108,1111],{"class":889,"line":63},[887,1100,932],{"class":931},[887,1102,1103],{"class":935}," terminalId",[887,1105,940],{"class":939},[887,1107,988],{"class":910},[887,1109,1110],{"class":896},"TERM_123456",[887,1112,994],{"class":910},[887,1114,1115],{"class":889,"line":66},[887,1116,1013],{"emptyLinePlaceholder":1012},[887,1118,1119,1121,1123,1125,1127,1129,1131,1134,1137,1140,1143,1146,1148],{"class":889,"line":84},[887,1120,932],{"class":931},[887,1122,936],{"class":935},[887,1124,940],{"class":939},[887,1126,944],{"class":943},[887,1128,948],{"class":947},[887,1130,952],{"class":951},[887,1132,1133],{"class":910},"`",[887,1135,1136],{"class":896},"https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002F",[887,1138,1139],{"class":910},"${",[887,1141,1142],{"class":951},"terminalId",[887,1144,1145],{"class":910},"}`",[887,1147,964],{"class":963},[887,1149,967],{"class":963},[887,1151,1152,1154,1156],{"class":889,"line":75},[887,1153,973],{"class":972},[887,1155,976],{"class":963},[887,1157,967],{"class":963},[887,1159,1160,1162,1164,1166,1168],{"class":889,"line":107},[887,1161,983],{"class":972},[887,1163,976],{"class":963},[887,1165,988],{"class":910},[887,1167,991],{"class":896},[887,1169,994],{"class":910},[887,1171,1172],{"class":889,"line":134},[887,1173,999],{"class":963},[887,1175,1176,1178],{"class":889,"line":153},[887,1177,1004],{"class":963},[887,1179,1007],{"class":951},[887,1181,1182],{"class":889,"line":422},[887,1183,1013],{"emptyLinePlaceholder":1012},[887,1185,1187,1189,1192,1194,1196,1198,1200,1202],{"class":889,"line":1186},9,[887,1188,932],{"class":931},[887,1190,1191],{"class":935}," terminal",[887,1193,940],{"class":939},[887,1195,944],{"class":943},[887,1197,936],{"class":951},[887,1199,1029],{"class":963},[887,1201,1032],{"class":947},[887,1203,1035],{"class":951},[887,1205,1207,1209,1211,1213],{"class":889,"line":1206},10,[887,1208,1040],{"class":951},[887,1210,1029],{"class":963},[887,1212,1045],{"class":947},[887,1214,1215],{"class":951},"(terminal)\n",[793,1217,1218],{},"Treat the terminal as ready only when it is online and available.",[1220,1221,1223],"callout",{"type":1222},"warning",[793,1224,1225],{},"The terminal must be online and awake before you push an event. If it is offline, sleeping, or busy with another payment, the customer will not see the prompt.",[824,1227,1229],{"id":1228},"step-4-push-the-payment-request-to-the-terminal","Step 4: Push the payment request to the terminal",[793,1231,1232],{},"When the customer is ready to pay, send a terminal event to the target device with:",[800,1234,1235,1240,1245,1251],{},[803,1236,1237],{},[819,1238,1239],{},"type: \"invoice\"",[803,1241,1242],{},[819,1243,1244],{},"action: \"process\"",[803,1246,1247,1250],{},[819,1248,1249],{},"data.id",": your payment request ID",[803,1252,1253,1256],{},[819,1254,1255],{},"data.reference",": the payment reference for this order",[793,1258,1259],{},"This tells Paystack to display the payment prompt on that terminal so the customer can tap, insert, or swipe their card.",[872,1261,1262,1363],{},[875,1263,1264],{"v-slot:curl":877},[879,1265,1267],{"className":881,"code":1266,"language":883,"meta":877,"style":877},"curl https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002FTERM_123456\u002Fevent \\\n  -X POST \\\n  -H \"Authorization: Bearer YOUR_SECRET_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"type\": \"invoice\",\n    \"action\": \"process\",\n    \"data\": {\n      \"id\": \"INV_3s9xLxZKx5n1\",\n      \"reference\": \"order_10452_pos\"\n    }\n  }'\n",[819,1268,1269,1278,1288,1301,1314,1324,1329,1334,1339,1344,1349,1355],{"__ignoreMap":877},[887,1270,1271,1273,1276],{"class":889,"line":63},[887,1272,893],{"class":892},[887,1274,1275],{"class":896}," https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002FTERM_123456\u002Fevent",[887,1277,901],{"class":900},[887,1279,1280,1283,1286],{"class":889,"line":66},[887,1281,1282],{"class":906},"  -X",[887,1284,1285],{"class":896}," POST",[887,1287,901],{"class":900},[887,1289,1290,1292,1294,1296,1299],{"class":889,"line":84},[887,1291,907],{"class":906},[887,1293,911],{"class":910},[887,1295,914],{"class":896},[887,1297,1298],{"class":910},"\"",[887,1300,901],{"class":900},[887,1302,1303,1305,1307,1310,1312],{"class":889,"line":75},[887,1304,907],{"class":906},[887,1306,911],{"class":910},[887,1308,1309],{"class":896},"Content-Type: application\u002Fjson",[887,1311,1298],{"class":910},[887,1313,901],{"class":900},[887,1315,1316,1319,1321],{"class":889,"line":107},[887,1317,1318],{"class":906},"  -d",[887,1320,988],{"class":910},[887,1322,1323],{"class":896},"{\n",[887,1325,1326],{"class":889,"line":134},[887,1327,1328],{"class":896},"    \"type\": \"invoice\",\n",[887,1330,1331],{"class":889,"line":153},[887,1332,1333],{"class":896},"    \"action\": \"process\",\n",[887,1335,1336],{"class":889,"line":422},[887,1337,1338],{"class":896},"    \"data\": {\n",[887,1340,1341],{"class":889,"line":1186},[887,1342,1343],{"class":896},"      \"id\": \"INV_3s9xLxZKx5n1\",\n",[887,1345,1346],{"class":889,"line":1206},[887,1347,1348],{"class":896},"      \"reference\": \"order_10452_pos\"\n",[887,1350,1352],{"class":889,"line":1351},11,[887,1353,1354],{"class":896},"    }\n",[887,1356,1358,1361],{"class":889,"line":1357},12,[887,1359,1360],{"class":896},"  }",[887,1362,994],{"class":910},[875,1364,1365],{"v-slot:nodejs":877},[879,1366,1368],{"className":922,"code":1367,"language":924,"meta":877,"style":877},"const terminalId = 'TERM_123456'\nconst invoiceId = 'INV_3s9xLxZKx5n1'\nconst paymentReference = 'order_10452_pos'\n\nconst response = await fetch(`https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002F${terminalId}\u002Fevent`, {\n  method: 'POST',\n  headers: {\n    Authorization: 'Bearer YOUR_SECRET_KEY',\n    'Content-Type': 'application\u002Fjson'\n  },\n  body: JSON.stringify({\n    type: 'invoice',\n    action: 'process',\n    data: {\n      id: invoiceId,\n      reference: paymentReference\n    }\n  })\n})\n\nconst event = await response.json()\nconsole.log(event)\n",[819,1369,1370,1384,1400,1416,1420,1453,1470,1478,1492,1512,1517,1536,1552,1569,1579,1591,1602,1607,1614,1621,1626,1646],{"__ignoreMap":877},[887,1371,1372,1374,1376,1378,1380,1382],{"class":889,"line":63},[887,1373,932],{"class":931},[887,1375,1103],{"class":935},[887,1377,940],{"class":939},[887,1379,988],{"class":910},[887,1381,1110],{"class":896},[887,1383,994],{"class":910},[887,1385,1386,1388,1391,1393,1395,1398],{"class":889,"line":66},[887,1387,932],{"class":931},[887,1389,1390],{"class":935}," invoiceId",[887,1392,940],{"class":939},[887,1394,988],{"class":910},[887,1396,1397],{"class":896},"INV_3s9xLxZKx5n1",[887,1399,994],{"class":910},[887,1401,1402,1404,1407,1409,1411,1414],{"class":889,"line":84},[887,1403,932],{"class":931},[887,1405,1406],{"class":935}," paymentReference",[887,1408,940],{"class":939},[887,1410,988],{"class":910},[887,1412,1413],{"class":896},"order_10452_pos",[887,1415,994],{"class":910},[887,1417,1418],{"class":889,"line":75},[887,1419,1013],{"emptyLinePlaceholder":1012},[887,1421,1422,1424,1426,1428,1430,1432,1434,1436,1438,1440,1442,1444,1447,1449,1451],{"class":889,"line":107},[887,1423,932],{"class":931},[887,1425,936],{"class":935},[887,1427,940],{"class":939},[887,1429,944],{"class":943},[887,1431,948],{"class":947},[887,1433,952],{"class":951},[887,1435,1133],{"class":910},[887,1437,1136],{"class":896},[887,1439,1139],{"class":910},[887,1441,1142],{"class":951},[887,1443,1004],{"class":910},[887,1445,1446],{"class":896},"\u002Fevent",[887,1448,1133],{"class":910},[887,1450,964],{"class":963},[887,1452,967],{"class":963},[887,1454,1455,1458,1460,1462,1465,1467],{"class":889,"line":134},[887,1456,1457],{"class":972},"  method",[887,1459,976],{"class":963},[887,1461,988],{"class":910},[887,1463,1464],{"class":896},"POST",[887,1466,955],{"class":910},[887,1468,1469],{"class":963},",\n",[887,1471,1472,1474,1476],{"class":889,"line":153},[887,1473,973],{"class":972},[887,1475,976],{"class":963},[887,1477,967],{"class":963},[887,1479,1480,1482,1484,1486,1488,1490],{"class":889,"line":422},[887,1481,983],{"class":972},[887,1483,976],{"class":963},[887,1485,988],{"class":910},[887,1487,991],{"class":896},[887,1489,955],{"class":910},[887,1491,1469],{"class":963},[887,1493,1494,1497,1501,1503,1505,1507,1510],{"class":889,"line":1186},[887,1495,1496],{"class":910},"    '",[887,1498,1500],{"class":1499},"sTNDG","Content-Type",[887,1502,955],{"class":910},[887,1504,976],{"class":963},[887,1506,988],{"class":910},[887,1508,1509],{"class":896},"application\u002Fjson",[887,1511,994],{"class":910},[887,1513,1514],{"class":889,"line":1206},[887,1515,1516],{"class":963},"  },\n",[887,1518,1519,1522,1524,1527,1529,1532,1534],{"class":889,"line":1351},[887,1520,1521],{"class":972},"  body",[887,1523,976],{"class":963},[887,1525,1526],{"class":935}," JSON",[887,1528,1029],{"class":963},[887,1530,1531],{"class":947},"stringify",[887,1533,952],{"class":951},[887,1535,1323],{"class":963},[887,1537,1538,1541,1543,1545,1548,1550],{"class":889,"line":1357},[887,1539,1540],{"class":972},"    type",[887,1542,976],{"class":963},[887,1544,988],{"class":910},[887,1546,1547],{"class":896},"invoice",[887,1549,955],{"class":910},[887,1551,1469],{"class":963},[887,1553,1555,1558,1560,1562,1565,1567],{"class":889,"line":1554},13,[887,1556,1557],{"class":972},"    action",[887,1559,976],{"class":963},[887,1561,988],{"class":910},[887,1563,1564],{"class":896},"process",[887,1566,955],{"class":910},[887,1568,1469],{"class":963},[887,1570,1572,1575,1577],{"class":889,"line":1571},14,[887,1573,1574],{"class":972},"    data",[887,1576,976],{"class":963},[887,1578,967],{"class":963},[887,1580,1582,1585,1587,1589],{"class":889,"line":1581},15,[887,1583,1584],{"class":972},"      id",[887,1586,976],{"class":963},[887,1588,1390],{"class":951},[887,1590,1469],{"class":963},[887,1592,1594,1597,1599],{"class":889,"line":1593},16,[887,1595,1596],{"class":972},"      reference",[887,1598,976],{"class":963},[887,1600,1601],{"class":951}," paymentReference\n",[887,1603,1605],{"class":889,"line":1604},17,[887,1606,1354],{"class":963},[887,1608,1610,1612],{"class":889,"line":1609},18,[887,1611,1360],{"class":963},[887,1613,1007],{"class":951},[887,1615,1617,1619],{"class":889,"line":1616},19,[887,1618,1004],{"class":963},[887,1620,1007],{"class":951},[887,1622,1624],{"class":889,"line":1623},20,[887,1625,1013],{"emptyLinePlaceholder":1012},[887,1627,1629,1631,1634,1636,1638,1640,1642,1644],{"class":889,"line":1628},21,[887,1630,932],{"class":931},[887,1632,1633],{"class":935}," event",[887,1635,940],{"class":939},[887,1637,944],{"class":943},[887,1639,936],{"class":951},[887,1641,1029],{"class":963},[887,1643,1032],{"class":947},[887,1645,1035],{"class":951},[887,1647,1649,1651,1653,1655],{"class":889,"line":1648},22,[887,1650,1040],{"class":951},[887,1652,1029],{"class":963},[887,1654,1045],{"class":947},[887,1656,1657],{"class":951},"(event)\n",[793,1659,1660,1661,1664],{},"A successful API response means Paystack accepted the event and forwarded it for delivery. It does not yet mean the terminal completed payment. Save the returned ",[819,1662,1663],{},"event_id"," and track it.",[824,1666,1668],{"id":1667},"step-5-poll-for-event-status","Step 5: Poll for event status",[793,1670,866,1671,1674],{},[819,1672,1673],{},"GET \u002Fterminal\u002F{terminal_id}\u002Fevent\u002F{event_id}"," to confirm what happened to the pushed event.",[872,1676,1677,1703],{},[875,1678,1679],{"v-slot:curl":877},[879,1680,1682],{"className":881,"code":1681,"language":883,"meta":877,"style":877},"curl https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002FTERM_123456\u002Fevent\u002FEVT_8h2kQ9m1 \\\n  -H \"Authorization: Bearer YOUR_SECRET_KEY\"\n",[819,1683,1684,1693],{"__ignoreMap":877},[887,1685,1686,1688,1691],{"class":889,"line":63},[887,1687,893],{"class":892},[887,1689,1690],{"class":896}," https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002FTERM_123456\u002Fevent\u002FEVT_8h2kQ9m1",[887,1692,901],{"class":900},[887,1694,1695,1697,1699,1701],{"class":889,"line":66},[887,1696,907],{"class":906},[887,1698,911],{"class":910},[887,1700,914],{"class":896},[887,1702,917],{"class":910},[875,1704,1705],{"v-slot:nodejs":877},[879,1706,1708],{"className":922,"code":1707,"language":924,"meta":877,"style":877},"const terminalId = 'TERM_123456'\nconst eventId = 'EVT_8h2kQ9m1'\n\nconst response = await fetch(`https:\u002F\u002Fapi.paystack.co\u002Fterminal\u002F${terminalId}\u002Fevent\u002F${eventId}`, {\n  headers: {\n    Authorization: 'Bearer YOUR_SECRET_KEY'\n  }\n})\n\nconst status = await response.json()\nconsole.log(status)\n",[819,1709,1710,1724,1740,1744,1782,1790,1802,1806,1812,1816,1835],{"__ignoreMap":877},[887,1711,1712,1714,1716,1718,1720,1722],{"class":889,"line":63},[887,1713,932],{"class":931},[887,1715,1103],{"class":935},[887,1717,940],{"class":939},[887,1719,988],{"class":910},[887,1721,1110],{"class":896},[887,1723,994],{"class":910},[887,1725,1726,1728,1731,1733,1735,1738],{"class":889,"line":66},[887,1727,932],{"class":931},[887,1729,1730],{"class":935}," eventId",[887,1732,940],{"class":939},[887,1734,988],{"class":910},[887,1736,1737],{"class":896},"EVT_8h2kQ9m1",[887,1739,994],{"class":910},[887,1741,1742],{"class":889,"line":84},[887,1743,1013],{"emptyLinePlaceholder":1012},[887,1745,1746,1748,1750,1752,1754,1756,1758,1760,1762,1764,1766,1768,1771,1773,1776,1778,1780],{"class":889,"line":75},[887,1747,932],{"class":931},[887,1749,936],{"class":935},[887,1751,940],{"class":939},[887,1753,944],{"class":943},[887,1755,948],{"class":947},[887,1757,952],{"class":951},[887,1759,1133],{"class":910},[887,1761,1136],{"class":896},[887,1763,1139],{"class":910},[887,1765,1142],{"class":951},[887,1767,1004],{"class":910},[887,1769,1770],{"class":896},"\u002Fevent\u002F",[887,1772,1139],{"class":910},[887,1774,1775],{"class":951},"eventId",[887,1777,1145],{"class":910},[887,1779,964],{"class":963},[887,1781,967],{"class":963},[887,1783,1784,1786,1788],{"class":889,"line":107},[887,1785,973],{"class":972},[887,1787,976],{"class":963},[887,1789,967],{"class":963},[887,1791,1792,1794,1796,1798,1800],{"class":889,"line":134},[887,1793,983],{"class":972},[887,1795,976],{"class":963},[887,1797,988],{"class":910},[887,1799,991],{"class":896},[887,1801,994],{"class":910},[887,1803,1804],{"class":889,"line":153},[887,1805,999],{"class":963},[887,1807,1808,1810],{"class":889,"line":422},[887,1809,1004],{"class":963},[887,1811,1007],{"class":951},[887,1813,1814],{"class":889,"line":1186},[887,1815,1013],{"emptyLinePlaceholder":1012},[887,1817,1818,1820,1823,1825,1827,1829,1831,1833],{"class":889,"line":1206},[887,1819,932],{"class":931},[887,1821,1822],{"class":935}," status",[887,1824,940],{"class":939},[887,1826,944],{"class":943},[887,1828,936],{"class":951},[887,1830,1029],{"class":963},[887,1832,1032],{"class":947},[887,1834,1035],{"class":951},[887,1836,1837,1839,1841,1843],{"class":889,"line":1351},[887,1838,1040],{"class":951},[887,1840,1029],{"class":963},[887,1842,1045],{"class":947},[887,1844,1845],{"class":951},"(status)\n",[793,1847,1848],{},"Expect the event to move through states such as:",[832,1850,1851,1857,1863],{},[803,1852,1853,1856],{},[819,1854,1855],{},"pending"," — Paystack has accepted the event.",[803,1858,1859,1862],{},[819,1860,1861],{},"processing"," — the terminal is receiving or acting on it.",[803,1864,1865,1868,1869,1872],{},[819,1866,1867],{},"success"," or ",[819,1870,1871],{},"failed"," — delivery and processing completed.",[793,1874,1875],{},"Use this endpoint for operational visibility, but treat the payment webhook as the final payment signal.",[824,1877,1879],{"id":1878},"step-6-handle-the-webhook","Step 6: Handle the webhook",[793,1881,1882,1883,1885,1886,1029],{},"When the customer completes payment on the terminal, Paystack sends a ",[819,1884,821],{}," webhook. Verify the signature first, then confirm the charge came from the terminal by checking ",[819,1887,1888],{},"data.channel === 'pos'",[879,1890,1892],{"className":922,"code":1891,"language":924,"meta":877,"style":877},"import crypto from 'crypto'\nimport express from 'express'\n\nconst app = express()\napp.use(express.json())\n\napp.post('\u002Fapi\u002Fpaystack\u002Fwebhook', (req, res) => {\n  const signature = req.headers['x-paystack-signature']\n  const hash = crypto\n    .createHmac('sha512', 'YOUR_SECRET_KEY')\n    .update(JSON.stringify(req.body))\n    .digest('hex')\n\n  if (hash !== signature) {\n    return res.sendStatus(401)\n  }\n\n  if (req.body.event === 'charge.success' && req.body.data.channel === 'pos') {\n    const reference = req.body.data.reference\n    const status = req.body.data.status\n\n    if (status === 'success') {\n      console.log('Terminal payment confirmed:', reference)\n      \u002F\u002F mark the POS order as paid\n    }\n  }\n\n  return res.sendStatus(200)\n})\n",[819,1893,1894,1912,1928,1932,1946,1966,1970,2010,2041,2053,2081,2109,2127,2131,2151,2171,2175,2179,2237,2262,2285,2289,2311,2336,2343,2348,2353,2358,2377],{"__ignoreMap":877},[887,1895,1896,1899,1902,1905,1907,1910],{"class":889,"line":63},[887,1897,1898],{"class":943},"import",[887,1900,1901],{"class":951}," crypto ",[887,1903,1904],{"class":943},"from",[887,1906,988],{"class":910},[887,1908,1909],{"class":896},"crypto",[887,1911,994],{"class":910},[887,1913,1914,1916,1919,1921,1923,1926],{"class":889,"line":66},[887,1915,1898],{"class":943},[887,1917,1918],{"class":951}," express ",[887,1920,1904],{"class":943},[887,1922,988],{"class":910},[887,1924,1925],{"class":896},"express",[887,1927,994],{"class":910},[887,1929,1930],{"class":889,"line":84},[887,1931,1013],{"emptyLinePlaceholder":1012},[887,1933,1934,1936,1939,1941,1944],{"class":889,"line":75},[887,1935,932],{"class":931},[887,1937,1938],{"class":935}," app",[887,1940,940],{"class":939},[887,1942,1943],{"class":947}," express",[887,1945,1035],{"class":951},[887,1947,1948,1951,1953,1956,1959,1961,1963],{"class":889,"line":107},[887,1949,1950],{"class":951},"app",[887,1952,1029],{"class":963},[887,1954,1955],{"class":947},"use",[887,1957,1958],{"class":951},"(express",[887,1960,1029],{"class":963},[887,1962,1032],{"class":947},[887,1964,1965],{"class":951},"())\n",[887,1967,1968],{"class":889,"line":134},[887,1969,1013],{"emptyLinePlaceholder":1012},[887,1971,1972,1974,1976,1979,1981,1983,1986,1988,1990,1993,1997,1999,2002,2005,2008],{"class":889,"line":153},[887,1973,1950],{"class":951},[887,1975,1029],{"class":963},[887,1977,1978],{"class":947},"post",[887,1980,952],{"class":951},[887,1982,955],{"class":910},[887,1984,1985],{"class":896},"\u002Fapi\u002Fpaystack\u002Fwebhook",[887,1987,955],{"class":910},[887,1989,964],{"class":963},[887,1991,1992],{"class":963}," (",[887,1994,1996],{"class":1995},"semhU","req",[887,1998,964],{"class":963},[887,2000,2001],{"class":1995}," res",[887,2003,2004],{"class":963},")",[887,2006,2007],{"class":931}," =>",[887,2009,967],{"class":963},[887,2011,2012,2015,2018,2020,2023,2025,2028,2031,2033,2036,2038],{"class":889,"line":422},[887,2013,2014],{"class":931},"  const",[887,2016,2017],{"class":935}," signature",[887,2019,940],{"class":939},[887,2021,2022],{"class":951}," req",[887,2024,1029],{"class":963},[887,2026,2027],{"class":951},"headers",[887,2029,2030],{"class":972},"[",[887,2032,955],{"class":910},[887,2034,2035],{"class":896},"x-paystack-signature",[887,2037,955],{"class":910},[887,2039,2040],{"class":972},"]\n",[887,2042,2043,2045,2048,2050],{"class":889,"line":1186},[887,2044,2014],{"class":931},[887,2046,2047],{"class":935}," hash",[887,2049,940],{"class":939},[887,2051,2052],{"class":951}," crypto\n",[887,2054,2055,2058,2061,2063,2065,2068,2070,2072,2074,2077,2079],{"class":889,"line":1206},[887,2056,2057],{"class":963},"    .",[887,2059,2060],{"class":947},"createHmac",[887,2062,952],{"class":972},[887,2064,955],{"class":910},[887,2066,2067],{"class":896},"sha512",[887,2069,955],{"class":910},[887,2071,964],{"class":963},[887,2073,988],{"class":910},[887,2075,2076],{"class":896},"YOUR_SECRET_KEY",[887,2078,955],{"class":910},[887,2080,1007],{"class":972},[887,2082,2083,2085,2088,2090,2093,2095,2097,2099,2101,2103,2106],{"class":889,"line":1351},[887,2084,2057],{"class":963},[887,2086,2087],{"class":947},"update",[887,2089,952],{"class":972},[887,2091,2092],{"class":935},"JSON",[887,2094,1029],{"class":963},[887,2096,1531],{"class":947},[887,2098,952],{"class":972},[887,2100,1996],{"class":951},[887,2102,1029],{"class":963},[887,2104,2105],{"class":951},"body",[887,2107,2108],{"class":972},"))\n",[887,2110,2111,2113,2116,2118,2120,2123,2125],{"class":889,"line":1357},[887,2112,2057],{"class":963},[887,2114,2115],{"class":947},"digest",[887,2117,952],{"class":972},[887,2119,955],{"class":910},[887,2121,2122],{"class":896},"hex",[887,2124,955],{"class":910},[887,2126,1007],{"class":972},[887,2128,2129],{"class":889,"line":1554},[887,2130,1013],{"emptyLinePlaceholder":1012},[887,2132,2133,2136,2138,2141,2144,2146,2149],{"class":889,"line":1571},[887,2134,2135],{"class":943},"  if",[887,2137,1992],{"class":972},[887,2139,2140],{"class":951},"hash",[887,2142,2143],{"class":939}," !==",[887,2145,2017],{"class":951},[887,2147,2148],{"class":972},") ",[887,2150,1323],{"class":963},[887,2152,2153,2156,2158,2160,2163,2165,2169],{"class":889,"line":1581},[887,2154,2155],{"class":943},"    return",[887,2157,2001],{"class":951},[887,2159,1029],{"class":963},[887,2161,2162],{"class":947},"sendStatus",[887,2164,952],{"class":972},[887,2166,2168],{"class":2167},"sCI7e","401",[887,2170,1007],{"class":972},[887,2172,2173],{"class":889,"line":1593},[887,2174,999],{"class":963},[887,2176,2177],{"class":889,"line":1604},[887,2178,1013],{"emptyLinePlaceholder":1012},[887,2180,2181,2183,2185,2187,2189,2191,2193,2196,2199,2201,2203,2205,2208,2210,2212,2214,2216,2219,2221,2224,2226,2228,2231,2233,2235],{"class":889,"line":1609},[887,2182,2135],{"class":943},[887,2184,1992],{"class":972},[887,2186,1996],{"class":951},[887,2188,1029],{"class":963},[887,2190,2105],{"class":951},[887,2192,1029],{"class":963},[887,2194,2195],{"class":951},"event",[887,2197,2198],{"class":939}," ===",[887,2200,988],{"class":910},[887,2202,821],{"class":896},[887,2204,955],{"class":910},[887,2206,2207],{"class":939}," &&",[887,2209,2022],{"class":951},[887,2211,1029],{"class":963},[887,2213,2105],{"class":951},[887,2215,1029],{"class":963},[887,2217,2218],{"class":951},"data",[887,2220,1029],{"class":963},[887,2222,2223],{"class":951},"channel",[887,2225,2198],{"class":939},[887,2227,988],{"class":910},[887,2229,2230],{"class":896},"pos",[887,2232,955],{"class":910},[887,2234,2148],{"class":972},[887,2236,1323],{"class":963},[887,2238,2239,2242,2245,2247,2249,2251,2253,2255,2257,2259],{"class":889,"line":1616},[887,2240,2241],{"class":931},"    const",[887,2243,2244],{"class":935}," reference",[887,2246,940],{"class":939},[887,2248,2022],{"class":951},[887,2250,1029],{"class":963},[887,2252,2105],{"class":951},[887,2254,1029],{"class":963},[887,2256,2218],{"class":951},[887,2258,1029],{"class":963},[887,2260,2261],{"class":951},"reference\n",[887,2263,2264,2266,2268,2270,2272,2274,2276,2278,2280,2282],{"class":889,"line":1623},[887,2265,2241],{"class":931},[887,2267,1822],{"class":935},[887,2269,940],{"class":939},[887,2271,2022],{"class":951},[887,2273,1029],{"class":963},[887,2275,2105],{"class":951},[887,2277,1029],{"class":963},[887,2279,2218],{"class":951},[887,2281,1029],{"class":963},[887,2283,2284],{"class":951},"status\n",[887,2286,2287],{"class":889,"line":1628},[887,2288,1013],{"emptyLinePlaceholder":1012},[887,2290,2291,2294,2296,2299,2301,2303,2305,2307,2309],{"class":889,"line":1648},[887,2292,2293],{"class":943},"    if",[887,2295,1992],{"class":972},[887,2297,2298],{"class":951},"status",[887,2300,2198],{"class":939},[887,2302,988],{"class":910},[887,2304,1867],{"class":896},[887,2306,955],{"class":910},[887,2308,2148],{"class":972},[887,2310,1323],{"class":963},[887,2312,2314,2317,2319,2321,2323,2325,2328,2330,2332,2334],{"class":889,"line":2313},23,[887,2315,2316],{"class":951},"      console",[887,2318,1029],{"class":963},[887,2320,1045],{"class":947},[887,2322,952],{"class":972},[887,2324,955],{"class":910},[887,2326,2327],{"class":896},"Terminal payment confirmed:",[887,2329,955],{"class":910},[887,2331,964],{"class":963},[887,2333,2244],{"class":951},[887,2335,1007],{"class":972},[887,2337,2339],{"class":889,"line":2338},24,[887,2340,2342],{"class":2341},"sCqSu","      \u002F\u002F mark the POS order as paid\n",[887,2344,2346],{"class":889,"line":2345},25,[887,2347,1354],{"class":963},[887,2349,2351],{"class":889,"line":2350},26,[887,2352,999],{"class":963},[887,2354,2356],{"class":889,"line":2355},27,[887,2357,1013],{"emptyLinePlaceholder":1012},[887,2359,2361,2364,2366,2368,2370,2372,2375],{"class":889,"line":2360},28,[887,2362,2363],{"class":943},"  return",[887,2365,2001],{"class":951},[887,2367,1029],{"class":963},[887,2369,2162],{"class":947},[887,2371,952],{"class":972},[887,2373,2374],{"class":2167},"200",[887,2376,1007],{"class":972},[887,2378,2380,2382],{"class":889,"line":2379},29,[887,2381,1004],{"class":963},[887,2383,1007],{"class":951},[793,2385,2386,2387,2389],{},"Process the webhook as your source of truth for fulfilment, receipts, and reconciliation. The pushed terminal event starts the payment. The ",[819,2388,821],{}," webhook confirms that money actually moved.",[824,2391,2393],{"id":2392},"what-you-built","What you built",[793,2395,2396],{},"You built a complete first Terminal flow that:",[832,2398,2399,2404,2410,2416,2421],{},[803,2400,2401,2402],{},"finds the right device with ",[819,2403,869],{},[803,2405,2406,2407],{},"confirms it is online with ",[819,2408,2409],{},"GET \u002Fterminal\u002F{terminal_id}",[803,2411,2412,2413],{},"pushes a payment request with ",[819,2414,2415],{},"POST \u002Fterminal\u002F{terminal_id}\u002Fevent",[803,2417,2418,2419],{},"monitors delivery with ",[819,2420,1673],{},[803,2422,2423,2424,2426,2427],{},"confirms payment with a ",[819,2425,821],{}," webhook where ",[819,2428,1888],{},[793,2430,2431],{},"Use this pattern whenever a cashier or operator needs to send a payment from your backend straight to a Paystack Terminal at checkout.",[2433,2434,2435],"style",{},"html pre.shiki code .s0zq4, html code.shiki .s0zq4{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#F69D50}html pre.shiki code .sOv1k, html code.shiki .sOv1k{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#96D0FF}html pre.shiki code .s8jVp, html code.shiki .s8jVp{--shiki-light:#90A4AE;--shiki-default:#005CC5;--shiki-dark:#F47067}html pre.shiki code .scI3H, html code.shiki .scI3H{--shiki-light:#91B859;--shiki-default:#005CC5;--shiki-dark:#6CB6FF}html pre.shiki code .sO3A-, html code.shiki .sO3A-{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#96D0FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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 .sAeZB, html code.shiki .sAeZB{--shiki-light:#9C3EDA;--shiki-default:#D73A49;--shiki-dark:#F47067}html pre.shiki code .s1fxI, html code.shiki .s1fxI{--shiki-light:#90A4AE;--shiki-default:#005CC5;--shiki-dark:#6CB6FF}html pre.shiki code .s6LNo, html code.shiki .s6LNo{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F47067}html pre.shiki code .sb9E3, html code.shiki .sb9E3{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F47067;--shiki-dark-font-style:inherit}html pre.shiki code .sENpr, html code.shiki .sENpr{--shiki-light:#6182B8;--shiki-default:#6F42C1;--shiki-dark:#DCBDFB}html pre.shiki code .swCDk, html code.shiki .swCDk{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#ADBAC7}html pre.shiki code .s7Vxm, html code.shiki .s7Vxm{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#ADBAC7}html pre.shiki code .sOnBC, html code.shiki .sOnBC{--shiki-light:#E53935;--shiki-default:#24292E;--shiki-dark:#ADBAC7}html pre.shiki code .sTNDG, html code.shiki .sTNDG{--shiki-light:#E53935;--shiki-default:#032F62;--shiki-dark:#96D0FF}html pre.shiki code .semhU, html code.shiki .semhU{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#E36209;--shiki-default-font-style:inherit;--shiki-dark:#F69D50;--shiki-dark-font-style:inherit}html pre.shiki code .sCI7e, html code.shiki .sCI7e{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#6CB6FF}html pre.shiki code .sCqSu, html code.shiki .sCqSu{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#768390;--shiki-dark-font-style:inherit}",{"title":877,"searchDepth":66,"depth":66,"links":2437},[2438,2439,2440,2441,2442,2443,2444],{"id":826,"depth":66,"text":827},{"id":862,"depth":66,"text":863},{"id":1057,"depth":66,"text":1058},{"id":1228,"depth":66,"text":1229},{"id":1667,"depth":66,"text":1668},{"id":1878,"depth":66,"text":1879},{"id":2392,"depth":66,"text":2393},"Push a payment request to a Paystack Terminal device and handle the resulting charge — end to end.","md",{},{"order":63},{"title":593,"description":2445},"tutorial","JOpHUGtHa_Eai8rA4u2WJXUGHFzqKEiEyO5vqYRT6nA",1794998085770]