[{"data":1,"prerenderedAt":5937},["ShallowReactive",2],{"docs-navigation":3,"page-\u002Fgh\u002Fdeveloper-tools\u002Finline-js":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":194,"body":789,"description":5931,"extension":5932,"markets":18,"meta":5933,"navigation":5934,"path":195,"seo":5935,"stem":196,"type":1269,"whats_next":18,"__hash__":5936},"content\u002Fdeveloper-tools\u002F2.inline-js.md",{"type":790,"value":791,"toc":5898},"minimark",[792,797,801,809,813,816,819,835,843,847,863,954,962,1054,1058,1068,1107,1121,1125,1130,1135,1138,1199,1242,1246,1249,1334,1364,1368,1383,1505,1509,1512,1555,1559,1562,1618,1622,1625,1638,1641,1847,1851,1854,1860,1863,1866,2138,2141,2144,2388,2392,2395,2410,2413,2419,2477,2482,2547,2551,2637,2642,2761,2792,2858,2862,2866,2878,3958,3967,3974,3977,3983,4012,4047,4052,4056,4067,4327,4330,4401,4405,4408,4418,4679,4708,4715,4718,4841,4844,4847,4917,5177,5183,5195,5456,5502,5508,5512,5515,5518,5521,5524,5557,5560,5564,5571,5574,5603,5894],[793,794,796],"h2",{"id":795},"introduction","Introduction",[798,799,800],"p",{},"InlineJS is Paystack’s Javascript library that offers a simple, secure, and convenient payment flow for web applications. It provides methods for initiating different types of payments e.g one time, recurring, split etc. and handle payment state, all with a few lines of code.",[798,802,803,804,808],{},"For a step-by-step guide to opening Paystack Popup with InlineJS, see ",[805,806,807],"a",{"href":501},"Popup",".",[793,810,812],{"id":811},"browser-support","Browser support",[798,814,815],{},"Paystack InlineJS is designed to support all recent versions of major browsers. The library is compiled to ES5 and polyfilled to ensure it can work on as many devices as possible.",[798,817,818],{},"We don't support outdated browsers like IE9 nor browsers that disable the use of Javascript, like Opera mini.",[820,821,822,826,829,832],"ul",{},[823,824,825],"li",{},"We require TLS 1.2 to be supported by the browser",[823,827,828],{},"We support Chrome and Safari on all platforms",[823,830,831],{},"We support Firefox on desktop platforms",[823,833,834],{},"We support the Android native browser on Android 4.4 and later",[836,837,840],"callout",{"title":838,"type":839},"Opera Mini support","warning",[798,841,842],{},"We don't support Opera Mini because Javascript is disabled in it. However, we support the Opera browser, except in super saver mode where JavaScript is disabled as well.",[793,844,846],{"id":845},"installation","Installation",[798,848,849,850,854,855,858,859,862],{},"Paystack InlineJS can be included in your app via ",[851,852,853],"code",{},"CDN",", ",[851,856,857],{},"NPM"," or ",[851,860,861],{},"Yarn",":",[864,865,867,916,937],"code-tabs",{":labels":866},"{\"cdn\":\"CDN\",\"npm\":\"NPM\",\"yarn\":\"Yarn\"}",[868,869,871],"template",{"v-slot:cdn":870},"",[872,873,877],"pre",{"className":874,"code":875,"language":876,"meta":870,"style":870},"language-html shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","\u003Cscript src=\"https:\u002F\u002Fjs.paystack.co\u002Fv2\u002Finline.js\">\u003C\u002Fscript>\n","html",[851,878,879],{"__ignoreMap":870},[880,881,883,887,891,895,898,902,906,908,911,913],"span",{"class":882,"line":63},"line",[880,884,886],{"class":885},"s7Vxm","\u003C",[880,888,890],{"class":889},"sUhM6","script",[880,892,894],{"class":893},"sWyFr"," src",[880,896,897],{"class":885},"=",[880,899,901],{"class":900},"sO3A-","\"",[880,903,905],{"class":904},"sOv1k","https:\u002F\u002Fjs.paystack.co\u002Fv2\u002Finline.js",[880,907,901],{"class":900},[880,909,910],{"class":885},">\u003C\u002F",[880,912,890],{"class":889},[880,914,915],{"class":885},">\n",[868,917,918],{"v-slot:npm":870},[872,919,923],{"className":920,"code":921,"language":922,"meta":870,"style":870},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","npm i @paystack\u002Finline-js\n","bash",[851,924,925],{"__ignoreMap":870},[880,926,927,931,934],{"class":882,"line":63},[880,928,930],{"class":929},"s0zq4","npm",[880,932,933],{"class":904}," i",[880,935,936],{"class":904}," @paystack\u002Finline-js\n",[868,938,939],{"v-slot:yarn":870},[872,940,942],{"className":920,"code":941,"language":922,"meta":870,"style":870},"yarn add @paystack\u002Finline-js\n",[851,943,944],{"__ignoreMap":870},[880,945,946,949,952],{"class":882,"line":63},[880,947,948],{"class":929},"yarn",[880,950,951],{"class":904}," add",[880,953,936],{"class":904},[798,955,956,957,858,959,961],{},"If you used ",[851,958,857],{},[851,960,861],{},", ensure you import the library as shown below:",[864,963,965,1002],{":labels":964},"{\"cdn\":\"CDN\",\"npm\":\"NPM\"}",[868,966,967],{"v-slot:cdn":870},[872,968,972],{"className":969,"code":970,"language":971,"meta":870,"style":870},"language-javascript shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","const popup = new PaystackPop();\n","javascript",[851,973,974],{"__ignoreMap":870},[880,975,976,980,984,988,991,995,999],{"class":882,"line":63},[880,977,979],{"class":978},"sAeZB","const",[880,981,983],{"class":982},"s1fxI"," popup",[880,985,987],{"class":986},"s6LNo"," =",[880,989,990],{"class":986}," new",[880,992,994],{"class":993},"sENpr"," PaystackPop",[880,996,998],{"class":997},"swCDk","()",[880,1000,1001],{"class":885},";\n",[868,1003,1004],{"v-slot:npm":870},[872,1005,1007],{"className":969,"code":1006,"language":971,"meta":870,"style":870},"import Paystack from '@paystack\u002Finline-js';\n\nconst popup = new Paystack()\n",[851,1008,1009,1032,1038],{"__ignoreMap":870},[880,1010,1011,1015,1018,1021,1024,1027,1030],{"class":882,"line":63},[880,1012,1014],{"class":1013},"sb9E3","import",[880,1016,1017],{"class":997}," Paystack ",[880,1019,1020],{"class":1013},"from",[880,1022,1023],{"class":900}," '",[880,1025,1026],{"class":904},"@paystack\u002Finline-js",[880,1028,1029],{"class":900},"'",[880,1031,1001],{"class":885},[880,1033,1034],{"class":882,"line":66},[880,1035,1037],{"emptyLinePlaceholder":1036},true,"\n",[880,1039,1040,1042,1044,1046,1048,1051],{"class":882,"line":84},[880,1041,979],{"class":978},[880,1043,983],{"class":982},[880,1045,987],{"class":986},[880,1047,990],{"class":986},[880,1049,1050],{"class":993}," Paystack",[880,1052,1053],{"class":997},"()\n",[793,1055,1057],{"id":1056},"paystack-object","Paystack object",[798,1059,1060,1061,1064,1065,1067],{},"The ",[851,1062,1063],{},"Paystack"," object gives access to the methods and interfaces available in InlineJS. It exposes methods, alongside configuration options that can help you accept payment seamlessly in your web app. The methods exposed by the ",[851,1066,1063],{}," object include:",[1069,1070,1071,1077,1083,1089,1095,1101],"ol",{},[823,1072,1073,1076],{},[851,1074,1075],{},"checkout(options)",": This is an asynchronous method used to create a transaction.",[823,1078,1079,1082],{},[851,1080,1081],{},"newTransaction(options)",": This is a synchronous method used to create a transaction.",[823,1084,1085,1088],{},[851,1086,1087],{},"resumeTransaction(accessCode)",": With this method, you can initiate a transaction from your backend using the initialize endpoint, then complete the transaction in the frontend without redirecting.",[823,1090,1091,1094],{},[851,1092,1093],{},"cancelTransaction(id)",": Sometimes, it might take a while to load a transaction. In such a situation, this method can be used to cancel the transaction.",[823,1096,1097,1100],{},[851,1098,1099],{},"preloadTransaction(options)",": This method is used to load a transaction in the background such that when the user is about to checkout, the Popup loads instantly.",[823,1102,1103,1106],{},[851,1104,1105],{},"paymentRequest(options)",": This is best suited for handling a custom user experience when your users can make a payment from their wallet (for example Apple Pay or Google Pay)",[836,1108,1111],{"title":1109,"type":1110},"Wallet support","info",[798,1112,1113,1116,1117,1120],{},[851,1114,1115],{},"paymentRequest()"," supports Apple Pay, and Google Pay for businesses in South Africa. Both wallets are also available in the card section of Checkout through ",[851,1118,1119],{},"checkout()",", with no extra work on your part.",[793,1122,1124],{"id":1123},"callbacks","Callbacks",[798,1126,1060,1127,1129],{},[851,1128,1063],{}," object also exposes callbacks that can be used to monitor certain states during the lifecycle of a transaction.",[1131,1132,1134],"h3",{"id":1133},"onload","onLoad",[798,1136,1137],{},"This is called when the transaction is successfully loaded and the customer can see the Popup. It returns an object with the following parameters:",[1139,1140,1141,1157],"table",{},[1142,1143,1144],"thead",{},[1145,1146,1147,1151,1154],"tr",{},[1148,1149,1150],"th",{},"Option",[1148,1152,1153],{},"Type",[1148,1155,1156],{},"Description",[1158,1159,1160,1174,1186],"tbody",{},[1145,1161,1162,1168,1171],{},[1163,1164,1165],"td",{},[851,1166,1167],{},"id",[1163,1169,1170],{},"String",[1163,1172,1173],{},"This is the transaction id",[1145,1175,1176,1181,1183],{},[1163,1177,1178],{},[851,1179,1180],{},"accessCode",[1163,1182,1170],{},[1163,1184,1185],{},"This is a unique payment code used for creating the payment link and loading the Popup",[1145,1187,1188,1193,1196],{},[1163,1189,1190],{},[851,1191,1192],{},"customer",[1163,1194,1195],{},"Object",[1163,1197,1198],{},"The details of the customer making the payment",[872,1200,1202],{"className":969,"code":1201,"language":971,"meta":870,"style":870},"onLoad: (response) => {\n  \u002F\u002F Transaction has loaded\n  \u002F\u002F You can parse the transaction object if you need to.\n}\n",[851,1203,1204,1226,1232,1237],{"__ignoreMap":870},[880,1205,1206,1208,1210,1213,1217,1220,1223],{"class":882,"line":63},[880,1207,1134],{"class":929},[880,1209,862],{"class":885},[880,1211,1212],{"class":885}," (",[880,1214,1216],{"class":1215},"semhU","response",[880,1218,1219],{"class":885},")",[880,1221,1222],{"class":978}," =>",[880,1224,1225],{"class":885}," {\n",[880,1227,1228],{"class":882,"line":66},[880,1229,1231],{"class":1230},"sCqSu","  \u002F\u002F Transaction has loaded\n",[880,1233,1234],{"class":882,"line":84},[880,1235,1236],{"class":1230},"  \u002F\u002F You can parse the transaction object if you need to.\n",[880,1238,1239],{"class":882,"line":75},[880,1240,1241],{"class":885},"}\n",[1131,1243,1245],{"id":1244},"onsuccess","onSuccess",[798,1247,1248],{},"This is called when the customer successfully completes a transaction. It returns an instance of a transaction object:",[1139,1250,1251,1261],{},[1142,1252,1253],{},[1145,1254,1255,1257,1259],{},[1148,1256,1150],{},[1148,1258,1153],{},[1148,1260,1156],{},[1158,1262,1263,1275,1287,1299,1311,1322],{},[1145,1264,1265,1270,1272],{},[1163,1266,1267],{},[851,1268,1269],{},"reference",[1163,1271,1170],{},[1163,1273,1274],{},"This is the unique payment reference that can be used for reconciliation",[1145,1276,1277,1282,1284],{},[1163,1278,1279],{},[851,1280,1281],{},"trans",[1163,1283,1170],{},[1163,1285,1286],{},"This is the transaction id (for backward compatibility)",[1145,1288,1289,1294,1296],{},[1163,1290,1291],{},[851,1292,1293],{},"status",[1163,1295,1170],{},[1163,1297,1298],{},"The final state of the transaction",[1145,1300,1301,1306,1308],{},[1163,1302,1303],{},[851,1304,1305],{},"message",[1163,1307,1170],{},[1163,1309,1310],{},"Complimentary note of the transaction status",[1145,1312,1313,1318,1320],{},[1163,1314,1315],{},[851,1316,1317],{},"transaction",[1163,1319,1170],{},[1163,1321,1173],{},[1145,1323,1324,1329,1331],{},[1163,1325,1326],{},[851,1327,1328],{},"trxref",[1163,1330,1170],{},[1163,1332,1333],{},"This is the unique payment reference that can be used for reconciliation (for backward compatibility)",[872,1335,1337],{"className":969,"code":1336,"language":971,"meta":870,"style":870},"onSuccess: (transaction) => {\n  \u002F\u002F Post payment flow can go here\n}\n",[851,1338,1339,1355,1360],{"__ignoreMap":870},[880,1340,1341,1343,1345,1347,1349,1351,1353],{"class":882,"line":63},[880,1342,1245],{"class":929},[880,1344,862],{"class":885},[880,1346,1212],{"class":885},[880,1348,1317],{"class":1215},[880,1350,1219],{"class":885},[880,1352,1222],{"class":978},[880,1354,1225],{"class":885},[880,1356,1357],{"class":882,"line":66},[880,1358,1359],{"class":1230},"  \u002F\u002F Post payment flow can go here\n",[880,1361,1362],{"class":882,"line":84},[880,1363,1241],{"class":885},[1131,1365,1367],{"id":1366},"onelementsmount","onElementsMount",[798,1369,1370,1371,1374,1375,1378,1379,1382],{},"This is called once mounting has finished for every wallet. It returns an object reporting each wallet, ",[851,1372,1373],{},"{ applePay: Boolean, googlePay: Boolean }",", or ",[851,1376,1377],{},"null"," when mounting failed. A wallet reports ",[851,1380,1381],{},"false"," when the customer's device or browser can't pay with it.",[872,1384,1386],{"className":969,"code":1385,"language":971,"meta":870,"style":870},"onElementsMount: (elements) => { \u002F\u002F { applePay: Boolean, googlePay: Boolean } or null\n  if (elements) {\n    console.log(\"Successfully mounted elements: \", JSON.stringify(elements));\n  } else {\n    console.log('Could not load elements');\n  }\n}\n",[851,1387,1388,1409,1425,1465,1475,1496,1501],{"__ignoreMap":870},[880,1389,1390,1392,1394,1396,1399,1401,1403,1406],{"class":882,"line":63},[880,1391,1367],{"class":929},[880,1393,862],{"class":885},[880,1395,1212],{"class":885},[880,1397,1398],{"class":1215},"elements",[880,1400,1219],{"class":885},[880,1402,1222],{"class":978},[880,1404,1405],{"class":885}," {",[880,1407,1408],{"class":1230}," \u002F\u002F { applePay: Boolean, googlePay: Boolean } or null\n",[880,1410,1411,1414,1417,1419,1422],{"class":882,"line":66},[880,1412,1413],{"class":1013},"  if",[880,1415,1212],{"class":1416},"sOnBC",[880,1418,1398],{"class":997},[880,1420,1421],{"class":1416},") ",[880,1423,1424],{"class":885},"{\n",[880,1426,1427,1430,1432,1435,1438,1440,1443,1445,1448,1451,1453,1456,1458,1460,1463],{"class":882,"line":84},[880,1428,1429],{"class":997},"    console",[880,1431,808],{"class":885},[880,1433,1434],{"class":993},"log",[880,1436,1437],{"class":1416},"(",[880,1439,901],{"class":900},[880,1441,1442],{"class":904},"Successfully mounted elements: ",[880,1444,901],{"class":900},[880,1446,1447],{"class":885},",",[880,1449,1450],{"class":982}," JSON",[880,1452,808],{"class":885},[880,1454,1455],{"class":993},"stringify",[880,1457,1437],{"class":1416},[880,1459,1398],{"class":997},[880,1461,1462],{"class":1416},"))",[880,1464,1001],{"class":885},[880,1466,1467,1470,1473],{"class":882,"line":75},[880,1468,1469],{"class":885},"  }",[880,1471,1472],{"class":1013}," else",[880,1474,1225],{"class":885},[880,1476,1477,1479,1481,1483,1485,1487,1490,1492,1494],{"class":882,"line":107},[880,1478,1429],{"class":997},[880,1480,808],{"class":885},[880,1482,1434],{"class":993},[880,1484,1437],{"class":1416},[880,1486,1029],{"class":900},[880,1488,1489],{"class":904},"Could not load elements",[880,1491,1029],{"class":900},[880,1493,1219],{"class":1416},[880,1495,1001],{"class":885},[880,1497,1498],{"class":882,"line":134},[880,1499,1500],{"class":885},"  }\n",[880,1502,1503],{"class":882,"line":153},[880,1504,1241],{"class":885},[1131,1506,1508],{"id":1507},"oncancel","onCancel",[798,1510,1511],{},"This is called when the transaction is cancelled. It returns no response.",[872,1513,1515],{"className":969,"code":1514,"language":971,"meta":870,"style":870},"onCancel: () => {\n  console.log(\"User cancelled\")\n}\n",[851,1516,1517,1530,1551],{"__ignoreMap":870},[880,1518,1519,1521,1523,1526,1528],{"class":882,"line":63},[880,1520,1508],{"class":929},[880,1522,862],{"class":885},[880,1524,1525],{"class":885}," ()",[880,1527,1222],{"class":978},[880,1529,1225],{"class":885},[880,1531,1532,1535,1537,1539,1541,1543,1546,1548],{"class":882,"line":66},[880,1533,1534],{"class":997},"  console",[880,1536,808],{"class":885},[880,1538,1434],{"class":993},[880,1540,1437],{"class":1416},[880,1542,901],{"class":900},[880,1544,1545],{"class":904},"User cancelled",[880,1547,901],{"class":900},[880,1549,1550],{"class":1416},")\n",[880,1552,1553],{"class":882,"line":84},[880,1554,1241],{"class":885},[1131,1556,1558],{"id":1557},"onerror","onError",[798,1560,1561],{},"This is called when there is an issue loading the transaction.",[872,1563,1565],{"className":969,"code":1564,"language":971,"meta":870,"style":870},"onError: (error) => {\n  console.log(\"Error: \", error.message);\n}\n",[851,1566,1567,1584,1614],{"__ignoreMap":870},[880,1568,1569,1571,1573,1575,1578,1580,1582],{"class":882,"line":63},[880,1570,1558],{"class":929},[880,1572,862],{"class":885},[880,1574,1212],{"class":885},[880,1576,1577],{"class":1215},"error",[880,1579,1219],{"class":885},[880,1581,1222],{"class":978},[880,1583,1225],{"class":885},[880,1585,1586,1588,1590,1592,1594,1596,1599,1601,1603,1606,1608,1610,1612],{"class":882,"line":66},[880,1587,1534],{"class":997},[880,1589,808],{"class":885},[880,1591,1434],{"class":993},[880,1593,1437],{"class":1416},[880,1595,901],{"class":900},[880,1597,1598],{"class":904},"Error: ",[880,1600,901],{"class":900},[880,1602,1447],{"class":885},[880,1604,1605],{"class":997}," error",[880,1607,808],{"class":885},[880,1609,1305],{"class":997},[880,1611,1219],{"class":1416},[880,1613,1001],{"class":885},[880,1615,1616],{"class":882,"line":84},[880,1617,1241],{"class":885},[793,1619,1621],{"id":1620},"transaction-request","Transaction request",[798,1623,1624],{},"With Paystack, a transaction can be initiated for different scenarios such as:",[820,1626,1627,1630,1633,1636],{},[823,1628,1629],{},"One-time payment",[823,1631,1632],{},"Split payment",[823,1634,1635],{},"Multi-split payment",[823,1637,566],{},[798,1639,1640],{},"InlineJS provide parameters and methods to to create the different types of transaction. The table below shows the general options that be used when creating a transaction:",[1139,1642,1643,1656],{},[1142,1644,1645],{},[1145,1646,1647,1649,1651,1654],{},[1148,1648,1150],{},[1148,1650,1153],{},[1148,1652,1653],{},"Required",[1148,1655,1156],{},[1158,1657,1658,1681,1696,1710,1730,1744,1758,1772,1786,1812,1826],{},[1145,1659,1660,1665,1667,1670],{},[1163,1661,1662],{},[851,1663,1664],{},"key",[1163,1666,1170],{},[1163,1668,1669],{},"True",[1163,1671,1672,1673,1680],{},"Your public key, from ",[805,1674,1679],{"href":1675,"rel":1676,"target":1678},"https:\u002F\u002Fdashboard.paystack.com\u002Fv2\u002Fdevelopers\u002Fapi-configuration",[1677],"nofollow","_blank","Developers → API configuration"," on your Paystack Dashboard",[1145,1682,1683,1688,1691,1693],{},[1163,1684,1685],{},[851,1686,1687],{},"amount",[1163,1689,1690],{},"Number",[1163,1692,1669],{},[1163,1694,1695],{},"The amount of the transaction in the lowest denomination of your currency",[1145,1697,1698,1703,1705,1707],{},[1163,1699,1700],{},[851,1701,1702],{},"email",[1163,1704,1170],{},[1163,1706,1669],{},[1163,1708,1709],{},"The customer's email address",[1145,1711,1712,1717,1719,1722],{},[1163,1713,1714],{},[851,1715,1716],{},"currency",[1163,1718,1170],{},[1163,1720,1721],{},"False",[1163,1723,1724,1725],{},"The currency of the transaction, such as ",[1726,1727],"localized-value",{"page-key":1728,"path":1729},"markets","currency_code",[1145,1731,1732,1737,1739,1741],{},[1163,1733,1734],{},[851,1735,1736],{},"firstName",[1163,1738,1170],{},[1163,1740,1721],{},[1163,1742,1743],{},"The customer's first name",[1145,1745,1746,1751,1753,1755],{},[1163,1747,1748],{},[851,1749,1750],{},"lastName",[1163,1752,1170],{},[1163,1754,1721],{},[1163,1756,1757],{},"The customer's last name",[1145,1759,1760,1765,1767,1769],{},[1163,1761,1762],{},[851,1763,1764],{},"phone",[1163,1766,1170],{},[1163,1768,1721],{},[1163,1770,1771],{},"The customer's phone number",[1145,1773,1774,1779,1781,1783],{},[1163,1775,1776],{},[851,1777,1778],{},"customerCode",[1163,1780,1170],{},[1163,1782,1721],{},[1163,1784,1785],{},"A valid Paystack customer code. If provided, this overrides all the customer information above",[1145,1787,1788,1793,1796,1798],{},[1163,1789,1790],{},[851,1791,1792],{},"channels",[1163,1794,1795],{},"Array",[1163,1797,1721],{},[1163,1799,1800,1801,1804,1805,1808,1809],{},"An array of payment channels to use. Available channels are ",[851,1802,1803],{},"['card', 'bank', 'ussd', 'qr', 'eft', 'mobile_money', 'bank_transfer', 'apple_pay', 'google_pay']",". ",[851,1806,1807],{},"google_pay"," is for businesses in South Africa and must be passed alongside ",[851,1810,1811],{},"card",[1145,1813,1814,1819,1821,1823],{},[1163,1815,1816],{},[851,1817,1818],{},"metadata",[1163,1820,1195],{},[1163,1822,1721],{},[1163,1824,1825],{},"A valid object of extra information that you want to be saved to the transaction.",[1145,1827,1828,1832,1834,1836],{},[1163,1829,1830],{},[851,1831,1269],{},[1163,1833,1170],{},[1163,1835,1721],{},[1163,1837,1838,1839,854,1842,854,1844,1846],{},"Unique case sensitive transaction reference. Only ",[851,1840,1841],{},"-",[851,1843,808],{},[851,1845,897],{}," and alphanumeric characters allowed.",[793,1848,1850],{"id":1849},"one-time-transaction","One-time transaction",[798,1852,1853],{},"The most basic way to use InlineJS is to accept payment for a one-off transaction. Generally, the payment is non-recurring and requires no special configuration. We provide two methods to accept one-time payments:",[1069,1855,1856,1858],{},[823,1857,1081],{},[823,1859,1075],{},[1131,1861,1081],{"id":1862},"newtransactionoptions",[798,1864,1865],{},"This is a synchronous method used to create a transaction. It’s best suited for cases where using an asynchronous flow isn’t necessary. It takes all the general transaction request options and can be used as shown below:",[872,1867,1869],{"className":969,"code":1868,"language":971,"meta":870,"style":870},"const popup = new Paystack()\n\npopup.newTransaction({\n  key: 'pk_domain_xxxxxx',\n  email: 'sample@email.com',\n  amount: 23400,\n  onSuccess: (transaction) => {\n    console.log(transaction);\n  },\n  onLoad: (response) => {\n    console.log(\"onLoad: \", response);\n  },\n  onCancel: () => {\n    console.log(\"onCancel\");\n  },\n  onError: (error) => {\n    console.log(\"Error: \", error.message);\n  }\n})\n",[851,1870,1871,1885,1889,1903,1920,1936,1949,1966,1982,1988,2006,2033,2038,2052,2073,2078,2096,2125,2130],{"__ignoreMap":870},[880,1872,1873,1875,1877,1879,1881,1883],{"class":882,"line":63},[880,1874,979],{"class":978},[880,1876,983],{"class":982},[880,1878,987],{"class":986},[880,1880,990],{"class":986},[880,1882,1050],{"class":993},[880,1884,1053],{"class":997},[880,1886,1887],{"class":882,"line":66},[880,1888,1037],{"emptyLinePlaceholder":1036},[880,1890,1891,1894,1896,1899,1901],{"class":882,"line":84},[880,1892,1893],{"class":997},"popup",[880,1895,808],{"class":885},[880,1897,1898],{"class":993},"newTransaction",[880,1900,1437],{"class":997},[880,1902,1424],{"class":885},[880,1904,1905,1908,1910,1912,1915,1917],{"class":882,"line":75},[880,1906,1907],{"class":1416},"  key",[880,1909,862],{"class":885},[880,1911,1023],{"class":900},[880,1913,1914],{"class":904},"pk_domain_xxxxxx",[880,1916,1029],{"class":900},[880,1918,1919],{"class":885},",\n",[880,1921,1922,1925,1927,1929,1932,1934],{"class":882,"line":107},[880,1923,1924],{"class":1416},"  email",[880,1926,862],{"class":885},[880,1928,1023],{"class":900},[880,1930,1931],{"class":904},"sample@email.com",[880,1933,1029],{"class":900},[880,1935,1919],{"class":885},[880,1937,1938,1941,1943,1947],{"class":882,"line":134},[880,1939,1940],{"class":1416},"  amount",[880,1942,862],{"class":885},[880,1944,1946],{"class":1945},"sCI7e"," 23400",[880,1948,1919],{"class":885},[880,1950,1951,1954,1956,1958,1960,1962,1964],{"class":882,"line":153},[880,1952,1953],{"class":993},"  onSuccess",[880,1955,862],{"class":885},[880,1957,1212],{"class":885},[880,1959,1317],{"class":1215},[880,1961,1219],{"class":885},[880,1963,1222],{"class":978},[880,1965,1225],{"class":885},[880,1967,1968,1970,1972,1974,1976,1978,1980],{"class":882,"line":422},[880,1969,1429],{"class":997},[880,1971,808],{"class":885},[880,1973,1434],{"class":993},[880,1975,1437],{"class":1416},[880,1977,1317],{"class":997},[880,1979,1219],{"class":1416},[880,1981,1001],{"class":885},[880,1983,1985],{"class":882,"line":1984},9,[880,1986,1987],{"class":885},"  },\n",[880,1989,1991,1994,1996,1998,2000,2002,2004],{"class":882,"line":1990},10,[880,1992,1993],{"class":993},"  onLoad",[880,1995,862],{"class":885},[880,1997,1212],{"class":885},[880,1999,1216],{"class":1215},[880,2001,1219],{"class":885},[880,2003,1222],{"class":978},[880,2005,1225],{"class":885},[880,2007,2009,2011,2013,2015,2017,2019,2022,2024,2026,2029,2031],{"class":882,"line":2008},11,[880,2010,1429],{"class":997},[880,2012,808],{"class":885},[880,2014,1434],{"class":993},[880,2016,1437],{"class":1416},[880,2018,901],{"class":900},[880,2020,2021],{"class":904},"onLoad: ",[880,2023,901],{"class":900},[880,2025,1447],{"class":885},[880,2027,2028],{"class":997}," response",[880,2030,1219],{"class":1416},[880,2032,1001],{"class":885},[880,2034,2036],{"class":882,"line":2035},12,[880,2037,1987],{"class":885},[880,2039,2041,2044,2046,2048,2050],{"class":882,"line":2040},13,[880,2042,2043],{"class":993},"  onCancel",[880,2045,862],{"class":885},[880,2047,1525],{"class":885},[880,2049,1222],{"class":978},[880,2051,1225],{"class":885},[880,2053,2055,2057,2059,2061,2063,2065,2067,2069,2071],{"class":882,"line":2054},14,[880,2056,1429],{"class":997},[880,2058,808],{"class":885},[880,2060,1434],{"class":993},[880,2062,1437],{"class":1416},[880,2064,901],{"class":900},[880,2066,1508],{"class":904},[880,2068,901],{"class":900},[880,2070,1219],{"class":1416},[880,2072,1001],{"class":885},[880,2074,2076],{"class":882,"line":2075},15,[880,2077,1987],{"class":885},[880,2079,2081,2084,2086,2088,2090,2092,2094],{"class":882,"line":2080},16,[880,2082,2083],{"class":993},"  onError",[880,2085,862],{"class":885},[880,2087,1212],{"class":885},[880,2089,1577],{"class":1215},[880,2091,1219],{"class":885},[880,2093,1222],{"class":978},[880,2095,1225],{"class":885},[880,2097,2099,2101,2103,2105,2107,2109,2111,2113,2115,2117,2119,2121,2123],{"class":882,"line":2098},17,[880,2100,1429],{"class":997},[880,2102,808],{"class":885},[880,2104,1434],{"class":993},[880,2106,1437],{"class":1416},[880,2108,901],{"class":900},[880,2110,1598],{"class":904},[880,2112,901],{"class":900},[880,2114,1447],{"class":885},[880,2116,1605],{"class":997},[880,2118,808],{"class":885},[880,2120,1305],{"class":997},[880,2122,1219],{"class":1416},[880,2124,1001],{"class":885},[880,2126,2128],{"class":882,"line":2127},18,[880,2129,1500],{"class":885},[880,2131,2133,2136],{"class":882,"line":2132},19,[880,2134,2135],{"class":885},"}",[880,2137,1550],{"class":997},[1131,2139,1075],{"id":2140},"checkoutoptions",[798,2142,2143],{},"Similar to its counterpart but for an asynchronous flow. It takes all the general transaction request options and can be used as shown below:",[872,2145,2147],{"className":969,"code":2146,"language":971,"meta":870,"style":870},"const popup = new Paystack()\n\npopup.checkout({\n  key: 'pk_domain_xxxxxx',\n  email: 'sample@email.com',\n  amount: 23400,\n  onSuccess: (transaction) => {\n    console.log(transaction);\n  },\n  onLoad: (response) => {\n    console.log(\"onLoad: \", response);\n  },\n  onCancel: () => {\n    console.log(\"onCancel\");\n  },\n  onError: (error) => {\n    console.log(\"Error: \", error.message);\n  }\n})\n",[851,2148,2149,2163,2167,2180,2194,2208,2218,2234,2250,2254,2270,2294,2298,2310,2330,2334,2350,2378,2382],{"__ignoreMap":870},[880,2150,2151,2153,2155,2157,2159,2161],{"class":882,"line":63},[880,2152,979],{"class":978},[880,2154,983],{"class":982},[880,2156,987],{"class":986},[880,2158,990],{"class":986},[880,2160,1050],{"class":993},[880,2162,1053],{"class":997},[880,2164,2165],{"class":882,"line":66},[880,2166,1037],{"emptyLinePlaceholder":1036},[880,2168,2169,2171,2173,2176,2178],{"class":882,"line":84},[880,2170,1893],{"class":997},[880,2172,808],{"class":885},[880,2174,2175],{"class":993},"checkout",[880,2177,1437],{"class":997},[880,2179,1424],{"class":885},[880,2181,2182,2184,2186,2188,2190,2192],{"class":882,"line":75},[880,2183,1907],{"class":1416},[880,2185,862],{"class":885},[880,2187,1023],{"class":900},[880,2189,1914],{"class":904},[880,2191,1029],{"class":900},[880,2193,1919],{"class":885},[880,2195,2196,2198,2200,2202,2204,2206],{"class":882,"line":107},[880,2197,1924],{"class":1416},[880,2199,862],{"class":885},[880,2201,1023],{"class":900},[880,2203,1931],{"class":904},[880,2205,1029],{"class":900},[880,2207,1919],{"class":885},[880,2209,2210,2212,2214,2216],{"class":882,"line":134},[880,2211,1940],{"class":1416},[880,2213,862],{"class":885},[880,2215,1946],{"class":1945},[880,2217,1919],{"class":885},[880,2219,2220,2222,2224,2226,2228,2230,2232],{"class":882,"line":153},[880,2221,1953],{"class":993},[880,2223,862],{"class":885},[880,2225,1212],{"class":885},[880,2227,1317],{"class":1215},[880,2229,1219],{"class":885},[880,2231,1222],{"class":978},[880,2233,1225],{"class":885},[880,2235,2236,2238,2240,2242,2244,2246,2248],{"class":882,"line":422},[880,2237,1429],{"class":997},[880,2239,808],{"class":885},[880,2241,1434],{"class":993},[880,2243,1437],{"class":1416},[880,2245,1317],{"class":997},[880,2247,1219],{"class":1416},[880,2249,1001],{"class":885},[880,2251,2252],{"class":882,"line":1984},[880,2253,1987],{"class":885},[880,2255,2256,2258,2260,2262,2264,2266,2268],{"class":882,"line":1990},[880,2257,1993],{"class":993},[880,2259,862],{"class":885},[880,2261,1212],{"class":885},[880,2263,1216],{"class":1215},[880,2265,1219],{"class":885},[880,2267,1222],{"class":978},[880,2269,1225],{"class":885},[880,2271,2272,2274,2276,2278,2280,2282,2284,2286,2288,2290,2292],{"class":882,"line":2008},[880,2273,1429],{"class":997},[880,2275,808],{"class":885},[880,2277,1434],{"class":993},[880,2279,1437],{"class":1416},[880,2281,901],{"class":900},[880,2283,2021],{"class":904},[880,2285,901],{"class":900},[880,2287,1447],{"class":885},[880,2289,2028],{"class":997},[880,2291,1219],{"class":1416},[880,2293,1001],{"class":885},[880,2295,2296],{"class":882,"line":2035},[880,2297,1987],{"class":885},[880,2299,2300,2302,2304,2306,2308],{"class":882,"line":2040},[880,2301,2043],{"class":993},[880,2303,862],{"class":885},[880,2305,1525],{"class":885},[880,2307,1222],{"class":978},[880,2309,1225],{"class":885},[880,2311,2312,2314,2316,2318,2320,2322,2324,2326,2328],{"class":882,"line":2054},[880,2313,1429],{"class":997},[880,2315,808],{"class":885},[880,2317,1434],{"class":993},[880,2319,1437],{"class":1416},[880,2321,901],{"class":900},[880,2323,1508],{"class":904},[880,2325,901],{"class":900},[880,2327,1219],{"class":1416},[880,2329,1001],{"class":885},[880,2331,2332],{"class":882,"line":2075},[880,2333,1987],{"class":885},[880,2335,2336,2338,2340,2342,2344,2346,2348],{"class":882,"line":2080},[880,2337,2083],{"class":993},[880,2339,862],{"class":885},[880,2341,1212],{"class":885},[880,2343,1577],{"class":1215},[880,2345,1219],{"class":885},[880,2347,1222],{"class":978},[880,2349,1225],{"class":885},[880,2351,2352,2354,2356,2358,2360,2362,2364,2366,2368,2370,2372,2374,2376],{"class":882,"line":2098},[880,2353,1429],{"class":997},[880,2355,808],{"class":885},[880,2357,1434],{"class":993},[880,2359,1437],{"class":1416},[880,2361,901],{"class":900},[880,2363,1598],{"class":904},[880,2365,901],{"class":900},[880,2367,1447],{"class":885},[880,2369,1605],{"class":997},[880,2371,808],{"class":885},[880,2373,1305],{"class":997},[880,2375,1219],{"class":1416},[880,2377,1001],{"class":885},[880,2379,2380],{"class":882,"line":2127},[880,2381,1500],{"class":885},[880,2383,2384,2386],{"class":882,"line":2132},[880,2385,2135],{"class":885},[880,2387,1550],{"class":997},[793,2389,2391],{"id":2390},"payment-request","Payment request",[798,2393,2394],{},"Payment requests are used for handling wallet payments such as Apple Pay and Google Pay. It's used to create a custom experience by making the wallet option more prominent on your website. For example, you can have the wallet buttons and another button to load the checkout.",[798,2396,2397,2398,2400,2401,2403,2404,2406,2407,2409],{},"Both wallets mount into the same container, and each one is offered only where a charge could succeed. Use the ",[851,2399,1792],{}," option to control which wallets a transaction offers. Google Pay is available to businesses in South Africa. It needs ",[851,2402,1807],{}," passed alongside ",[851,2405,1811],{},", and your Google Pay merchant details saved on the Dashboard. See ",[805,2408,767],{"href":768}," for the full setup.",[1131,2411,1105],{"id":2412},"paymentrequestoptions",[798,2414,1060,2415,2418],{},[851,2416,2417],{},"paymentRequest"," method the following options in addition to the general option:",[1139,2420,2421,2433],{},[1142,2422,2423],{},[1145,2424,2425,2427,2429,2431],{},[1148,2426,1150],{},[1148,2428,1153],{},[1148,2430,1653],{},[1148,2432,1156],{},[1158,2434,2435,2449,2463],{},[1145,2436,2437,2442,2444,2446],{},[1163,2438,2439],{},[851,2440,2441],{},"container",[1163,2443,1170],{},[1163,2445,1669],{},[1163,2447,2448],{},"ID of div to mount the payment request button",[1145,2450,2451,2456,2458,2460],{},[1163,2452,2453],{},[851,2454,2455],{},"loadPaystackCheckoutButton",[1163,2457,1170],{},[1163,2459,1721],{},[1163,2461,2462],{},"ID of button to open checkout form",[1145,2464,2465,2470,2472,2474],{},[1163,2466,2467],{},[851,2468,2469],{},"styles",[1163,2471,1195],{},[1163,2473,1721],{},[1163,2475,2476],{},"CSS style for the wallet button",[798,2478,1060,2479,2481],{},[851,2480,2469],{}," object takes the following options:",[1139,2483,2484,2496],{},[1142,2485,2486],{},[1145,2487,2488,2490,2492,2494],{},[1148,2489,1150],{},[1148,2491,1153],{},[1148,2493,1653],{},[1148,2495,1156],{},[1158,2497,2498,2519,2533],{},[1145,2499,2500,2505,2507,2509],{},[1163,2501,2502],{},[851,2503,2504],{},"theme",[1163,2506,1170],{},[1163,2508,1721],{},[1163,2510,2511,2512,2515,2516],{},"Option to customize the button background and text color. Available options are ",[851,2513,2514],{},"dark"," | ",[851,2517,2518],{},"light",[1145,2520,2521,2526,2528,2530],{},[1163,2522,2523],{},[851,2524,2525],{},"applePay",[1163,2527,1195],{},[1163,2529,1721],{},[1163,2531,2532],{},"Styles for the Apple Pay button",[1145,2534,2535,2540,2542,2544],{},[1163,2536,2537],{},[851,2538,2539],{},"googlePay",[1163,2541,1195],{},[1163,2543,1721],{},[1163,2545,2546],{},"Styles for the Google Pay button. South Africa only",[798,2548,1060,2549,2481],{},[851,2550,2525],{},[1139,2552,2553,2565],{},[1142,2554,2555],{},[1145,2556,2557,2559,2561,2563],{},[1148,2558,1150],{},[1148,2560,1153],{},[1148,2562,1653],{},[1148,2564,1156],{},[1158,2566,2567,2581,2595,2609,2623],{},[1145,2568,2569,2574,2576,2578],{},[1163,2570,2571],{},[851,2572,2573],{},"width",[1163,2575,1170],{},[1163,2577,1721],{},[1163,2579,2580],{},"Specify the width of the button",[1145,2582,2583,2588,2590,2592],{},[1163,2584,2585],{},[851,2586,2587],{},"height",[1163,2589,1170],{},[1163,2591,1721],{},[1163,2593,2594],{},"Specify the height of the button",[1145,2596,2597,2602,2604,2606],{},[1163,2598,2599],{},[851,2600,2601],{},"borderRadius",[1163,2603,1170],{},[1163,2605,1721],{},[1163,2607,2608],{},"Specify the radius of the button edges",[1145,2610,2611,2616,2618,2620],{},[1163,2612,2613],{},[851,2614,2615],{},"type",[1163,2617,1170],{},[1163,2619,1721],{},[1163,2621,2622],{},"This determines the text that shows on the button",[1145,2624,2625,2630,2632,2634],{},[1163,2626,2627],{},[851,2628,2629],{},"locale",[1163,2631,1170],{},[1163,2633,1721],{},[1163,2635,2636],{},"Set the language of the button",[798,2638,1060,2639,2641],{},[851,2640,2539],{}," object takes the following options. Google Pay is available to businesses in South Africa.",[1139,2643,2644,2656],{},[1142,2645,2646],{},[1145,2647,2648,2650,2652,2654],{},[1148,2649,1150],{},[1148,2651,1153],{},[1148,2653,1653],{},[1148,2655,1156],{},[1158,2657,2658,2670,2682,2710,2727,2744],{},[1145,2659,2660,2664,2666,2668],{},[1163,2661,2662],{},[851,2663,2573],{},[1163,2665,1170],{},[1163,2667,1721],{},[1163,2669,2580],{},[1145,2671,2672,2676,2678,2680],{},[1163,2673,2674],{},[851,2675,2587],{},[1163,2677,1170],{},[1163,2679,1721],{},[1163,2681,2594],{},[1145,2683,2684,2688,2691,2693],{},[1163,2685,2686],{},[851,2687,2601],{},[1163,2689,2690],{},"String | Number",[1163,2692,1721],{},[1163,2694,2695,2696,2699,2700,2703,2704,2707,2708],{},"Specify the radius of the button edges. Takes the same shape as ",[851,2697,2698],{},"applePay.borderRadius",", so ",[851,2701,2702],{},"'3px'"," and ",[851,2705,2706],{},"3"," both work. Defaults to ",[851,2709,2702],{},[1145,2711,2712,2717,2719,2721],{},[1163,2713,2714],{},[851,2715,2716],{},"buttonType",[1163,2718,1170],{},[1163,2720,1721],{},[1163,2722,2723,2724],{},"This determines the text that shows on the button. Defaults to ",[851,2725,2726],{},"pay",[1145,2728,2729,2734,2736,2738],{},[1163,2730,2731],{},[851,2732,2733],{},"buttonColor",[1163,2735,1170],{},[1163,2737,1721],{},[1163,2739,2740,2741,2743],{},"Set the button color independently of ",[851,2742,2504],{},", which it otherwise follows",[1145,2745,2746,2751,2753,2755],{},[1163,2747,2748],{},[851,2749,2750],{},"buttonSizeMode",[1163,2752,1170],{},[1163,2754,1721],{},[1163,2756,2757,2758],{},"How the button fills the space it's given. Defaults to ",[851,2759,2760],{},"fill",[836,2762,2764],{"title":2763,"type":1110},"Google Pay button styling",[798,2765,2766,2767,2769,2770,2772,2773,854,2775,2703,2777,2779,2780,2785,2786,2789,2790,808],{},"Google requires its own SDK to draw the Google Pay button, so ",[851,2768,2539],{}," isn't freeform CSS the way ",[851,2771,2525],{}," is. Apart from ",[851,2774,2573],{},[851,2776,2587],{},[851,2778,2601],{},", every key is passed through to Google's ",[805,2781,2784],{"href":2782,"rel":2783,"target":1678},"https:\u002F\u002Fdevelopers.google.com\u002Fpay\u002Fapi\u002Fweb\u002Freference\u002Fclient#createButton",[1677],"createButton",", so anything it accepts works here. That includes Google's own ",[851,2787,2788],{},"buttonRadius",", which takes a bare number and applies when you don't pass ",[851,2791,2601],{},[872,2793,2795],{"className":874,"code":2794,"language":876,"meta":870,"style":870},"\u003C!-- Payment request buttons, styles and event listeners will be injected to this div -->\n\u003Cdiv id=\"payment-request-buttons\">\u003C\u002Fdiv>\n\u003Cbutton id=\"pay-button\">More payment options\u003C\u002Fbutton>\n",[851,2796,2797,2802,2827],{"__ignoreMap":870},[880,2798,2799],{"class":882,"line":63},[880,2800,2801],{"class":1230},"\u003C!-- Payment request buttons, styles and event listeners will be injected to this div -->\n",[880,2803,2804,2806,2809,2812,2814,2816,2819,2821,2823,2825],{"class":882,"line":66},[880,2805,886],{"class":885},[880,2807,2808],{"class":889},"div",[880,2810,2811],{"class":893}," id",[880,2813,897],{"class":885},[880,2815,901],{"class":900},[880,2817,2818],{"class":904},"payment-request-buttons",[880,2820,901],{"class":900},[880,2822,910],{"class":885},[880,2824,2808],{"class":889},[880,2826,915],{"class":885},[880,2828,2829,2831,2834,2836,2838,2840,2843,2845,2848,2851,2854,2856],{"class":882,"line":84},[880,2830,886],{"class":885},[880,2832,2833],{"class":889},"button",[880,2835,2811],{"class":893},[880,2837,897],{"class":885},[880,2839,901],{"class":900},[880,2841,2842],{"class":904},"pay-button",[880,2844,901],{"class":900},[880,2846,2847],{"class":885},">",[880,2849,2850],{"class":997},"More payment options",[880,2852,2853],{"class":885},"\u003C\u002F",[880,2855,2833],{"class":889},[880,2857,915],{"class":885},[2859,2860],"localized-snippet",{"src":2861},"developer-tools\u002Finline-js\u002Fpayment-request",[793,2863,2865],{"id":2864},"resume-transaction","Resume transaction",[798,2867,2868,2869,2872,2873,2877],{},"Resuming a transaction lets you initiate it on your server and complete it in the browser. This flow provides both the security of server initialization and the convenience of the user experience in the browser. To get started, make a ",[851,2870,2871],{},"POST"," request from your backend to the ",[805,2874,2876],{"href":2875},"\u002Fapi\u002Ftransaction#initialize","Initialize Transaction"," endpoint:",[2879,2880,2881,2967,3492,3831],"request-response",{},[868,2882,2883],{"v-slot:curl":870},[872,2884,2886],{"className":920,"code":2885,"language":922,"meta":870,"style":870},"curl https:\u002F\u002Fapi.paystack.co\u002Ftransaction\u002Finitialize \\\n  -H \"Authorization: Bearer $PAYSTACK_SECRET_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"email\": \"customer@email.com\",\n    \"amount\": 500000\n  }' \\\n  -X POST\n",[851,2887,2888,2900,2919,2932,2941,2946,2951,2959],{"__ignoreMap":870},[880,2889,2890,2893,2896],{"class":882,"line":63},[880,2891,2892],{"class":929},"curl",[880,2894,2895],{"class":904}," https:\u002F\u002Fapi.paystack.co\u002Ftransaction\u002Finitialize",[880,2897,2899],{"class":2898},"s8jVp"," \\\n",[880,2901,2902,2906,2909,2912,2915,2917],{"class":882,"line":66},[880,2903,2905],{"class":2904},"scI3H","  -H",[880,2907,2908],{"class":900}," \"",[880,2910,2911],{"class":904},"Authorization: Bearer ",[880,2913,2914],{"class":997},"$PAYSTACK_SECRET_KEY",[880,2916,901],{"class":900},[880,2918,2899],{"class":2898},[880,2920,2921,2923,2925,2928,2930],{"class":882,"line":84},[880,2922,2905],{"class":2904},[880,2924,2908],{"class":900},[880,2926,2927],{"class":904},"Content-Type: application\u002Fjson",[880,2929,901],{"class":900},[880,2931,2899],{"class":2898},[880,2933,2934,2937,2939],{"class":882,"line":75},[880,2935,2936],{"class":2904},"  -d",[880,2938,1023],{"class":900},[880,2940,1424],{"class":904},[880,2942,2943],{"class":882,"line":107},[880,2944,2945],{"class":904},"    \"email\": \"customer@email.com\",\n",[880,2947,2948],{"class":882,"line":134},[880,2949,2950],{"class":904},"    \"amount\": 500000\n",[880,2952,2953,2955,2957],{"class":882,"line":153},[880,2954,1469],{"class":904},[880,2956,1029],{"class":900},[880,2958,2899],{"class":2898},[880,2960,2961,2964],{"class":882,"line":422},[880,2962,2963],{"class":2904},"  -X",[880,2965,2966],{"class":904}," POST\n",[868,2968,2969],{"v-slot:js":870},[872,2970,2972],{"className":969,"code":2971,"language":971,"meta":870,"style":870},"const https = require(\"https\");\n\nconst params = JSON.stringify({\n  \"email\": \"customer@email.com\",\n  \"amount\": 500000\n});\n\nconst options = {\n  hostname: \"api.paystack.co\",\n  port: 443,\n  path: \"\u002Ftransaction\u002Finitialize\",\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.PAYSTACK_SECRET_KEY}`,\n    \"Content-Type\": \"application\u002Fjson\",\n  },\n};\n\nconst req = https.request(options, (res) => {\n  let data = \"\";\n  res.on(\"data\", (chunk) => {\n    data += chunk;\n  });\n  res.on(\"end\", () => {\n    console.log(res.statusCode, JSON.parse(data));\n  });\n});\n\nreq.on(\"error\", (error) => {\n  console.error(error);\n});\n\nreq.write(params);\nreq.end();\n",[851,2973,2974,2999,3003,3022,3043,3056,3064,3068,3079,3095,3107,3123,3138,3147,3181,3202,3206,3211,3215,3247,3263,3296,3310,3319,3345,3380,3389,3398,3403,3433,3450,3459,3464,3479],{"__ignoreMap":870},[880,2975,2976,2978,2981,2983,2986,2988,2990,2993,2995,2997],{"class":882,"line":63},[880,2977,979],{"class":978},[880,2979,2980],{"class":982}," https",[880,2982,987],{"class":986},[880,2984,2985],{"class":993}," require",[880,2987,1437],{"class":997},[880,2989,901],{"class":900},[880,2991,2992],{"class":904},"https",[880,2994,901],{"class":900},[880,2996,1219],{"class":997},[880,2998,1001],{"class":885},[880,3000,3001],{"class":882,"line":66},[880,3002,1037],{"emptyLinePlaceholder":1036},[880,3004,3005,3007,3010,3012,3014,3016,3018,3020],{"class":882,"line":84},[880,3006,979],{"class":978},[880,3008,3009],{"class":982}," params",[880,3011,987],{"class":986},[880,3013,1450],{"class":982},[880,3015,808],{"class":885},[880,3017,1455],{"class":993},[880,3019,1437],{"class":997},[880,3021,1424],{"class":885},[880,3023,3024,3027,3030,3032,3034,3036,3039,3041],{"class":882,"line":75},[880,3025,3026],{"class":900},"  \"",[880,3028,1702],{"class":3029},"sTNDG",[880,3031,901],{"class":900},[880,3033,862],{"class":885},[880,3035,2908],{"class":900},[880,3037,3038],{"class":904},"customer@email.com",[880,3040,901],{"class":900},[880,3042,1919],{"class":885},[880,3044,3045,3047,3049,3051,3053],{"class":882,"line":107},[880,3046,3026],{"class":900},[880,3048,1687],{"class":3029},[880,3050,901],{"class":900},[880,3052,862],{"class":885},[880,3054,3055],{"class":1945}," 500000\n",[880,3057,3058,3060,3062],{"class":882,"line":134},[880,3059,2135],{"class":885},[880,3061,1219],{"class":997},[880,3063,1001],{"class":885},[880,3065,3066],{"class":882,"line":153},[880,3067,1037],{"emptyLinePlaceholder":1036},[880,3069,3070,3072,3075,3077],{"class":882,"line":422},[880,3071,979],{"class":978},[880,3073,3074],{"class":982}," options",[880,3076,987],{"class":986},[880,3078,1225],{"class":885},[880,3080,3081,3084,3086,3088,3091,3093],{"class":882,"line":1984},[880,3082,3083],{"class":1416},"  hostname",[880,3085,862],{"class":885},[880,3087,2908],{"class":900},[880,3089,3090],{"class":904},"api.paystack.co",[880,3092,901],{"class":900},[880,3094,1919],{"class":885},[880,3096,3097,3100,3102,3105],{"class":882,"line":1990},[880,3098,3099],{"class":1416},"  port",[880,3101,862],{"class":885},[880,3103,3104],{"class":1945}," 443",[880,3106,1919],{"class":885},[880,3108,3109,3112,3114,3116,3119,3121],{"class":882,"line":2008},[880,3110,3111],{"class":1416},"  path",[880,3113,862],{"class":885},[880,3115,2908],{"class":900},[880,3117,3118],{"class":904},"\u002Ftransaction\u002Finitialize",[880,3120,901],{"class":900},[880,3122,1919],{"class":885},[880,3124,3125,3128,3130,3132,3134,3136],{"class":882,"line":2035},[880,3126,3127],{"class":1416},"  method",[880,3129,862],{"class":885},[880,3131,2908],{"class":900},[880,3133,2871],{"class":904},[880,3135,901],{"class":900},[880,3137,1919],{"class":885},[880,3139,3140,3143,3145],{"class":882,"line":2040},[880,3141,3142],{"class":1416},"  headers",[880,3144,862],{"class":885},[880,3146,1225],{"class":885},[880,3148,3149,3152,3154,3157,3160,3163,3166,3168,3171,3173,3176,3179],{"class":882,"line":2054},[880,3150,3151],{"class":1416},"    Authorization",[880,3153,862],{"class":885},[880,3155,3156],{"class":900}," `",[880,3158,3159],{"class":904},"Bearer ",[880,3161,3162],{"class":900},"${",[880,3164,3165],{"class":997},"process",[880,3167,808],{"class":900},[880,3169,3170],{"class":997},"env",[880,3172,808],{"class":900},[880,3174,3175],{"class":982},"PAYSTACK_SECRET_KEY",[880,3177,3178],{"class":900},"}`",[880,3180,1919],{"class":885},[880,3182,3183,3186,3189,3191,3193,3195,3198,3200],{"class":882,"line":2075},[880,3184,3185],{"class":900},"    \"",[880,3187,3188],{"class":3029},"Content-Type",[880,3190,901],{"class":900},[880,3192,862],{"class":885},[880,3194,2908],{"class":900},[880,3196,3197],{"class":904},"application\u002Fjson",[880,3199,901],{"class":900},[880,3201,1919],{"class":885},[880,3203,3204],{"class":882,"line":2080},[880,3205,1987],{"class":885},[880,3207,3208],{"class":882,"line":2098},[880,3209,3210],{"class":885},"};\n",[880,3212,3213],{"class":882,"line":2127},[880,3214,1037],{"emptyLinePlaceholder":1036},[880,3216,3217,3219,3222,3224,3226,3228,3231,3234,3236,3238,3241,3243,3245],{"class":882,"line":2132},[880,3218,979],{"class":978},[880,3220,3221],{"class":982}," req",[880,3223,987],{"class":986},[880,3225,2980],{"class":997},[880,3227,808],{"class":885},[880,3229,3230],{"class":993},"request",[880,3232,3233],{"class":997},"(options",[880,3235,1447],{"class":885},[880,3237,1212],{"class":885},[880,3239,3240],{"class":1215},"res",[880,3242,1219],{"class":885},[880,3244,1222],{"class":978},[880,3246,1225],{"class":885},[880,3248,3250,3253,3256,3258,3261],{"class":882,"line":3249},20,[880,3251,3252],{"class":978},"  let",[880,3254,3255],{"class":997}," data",[880,3257,987],{"class":986},[880,3259,3260],{"class":900}," \"\"",[880,3262,1001],{"class":885},[880,3264,3266,3269,3271,3274,3276,3278,3281,3283,3285,3287,3290,3292,3294],{"class":882,"line":3265},21,[880,3267,3268],{"class":997},"  res",[880,3270,808],{"class":885},[880,3272,3273],{"class":993},"on",[880,3275,1437],{"class":1416},[880,3277,901],{"class":900},[880,3279,3280],{"class":904},"data",[880,3282,901],{"class":900},[880,3284,1447],{"class":885},[880,3286,1212],{"class":885},[880,3288,3289],{"class":1215},"chunk",[880,3291,1219],{"class":885},[880,3293,1222],{"class":978},[880,3295,1225],{"class":885},[880,3297,3299,3302,3305,3308],{"class":882,"line":3298},22,[880,3300,3301],{"class":997},"    data",[880,3303,3304],{"class":986}," +=",[880,3306,3307],{"class":997}," chunk",[880,3309,1001],{"class":885},[880,3311,3313,3315,3317],{"class":882,"line":3312},23,[880,3314,1469],{"class":885},[880,3316,1219],{"class":1416},[880,3318,1001],{"class":885},[880,3320,3322,3324,3326,3328,3330,3332,3335,3337,3339,3341,3343],{"class":882,"line":3321},24,[880,3323,3268],{"class":997},[880,3325,808],{"class":885},[880,3327,3273],{"class":993},[880,3329,1437],{"class":1416},[880,3331,901],{"class":900},[880,3333,3334],{"class":904},"end",[880,3336,901],{"class":900},[880,3338,1447],{"class":885},[880,3340,1525],{"class":885},[880,3342,1222],{"class":978},[880,3344,1225],{"class":885},[880,3346,3348,3350,3352,3354,3356,3358,3360,3363,3365,3367,3369,3372,3374,3376,3378],{"class":882,"line":3347},25,[880,3349,1429],{"class":997},[880,3351,808],{"class":885},[880,3353,1434],{"class":993},[880,3355,1437],{"class":1416},[880,3357,3240],{"class":997},[880,3359,808],{"class":885},[880,3361,3362],{"class":997},"statusCode",[880,3364,1447],{"class":885},[880,3366,1450],{"class":982},[880,3368,808],{"class":885},[880,3370,3371],{"class":993},"parse",[880,3373,1437],{"class":1416},[880,3375,3280],{"class":997},[880,3377,1462],{"class":1416},[880,3379,1001],{"class":885},[880,3381,3383,3385,3387],{"class":882,"line":3382},26,[880,3384,1469],{"class":885},[880,3386,1219],{"class":1416},[880,3388,1001],{"class":885},[880,3390,3392,3394,3396],{"class":882,"line":3391},27,[880,3393,2135],{"class":885},[880,3395,1219],{"class":997},[880,3397,1001],{"class":885},[880,3399,3401],{"class":882,"line":3400},28,[880,3402,1037],{"emptyLinePlaceholder":1036},[880,3404,3406,3409,3411,3413,3415,3417,3419,3421,3423,3425,3427,3429,3431],{"class":882,"line":3405},29,[880,3407,3408],{"class":997},"req",[880,3410,808],{"class":885},[880,3412,3273],{"class":993},[880,3414,1437],{"class":997},[880,3416,901],{"class":900},[880,3418,1577],{"class":904},[880,3420,901],{"class":900},[880,3422,1447],{"class":885},[880,3424,1212],{"class":885},[880,3426,1577],{"class":1215},[880,3428,1219],{"class":885},[880,3430,1222],{"class":978},[880,3432,1225],{"class":885},[880,3434,3436,3438,3440,3442,3444,3446,3448],{"class":882,"line":3435},30,[880,3437,1534],{"class":997},[880,3439,808],{"class":885},[880,3441,1577],{"class":993},[880,3443,1437],{"class":1416},[880,3445,1577],{"class":997},[880,3447,1219],{"class":1416},[880,3449,1001],{"class":885},[880,3451,3453,3455,3457],{"class":882,"line":3452},31,[880,3454,2135],{"class":885},[880,3456,1219],{"class":997},[880,3458,1001],{"class":885},[880,3460,3462],{"class":882,"line":3461},32,[880,3463,1037],{"emptyLinePlaceholder":1036},[880,3465,3467,3469,3471,3474,3477],{"class":882,"line":3466},33,[880,3468,3408],{"class":997},[880,3470,808],{"class":885},[880,3472,3473],{"class":993},"write",[880,3475,3476],{"class":997},"(params)",[880,3478,1001],{"class":885},[880,3480,3482,3484,3486,3488,3490],{"class":882,"line":3481},34,[880,3483,3408],{"class":997},[880,3485,808],{"class":885},[880,3487,3334],{"class":993},[880,3489,998],{"class":997},[880,3491,1001],{"class":885},[868,3493,3494],{"v-slot:php":870},[872,3495,3499],{"className":3496,"code":3497,"language":3498,"meta":870,"style":870},"language-php shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","\u003C?php\n$fields = [\n  \"email\" => \"customer@email.com\",\n  \"amount\" => 500000,\n];\n\n$curl = curl_init();\ncurl_setopt_array($curl, array(\n  CURLOPT_URL => \"https:\u002F\u002Fapi.paystack.co\u002Ftransaction\u002Finitialize\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_ENCODING => \"\",\n  CURLOPT_MAXREDIRS => 10,\n  CURLOPT_TIMEOUT => 30,\n  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n  CURLOPT_POSTFIELDS => json_encode($fields),\n  CURLOPT_HTTPHEADER => array(\n    \"Authorization: Bearer \" . getenv(\"PAYSTACK_SECRET_KEY\"),\n    \"Content-Type: application\u002Fjson\",\n    \"Cache-Control: no-cache\",\n  ),\n));\n$response = curl_exec($curl);\necho curl_getinfo($curl, CURLINFO_HTTP_CODE) . \" \" . $response;\n?>\n","php",[851,3500,3501,3509,3522,3540,3555,3560,3564,3580,3598,3614,3627,3638,3650,3662,3674,3689,3707,3718,3742,3752,3763,3768,3773,3792,3826],{"__ignoreMap":870},[880,3502,3503,3506],{"class":882,"line":63},[880,3504,3505],{"class":986},"\u003C?",[880,3507,3508],{"class":982},"php\n",[880,3510,3511,3514,3517,3519],{"class":882,"line":66},[880,3512,3513],{"class":885},"$",[880,3515,3516],{"class":997},"fields ",[880,3518,897],{"class":986},[880,3520,3521],{"class":885}," [\n",[880,3523,3524,3526,3528,3530,3532,3534,3536,3538],{"class":882,"line":84},[880,3525,3026],{"class":900},[880,3527,1702],{"class":904},[880,3529,901],{"class":900},[880,3531,1222],{"class":986},[880,3533,2908],{"class":900},[880,3535,3038],{"class":904},[880,3537,901],{"class":900},[880,3539,1919],{"class":885},[880,3541,3542,3544,3546,3548,3550,3553],{"class":882,"line":75},[880,3543,3026],{"class":900},[880,3545,1687],{"class":904},[880,3547,901],{"class":900},[880,3549,1222],{"class":986},[880,3551,3552],{"class":1945}," 500000",[880,3554,1919],{"class":885},[880,3556,3557],{"class":882,"line":107},[880,3558,3559],{"class":885},"];\n",[880,3561,3562],{"class":882,"line":134},[880,3563,1037],{"emptyLinePlaceholder":1036},[880,3565,3566,3568,3571,3573,3577],{"class":882,"line":153},[880,3567,3513],{"class":885},[880,3569,3570],{"class":997},"curl ",[880,3572,897],{"class":986},[880,3574,3576],{"class":3575},"slzs_"," curl_init",[880,3578,3579],{"class":885},"();\n",[880,3581,3582,3585,3588,3590,3592,3595],{"class":882,"line":422},[880,3583,3584],{"class":3575},"curl_setopt_array",[880,3586,3587],{"class":885},"($",[880,3589,2892],{"class":997},[880,3591,1447],{"class":885},[880,3593,3594],{"class":3575}," array",[880,3596,3597],{"class":885},"(\n",[880,3599,3600,3603,3605,3607,3610,3612],{"class":882,"line":1984},[880,3601,3602],{"class":982},"  CURLOPT_URL",[880,3604,1222],{"class":986},[880,3606,2908],{"class":900},[880,3608,3609],{"class":904},"https:\u002F\u002Fapi.paystack.co\u002Ftransaction\u002Finitialize",[880,3611,901],{"class":900},[880,3613,1919],{"class":885},[880,3615,3616,3619,3621,3625],{"class":882,"line":1990},[880,3617,3618],{"class":982},"  CURLOPT_RETURNTRANSFER",[880,3620,1222],{"class":986},[880,3622,3624],{"class":3623},"sNG8c"," true",[880,3626,1919],{"class":885},[880,3628,3629,3632,3634,3636],{"class":882,"line":2008},[880,3630,3631],{"class":982},"  CURLOPT_ENCODING",[880,3633,1222],{"class":986},[880,3635,3260],{"class":900},[880,3637,1919],{"class":885},[880,3639,3640,3643,3645,3648],{"class":882,"line":2035},[880,3641,3642],{"class":982},"  CURLOPT_MAXREDIRS",[880,3644,1222],{"class":986},[880,3646,3647],{"class":1945}," 10",[880,3649,1919],{"class":885},[880,3651,3652,3655,3657,3660],{"class":882,"line":2040},[880,3653,3654],{"class":982},"  CURLOPT_TIMEOUT",[880,3656,1222],{"class":986},[880,3658,3659],{"class":1945}," 30",[880,3661,1919],{"class":885},[880,3663,3664,3667,3669,3672],{"class":882,"line":2054},[880,3665,3666],{"class":982},"  CURLOPT_HTTP_VERSION",[880,3668,1222],{"class":986},[880,3670,3671],{"class":982}," CURL_HTTP_VERSION_1_1",[880,3673,1919],{"class":885},[880,3675,3676,3679,3681,3683,3685,3687],{"class":882,"line":2075},[880,3677,3678],{"class":982},"  CURLOPT_CUSTOMREQUEST",[880,3680,1222],{"class":986},[880,3682,2908],{"class":900},[880,3684,2871],{"class":904},[880,3686,901],{"class":900},[880,3688,1919],{"class":885},[880,3690,3691,3694,3696,3699,3701,3704],{"class":882,"line":2080},[880,3692,3693],{"class":982},"  CURLOPT_POSTFIELDS",[880,3695,1222],{"class":986},[880,3697,3698],{"class":3575}," json_encode",[880,3700,3587],{"class":885},[880,3702,3703],{"class":997},"fields",[880,3705,3706],{"class":885},"),\n",[880,3708,3709,3712,3714,3716],{"class":882,"line":2098},[880,3710,3711],{"class":982},"  CURLOPT_HTTPHEADER",[880,3713,1222],{"class":986},[880,3715,3594],{"class":3575},[880,3717,3597],{"class":885},[880,3719,3720,3722,3724,3726,3729,3732,3734,3736,3738,3740],{"class":882,"line":2127},[880,3721,3185],{"class":900},[880,3723,2911],{"class":904},[880,3725,901],{"class":900},[880,3727,3728],{"class":986}," .",[880,3730,3731],{"class":3575}," getenv",[880,3733,1437],{"class":885},[880,3735,901],{"class":900},[880,3737,3175],{"class":904},[880,3739,901],{"class":900},[880,3741,3706],{"class":885},[880,3743,3744,3746,3748,3750],{"class":882,"line":2132},[880,3745,3185],{"class":900},[880,3747,2927],{"class":904},[880,3749,901],{"class":900},[880,3751,1919],{"class":885},[880,3753,3754,3756,3759,3761],{"class":882,"line":3249},[880,3755,3185],{"class":900},[880,3757,3758],{"class":904},"Cache-Control: no-cache",[880,3760,901],{"class":900},[880,3762,1919],{"class":885},[880,3764,3765],{"class":882,"line":3265},[880,3766,3767],{"class":885},"  ),\n",[880,3769,3770],{"class":882,"line":3298},[880,3771,3772],{"class":885},"));\n",[880,3774,3775,3777,3780,3782,3785,3787,3789],{"class":882,"line":3312},[880,3776,3513],{"class":885},[880,3778,3779],{"class":997},"response ",[880,3781,897],{"class":986},[880,3783,3784],{"class":3575}," curl_exec",[880,3786,3587],{"class":885},[880,3788,2892],{"class":997},[880,3790,3791],{"class":885},");\n",[880,3793,3794,3797,3800,3802,3804,3806,3809,3811,3813,3815,3817,3819,3822,3824],{"class":882,"line":3321},[880,3795,3796],{"class":3575},"echo",[880,3798,3799],{"class":3575}," curl_getinfo",[880,3801,3587],{"class":885},[880,3803,2892],{"class":997},[880,3805,1447],{"class":885},[880,3807,3808],{"class":982}," CURLINFO_HTTP_CODE",[880,3810,1219],{"class":885},[880,3812,3728],{"class":986},[880,3814,2908],{"class":900},[880,3816,2908],{"class":900},[880,3818,3728],{"class":986},[880,3820,3821],{"class":885}," $",[880,3823,1216],{"class":997},[880,3825,1001],{"class":885},[880,3827,3828],{"class":882,"line":3347},[880,3829,3830],{"class":986},"?>\n",[868,3832,3833],{"v-slot:response":870},[872,3834,3838],{"className":3835,"code":3836,"language":3837,"meta":870,"style":870},"language-json shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","{\n  \"status\": true,\n  \"message\": \"Authorization URL created\",\n  \"data\": {\n    \"authorization_url\": \"https:\u002F\u002Fcheckout.paystack.com\u002Fnkdks46nymizns7\",\n    \"access_code\": \"nkdks46nymizns7\",\n    \"reference\": \"nms6uvr1pl\"\n  }\n}\n","json",[851,3839,3840,3844,3860,3879,3891,3912,3932,3950,3954],{"__ignoreMap":870},[880,3841,3842],{"class":882,"line":63},[880,3843,1424],{"class":885},[880,3845,3846,3849,3852,3854,3856,3858],{"class":882,"line":66},[880,3847,3026],{"class":3848},"sLsO-",[880,3850,1293],{"class":3851},"sO5ea",[880,3853,901],{"class":3848},[880,3855,862],{"class":885},[880,3857,3624],{"class":3623},[880,3859,1919],{"class":885},[880,3861,3862,3864,3866,3868,3870,3872,3875,3877],{"class":882,"line":84},[880,3863,3026],{"class":3848},[880,3865,1305],{"class":3851},[880,3867,901],{"class":3848},[880,3869,862],{"class":885},[880,3871,2908],{"class":900},[880,3873,3874],{"class":904},"Authorization URL created",[880,3876,901],{"class":900},[880,3878,1919],{"class":885},[880,3880,3881,3883,3885,3887,3889],{"class":882,"line":75},[880,3882,3026],{"class":3848},[880,3884,3280],{"class":3851},[880,3886,901],{"class":3848},[880,3888,862],{"class":885},[880,3890,1225],{"class":885},[880,3892,3893,3895,3899,3901,3903,3905,3908,3910],{"class":882,"line":107},[880,3894,3185],{"class":3848},[880,3896,3898],{"class":3897},"s2aQn","authorization_url",[880,3900,901],{"class":3848},[880,3902,862],{"class":885},[880,3904,2908],{"class":900},[880,3906,3907],{"class":904},"https:\u002F\u002Fcheckout.paystack.com\u002Fnkdks46nymizns7",[880,3909,901],{"class":900},[880,3911,1919],{"class":885},[880,3913,3914,3916,3919,3921,3923,3925,3928,3930],{"class":882,"line":134},[880,3915,3185],{"class":3848},[880,3917,3918],{"class":3897},"access_code",[880,3920,901],{"class":3848},[880,3922,862],{"class":885},[880,3924,2908],{"class":900},[880,3926,3927],{"class":904},"nkdks46nymizns7",[880,3929,901],{"class":900},[880,3931,1919],{"class":885},[880,3933,3934,3936,3938,3940,3942,3944,3947],{"class":882,"line":153},[880,3935,3185],{"class":3848},[880,3937,1269],{"class":3897},[880,3939,901],{"class":3848},[880,3941,862],{"class":885},[880,3943,2908],{"class":900},[880,3945,3946],{"class":904},"nms6uvr1pl",[880,3948,3949],{"class":900},"\"\n",[880,3951,3952],{"class":882,"line":422},[880,3953,1500],{"class":885},[880,3955,3956],{"class":882,"line":1984},[880,3957,1241],{"class":885},[798,3959,3960,3961,3963,3964,3966],{},"In the ",[851,3962,3280],{}," object of the response returned, you need to save the ",[851,3965,3918],{}," and send it to your frontend.",[836,3968,3971],{"title":3969,"type":3970},"Secret key safeguarding","danger",[798,3972,3973],{},"Don't make an API request to the Initialize Transaction endpoint directly on your mobile app because it requires your secret key. Your secret key should only be used on your server where stronger security measures can be put in place.",[1131,3975,1087],{"id":3976},"resumetransactionaccesscode",[798,3978,3979,3980,3982],{},"In your frontend, you can use this ",[851,3981,3918],{}," to complete the payment without leaving your site.",[1139,3984,3985,3997],{},[1142,3986,3987],{},[1145,3988,3989,3991,3993,3995],{},[1148,3990,1150],{},[1148,3992,1153],{},[1148,3994,1653],{},[1148,3996,1156],{},[1158,3998,3999],{},[1145,4000,4001,4005,4007,4009],{},[1163,4002,4003],{},[851,4004,1180],{},[1163,4006,1170],{},[1163,4008,1669],{},[1163,4010,4011],{},"Access code returned from the transaction initialization",[872,4013,4015],{"className":969,"code":4014,"language":971,"meta":870,"style":870},"const popup = new Paystack()\n\npopup.resumeTransaction(access_code)\n",[851,4016,4017,4031,4035],{"__ignoreMap":870},[880,4018,4019,4021,4023,4025,4027,4029],{"class":882,"line":63},[880,4020,979],{"class":978},[880,4022,983],{"class":982},[880,4024,987],{"class":986},[880,4026,990],{"class":986},[880,4028,1050],{"class":993},[880,4030,1053],{"class":997},[880,4032,4033],{"class":882,"line":66},[880,4034,1037],{"emptyLinePlaceholder":1036},[880,4036,4037,4039,4041,4044],{"class":882,"line":84},[880,4038,1893],{"class":997},[880,4040,808],{"class":885},[880,4042,4043],{"class":993},"resumeTransaction",[880,4045,4046],{"class":997},"(access_code)\n",[798,4048,1060,4049,4051],{},[851,4050,4043],{}," method triggers the checkout in the browser, allowing the user to choose their preferred payment channel to complete the transaction.",[793,4053,4055],{"id":4054},"split-transaction","Split transaction",[798,4057,4058,4059,4062,4063,4066],{},"Sometimes you need to share a transaction with another business or entity. To do this you can ",[805,4060,4061],{"href":615},"create a subaccount"," and pass the ",[851,4064,4065],{},"subaccoutCode"," from the response when setting up payment:",[872,4068,4070],{"className":969,"code":4069,"language":971,"meta":870,"style":870},"const popup = new Paystack()\n\npopup.newTransaction({\n  key: 'pk_domain_xxxxxx',\n  email: 'sample@email.com',\n  amount: 45000,\n  subaccountCode: 'ACCT_dskvlw3y3dsvkmt',\n  onSuccess: (transaction) => {\n    console.log(transaction);\n  },\n  onLoad: (response) => {\n    console.log(\"onLoad: \", response);\n  },\n  onCancel: () => {\n    console.log(\"onCancel\");\n  },\n  onError: (error) => {\n    console.log(\"Error: \", error.message);\n  }\n})\n",[851,4071,4072,4086,4090,4102,4116,4130,4141,4157,4173,4189,4193,4209,4233,4237,4249,4269,4273,4289,4317,4321],{"__ignoreMap":870},[880,4073,4074,4076,4078,4080,4082,4084],{"class":882,"line":63},[880,4075,979],{"class":978},[880,4077,983],{"class":982},[880,4079,987],{"class":986},[880,4081,990],{"class":986},[880,4083,1050],{"class":993},[880,4085,1053],{"class":997},[880,4087,4088],{"class":882,"line":66},[880,4089,1037],{"emptyLinePlaceholder":1036},[880,4091,4092,4094,4096,4098,4100],{"class":882,"line":84},[880,4093,1893],{"class":997},[880,4095,808],{"class":885},[880,4097,1898],{"class":993},[880,4099,1437],{"class":997},[880,4101,1424],{"class":885},[880,4103,4104,4106,4108,4110,4112,4114],{"class":882,"line":75},[880,4105,1907],{"class":1416},[880,4107,862],{"class":885},[880,4109,1023],{"class":900},[880,4111,1914],{"class":904},[880,4113,1029],{"class":900},[880,4115,1919],{"class":885},[880,4117,4118,4120,4122,4124,4126,4128],{"class":882,"line":107},[880,4119,1924],{"class":1416},[880,4121,862],{"class":885},[880,4123,1023],{"class":900},[880,4125,1931],{"class":904},[880,4127,1029],{"class":900},[880,4129,1919],{"class":885},[880,4131,4132,4134,4136,4139],{"class":882,"line":134},[880,4133,1940],{"class":1416},[880,4135,862],{"class":885},[880,4137,4138],{"class":1945}," 45000",[880,4140,1919],{"class":885},[880,4142,4143,4146,4148,4150,4153,4155],{"class":882,"line":153},[880,4144,4145],{"class":1416},"  subaccountCode",[880,4147,862],{"class":885},[880,4149,1023],{"class":900},[880,4151,4152],{"class":904},"ACCT_dskvlw3y3dsvkmt",[880,4154,1029],{"class":900},[880,4156,1919],{"class":885},[880,4158,4159,4161,4163,4165,4167,4169,4171],{"class":882,"line":422},[880,4160,1953],{"class":993},[880,4162,862],{"class":885},[880,4164,1212],{"class":885},[880,4166,1317],{"class":1215},[880,4168,1219],{"class":885},[880,4170,1222],{"class":978},[880,4172,1225],{"class":885},[880,4174,4175,4177,4179,4181,4183,4185,4187],{"class":882,"line":1984},[880,4176,1429],{"class":997},[880,4178,808],{"class":885},[880,4180,1434],{"class":993},[880,4182,1437],{"class":1416},[880,4184,1317],{"class":997},[880,4186,1219],{"class":1416},[880,4188,1001],{"class":885},[880,4190,4191],{"class":882,"line":1990},[880,4192,1987],{"class":885},[880,4194,4195,4197,4199,4201,4203,4205,4207],{"class":882,"line":2008},[880,4196,1993],{"class":993},[880,4198,862],{"class":885},[880,4200,1212],{"class":885},[880,4202,1216],{"class":1215},[880,4204,1219],{"class":885},[880,4206,1222],{"class":978},[880,4208,1225],{"class":885},[880,4210,4211,4213,4215,4217,4219,4221,4223,4225,4227,4229,4231],{"class":882,"line":2035},[880,4212,1429],{"class":997},[880,4214,808],{"class":885},[880,4216,1434],{"class":993},[880,4218,1437],{"class":1416},[880,4220,901],{"class":900},[880,4222,2021],{"class":904},[880,4224,901],{"class":900},[880,4226,1447],{"class":885},[880,4228,2028],{"class":997},[880,4230,1219],{"class":1416},[880,4232,1001],{"class":885},[880,4234,4235],{"class":882,"line":2040},[880,4236,1987],{"class":885},[880,4238,4239,4241,4243,4245,4247],{"class":882,"line":2054},[880,4240,2043],{"class":993},[880,4242,862],{"class":885},[880,4244,1525],{"class":885},[880,4246,1222],{"class":978},[880,4248,1225],{"class":885},[880,4250,4251,4253,4255,4257,4259,4261,4263,4265,4267],{"class":882,"line":2075},[880,4252,1429],{"class":997},[880,4254,808],{"class":885},[880,4256,1434],{"class":993},[880,4258,1437],{"class":1416},[880,4260,901],{"class":900},[880,4262,1508],{"class":904},[880,4264,901],{"class":900},[880,4266,1219],{"class":1416},[880,4268,1001],{"class":885},[880,4270,4271],{"class":882,"line":2080},[880,4272,1987],{"class":885},[880,4274,4275,4277,4279,4281,4283,4285,4287],{"class":882,"line":2098},[880,4276,2083],{"class":993},[880,4278,862],{"class":885},[880,4280,1212],{"class":885},[880,4282,1577],{"class":1215},[880,4284,1219],{"class":885},[880,4286,1222],{"class":978},[880,4288,1225],{"class":885},[880,4290,4291,4293,4295,4297,4299,4301,4303,4305,4307,4309,4311,4313,4315],{"class":882,"line":2127},[880,4292,1429],{"class":997},[880,4294,808],{"class":885},[880,4296,1434],{"class":993},[880,4298,1437],{"class":1416},[880,4300,901],{"class":900},[880,4302,1598],{"class":904},[880,4304,901],{"class":900},[880,4306,1447],{"class":885},[880,4308,1605],{"class":997},[880,4310,808],{"class":885},[880,4312,1305],{"class":997},[880,4314,1219],{"class":1416},[880,4316,1001],{"class":885},[880,4318,4319],{"class":882,"line":2132},[880,4320,1500],{"class":885},[880,4322,4323,4325],{"class":882,"line":3249},[880,4324,2135],{"class":885},[880,4326,1550],{"class":997},[798,4328,4329],{},"The table below shows the parameters that can be used to config split payments:",[1139,4331,4332,4344],{},[1142,4333,4334],{},[1145,4335,4336,4338,4340,4342],{},[1148,4337,1150],{},[1148,4339,1153],{},[1148,4341,1653],{},[1148,4343,1156],{},[1158,4345,4346,4363,4387],{},[1145,4347,4348,4353,4355,4357],{},[1163,4349,4350],{},[851,4351,4352],{},"subaccountCode",[1163,4354,1170],{},[1163,4356,1669],{},[1163,4358,4359,4360],{},"A valid Paystack subaccount code for example ",[851,4361,4362],{},"ACCT_8f4s1eq7ml6rlzj",[1145,4364,4365,4370,4372,4374],{},[1163,4366,4367],{},[851,4368,4369],{},"bearer",[1163,4371,1170],{},[1163,4373,1721],{},[1163,4375,4376,4377,858,4380,4383,4384,4386],{},"This is used to specific the account that bears the Paystack charges. Values can be ",[851,4378,4379],{},"account",[851,4381,4382],{},"subaccount"," (defaults to ",[851,4385,4379],{},").",[1145,4388,4389,4394,4396,4398],{},[1163,4390,4391],{},[851,4392,4393],{},"transactionCharge",[1163,4395,1690],{},[1163,4397,1721],{},[1163,4399,4400],{},"A flat fee (in the smallest denomination of your currency) the main account should take. This overrides the split percentage set when the subaccount was created.",[793,4402,4404],{"id":4403},"multi-split-transaction","Multi-split transaction",[798,4406,4407],{},"Multi-split payment is used to share a single transaction with multiple partners. Based on your use-case, the split can be created ahead of time via the API or dynamically during the transaction initiation.",[798,4409,4410,4411,4062,4414,4417],{},"If you are certain of your split configuration ahead of time, you can ",[805,4412,4413],{"href":623},"create the split",[851,4415,4416],{},"split_code"," when setting up the transaction:",[872,4419,4421],{"className":969,"code":4420,"language":971,"meta":870,"style":870},"const popup = new Paystack()\n\npopup.newTransaction({\n  key: 'pk_domain_xxxxxx',\n  email: 'multi@split.com',\n  amount: 98540,\n  split_code: 'SPL_RYUUL4u1hP',\n  onSuccess: (transaction) => {\n    console.log(transaction);\n  },\n  onLoad: (response) => {\n    console.log(\"onLoad: \", response);\n  },\n  onCancel: () => {\n    console.log(\"onCancel\");\n  },\n  onError: (error) => {\n    console.log(\"Error: \", error.message);\n  }\n})\n",[851,4422,4423,4437,4441,4453,4467,4482,4493,4509,4525,4541,4545,4561,4585,4589,4601,4621,4625,4641,4669,4673],{"__ignoreMap":870},[880,4424,4425,4427,4429,4431,4433,4435],{"class":882,"line":63},[880,4426,979],{"class":978},[880,4428,983],{"class":982},[880,4430,987],{"class":986},[880,4432,990],{"class":986},[880,4434,1050],{"class":993},[880,4436,1053],{"class":997},[880,4438,4439],{"class":882,"line":66},[880,4440,1037],{"emptyLinePlaceholder":1036},[880,4442,4443,4445,4447,4449,4451],{"class":882,"line":84},[880,4444,1893],{"class":997},[880,4446,808],{"class":885},[880,4448,1898],{"class":993},[880,4450,1437],{"class":997},[880,4452,1424],{"class":885},[880,4454,4455,4457,4459,4461,4463,4465],{"class":882,"line":75},[880,4456,1907],{"class":1416},[880,4458,862],{"class":885},[880,4460,1023],{"class":900},[880,4462,1914],{"class":904},[880,4464,1029],{"class":900},[880,4466,1919],{"class":885},[880,4468,4469,4471,4473,4475,4478,4480],{"class":882,"line":107},[880,4470,1924],{"class":1416},[880,4472,862],{"class":885},[880,4474,1023],{"class":900},[880,4476,4477],{"class":904},"multi@split.com",[880,4479,1029],{"class":900},[880,4481,1919],{"class":885},[880,4483,4484,4486,4488,4491],{"class":882,"line":134},[880,4485,1940],{"class":1416},[880,4487,862],{"class":885},[880,4489,4490],{"class":1945}," 98540",[880,4492,1919],{"class":885},[880,4494,4495,4498,4500,4502,4505,4507],{"class":882,"line":153},[880,4496,4497],{"class":1416},"  split_code",[880,4499,862],{"class":885},[880,4501,1023],{"class":900},[880,4503,4504],{"class":904},"SPL_RYUUL4u1hP",[880,4506,1029],{"class":900},[880,4508,1919],{"class":885},[880,4510,4511,4513,4515,4517,4519,4521,4523],{"class":882,"line":422},[880,4512,1953],{"class":993},[880,4514,862],{"class":885},[880,4516,1212],{"class":885},[880,4518,1317],{"class":1215},[880,4520,1219],{"class":885},[880,4522,1222],{"class":978},[880,4524,1225],{"class":885},[880,4526,4527,4529,4531,4533,4535,4537,4539],{"class":882,"line":1984},[880,4528,1429],{"class":997},[880,4530,808],{"class":885},[880,4532,1434],{"class":993},[880,4534,1437],{"class":1416},[880,4536,1317],{"class":997},[880,4538,1219],{"class":1416},[880,4540,1001],{"class":885},[880,4542,4543],{"class":882,"line":1990},[880,4544,1987],{"class":885},[880,4546,4547,4549,4551,4553,4555,4557,4559],{"class":882,"line":2008},[880,4548,1993],{"class":993},[880,4550,862],{"class":885},[880,4552,1212],{"class":885},[880,4554,1216],{"class":1215},[880,4556,1219],{"class":885},[880,4558,1222],{"class":978},[880,4560,1225],{"class":885},[880,4562,4563,4565,4567,4569,4571,4573,4575,4577,4579,4581,4583],{"class":882,"line":2035},[880,4564,1429],{"class":997},[880,4566,808],{"class":885},[880,4568,1434],{"class":993},[880,4570,1437],{"class":1416},[880,4572,901],{"class":900},[880,4574,2021],{"class":904},[880,4576,901],{"class":900},[880,4578,1447],{"class":885},[880,4580,2028],{"class":997},[880,4582,1219],{"class":1416},[880,4584,1001],{"class":885},[880,4586,4587],{"class":882,"line":2040},[880,4588,1987],{"class":885},[880,4590,4591,4593,4595,4597,4599],{"class":882,"line":2054},[880,4592,2043],{"class":993},[880,4594,862],{"class":885},[880,4596,1525],{"class":885},[880,4598,1222],{"class":978},[880,4600,1225],{"class":885},[880,4602,4603,4605,4607,4609,4611,4613,4615,4617,4619],{"class":882,"line":2075},[880,4604,1429],{"class":997},[880,4606,808],{"class":885},[880,4608,1434],{"class":993},[880,4610,1437],{"class":1416},[880,4612,901],{"class":900},[880,4614,1508],{"class":904},[880,4616,901],{"class":900},[880,4618,1219],{"class":1416},[880,4620,1001],{"class":885},[880,4622,4623],{"class":882,"line":2080},[880,4624,1987],{"class":885},[880,4626,4627,4629,4631,4633,4635,4637,4639],{"class":882,"line":2098},[880,4628,2083],{"class":993},[880,4630,862],{"class":885},[880,4632,1212],{"class":885},[880,4634,1577],{"class":1215},[880,4636,1219],{"class":885},[880,4638,1222],{"class":978},[880,4640,1225],{"class":885},[880,4642,4643,4645,4647,4649,4651,4653,4655,4657,4659,4661,4663,4665,4667],{"class":882,"line":2127},[880,4644,1429],{"class":997},[880,4646,808],{"class":885},[880,4648,1434],{"class":993},[880,4650,1437],{"class":1416},[880,4652,901],{"class":900},[880,4654,1598],{"class":904},[880,4656,901],{"class":900},[880,4658,1447],{"class":885},[880,4660,1605],{"class":997},[880,4662,808],{"class":885},[880,4664,1305],{"class":997},[880,4666,1219],{"class":1416},[880,4668,1001],{"class":885},[880,4670,4671],{"class":882,"line":2132},[880,4672,1500],{"class":885},[880,4674,4675,4677],{"class":882,"line":3249},[880,4676,2135],{"class":885},[880,4678,1550],{"class":997},[1139,4680,4681,4693],{},[1142,4682,4683],{},[1145,4684,4685,4687,4689,4691],{},[1148,4686,1150],{},[1148,4688,1153],{},[1148,4690,1653],{},[1148,4692,1156],{},[1158,4694,4695],{},[1145,4696,4697,4701,4703,4705],{},[1163,4698,4699],{},[851,4700,4416],{},[1163,4702,1170],{},[1163,4704,1669],{},[1163,4706,4707],{},"A valid Paystack split code with configuration for how payment should be split with partners",[798,4709,4710,4711,4714],{},"Otherwise, you might want to create the split on the fly by passing the ",[851,4712,4713],{},"split"," object in the transaction request:",[2859,4716],{"src":4717},"developer-tools\u002Finline-js\u002Fmulti-split-dynamic",[1139,4719,4720,4732],{},[1142,4721,4722],{},[1145,4723,4724,4726,4728,4730],{},[1148,4725,1150],{},[1148,4727,1153],{},[1148,4729,1653],{},[1148,4731,1156],{},[1158,4733,4734,4748,4768,4783,4797,4822],{},[1145,4735,4736,4741,4743,4745],{},[1163,4737,4738],{},[851,4739,4740],{},"name",[1163,4742,1170],{},[1163,4744,1669],{},[1163,4746,4747],{},"Name of the split",[1145,4749,4750,4754,4756,4758],{},[1163,4751,4752],{},[851,4753,2615],{},[1163,4755,1170],{},[1163,4757,1669],{},[1163,4759,4760,4761,858,4764,4767],{},"Takes either ",[851,4762,4763],{},"flat",[851,4765,4766],{},"percentage"," to indicate if you want a fixed or variable share",[1145,4769,4770,4774,4776,4778],{},[1163,4771,4772],{},[851,4773,1716],{},[1163,4775,1170],{},[1163,4777,1669],{},[1163,4779,4780,4781],{},"Currency of the split, such as ",[1726,4782],{"page-key":1728,"path":1729},[1145,4784,4785,4790,4792,4794],{},[1163,4786,4787],{},[851,4788,4789],{},"subaccounts",[1163,4791,1795],{},[1163,4793,1669],{},[1163,4795,4796],{},"Takes an array of subaccount objects used to specify the account and share of each account",[1145,4798,4799,4804,4806,4808],{},[1163,4800,4801],{},[851,4802,4803],{},"bearer_type",[1163,4805,1170],{},[1163,4807,1721],{},[1163,4809,4810,4811,854,4814,854,4817,858,4819,4821],{},"The bearer of the transaction fee: ",[851,4812,4813],{},"all",[851,4815,4816],{},"all-proportional",[851,4818,4379],{},[851,4820,4382],{},". Set it explicitly",[1145,4823,4824,4829,4831,4833],{},[1163,4825,4826],{},[851,4827,4828],{},"bearer_subaccount",[1163,4830,1170],{},[1163,4832,1721],{},[1163,4834,4835,4836,4838,4839],{},"Subaccount code of the bearer. Required if ",[851,4837,4803],{}," is ",[851,4840,4382],{},[793,4842,566],{"id":4843},"subscriptions",[798,4845,4846],{},"Subscription allows you process recurring billing for your customers. The first time you are setting up payments, you can add the following parameters that tells us to continuously charge the customer:",[1139,4848,4849,4861],{},[1142,4850,4851],{},[1145,4852,4853,4855,4857,4859],{},[1148,4854,1150],{},[1148,4856,1153],{},[1148,4858,1653],{},[1148,4860,1156],{},[1158,4862,4863,4889,4903],{},[1145,4864,4865,4870,4872,4874],{},[1163,4866,4867],{},[851,4868,4869],{},"planInterval",[1163,4871,1170],{},[1163,4873,1669],{},[1163,4875,4876,4877,854,4880,854,4883,854,4886],{},"Interval for the plan. Valid intervals are ",[851,4878,4879],{},"daily",[851,4881,4882],{},"weekly",[851,4884,4885],{},"monthly",[851,4887,4888],{},"annually",[1145,4890,4891,4896,4898,4900],{},[1163,4892,4893],{},[851,4894,4895],{},"subscriptionLimit",[1163,4897,1690],{},[1163,4899,1721],{},[1163,4901,4902],{},"The number of times to charge for this subscription",[1145,4904,4905,4910,4912,4914],{},[1163,4906,4907],{},[851,4908,4909],{},"subscriptionStartDate",[1163,4911,1170],{},[1163,4913,1721],{},[1163,4915,4916],{},"The start date for the subscription (after the first charge)",[872,4918,4920],{"className":969,"code":4919,"language":971,"meta":870,"style":870},"const popup = new Paystack()\n\npopup.newTransaction({\n  key: 'pk_domain_xxxxxx',\n  email: 'sub@main.com',\n  amount: 20000,\n  planInterval: 'weekly',\n  onSuccess: (transaction) => {\n    console.log(transaction);\n  },\n  onLoad: (response) => {\n    console.log(\"onLoad: \", response);\n  },\n  onCancel: () => {\n    console.log(\"onCancel\");\n  },\n  onError: (error) => {\n    console.log(\"Error: \", error.message);\n  }\n})\n",[851,4921,4922,4936,4940,4952,4966,4981,4992,5007,5023,5039,5043,5059,5083,5087,5099,5119,5123,5139,5167,5171],{"__ignoreMap":870},[880,4923,4924,4926,4928,4930,4932,4934],{"class":882,"line":63},[880,4925,979],{"class":978},[880,4927,983],{"class":982},[880,4929,987],{"class":986},[880,4931,990],{"class":986},[880,4933,1050],{"class":993},[880,4935,1053],{"class":997},[880,4937,4938],{"class":882,"line":66},[880,4939,1037],{"emptyLinePlaceholder":1036},[880,4941,4942,4944,4946,4948,4950],{"class":882,"line":84},[880,4943,1893],{"class":997},[880,4945,808],{"class":885},[880,4947,1898],{"class":993},[880,4949,1437],{"class":997},[880,4951,1424],{"class":885},[880,4953,4954,4956,4958,4960,4962,4964],{"class":882,"line":75},[880,4955,1907],{"class":1416},[880,4957,862],{"class":885},[880,4959,1023],{"class":900},[880,4961,1914],{"class":904},[880,4963,1029],{"class":900},[880,4965,1919],{"class":885},[880,4967,4968,4970,4972,4974,4977,4979],{"class":882,"line":107},[880,4969,1924],{"class":1416},[880,4971,862],{"class":885},[880,4973,1023],{"class":900},[880,4975,4976],{"class":904},"sub@main.com",[880,4978,1029],{"class":900},[880,4980,1919],{"class":885},[880,4982,4983,4985,4987,4990],{"class":882,"line":134},[880,4984,1940],{"class":1416},[880,4986,862],{"class":885},[880,4988,4989],{"class":1945}," 20000",[880,4991,1919],{"class":885},[880,4993,4994,4997,4999,5001,5003,5005],{"class":882,"line":153},[880,4995,4996],{"class":1416},"  planInterval",[880,4998,862],{"class":885},[880,5000,1023],{"class":900},[880,5002,4882],{"class":904},[880,5004,1029],{"class":900},[880,5006,1919],{"class":885},[880,5008,5009,5011,5013,5015,5017,5019,5021],{"class":882,"line":422},[880,5010,1953],{"class":993},[880,5012,862],{"class":885},[880,5014,1212],{"class":885},[880,5016,1317],{"class":1215},[880,5018,1219],{"class":885},[880,5020,1222],{"class":978},[880,5022,1225],{"class":885},[880,5024,5025,5027,5029,5031,5033,5035,5037],{"class":882,"line":1984},[880,5026,1429],{"class":997},[880,5028,808],{"class":885},[880,5030,1434],{"class":993},[880,5032,1437],{"class":1416},[880,5034,1317],{"class":997},[880,5036,1219],{"class":1416},[880,5038,1001],{"class":885},[880,5040,5041],{"class":882,"line":1990},[880,5042,1987],{"class":885},[880,5044,5045,5047,5049,5051,5053,5055,5057],{"class":882,"line":2008},[880,5046,1993],{"class":993},[880,5048,862],{"class":885},[880,5050,1212],{"class":885},[880,5052,1216],{"class":1215},[880,5054,1219],{"class":885},[880,5056,1222],{"class":978},[880,5058,1225],{"class":885},[880,5060,5061,5063,5065,5067,5069,5071,5073,5075,5077,5079,5081],{"class":882,"line":2035},[880,5062,1429],{"class":997},[880,5064,808],{"class":885},[880,5066,1434],{"class":993},[880,5068,1437],{"class":1416},[880,5070,901],{"class":900},[880,5072,2021],{"class":904},[880,5074,901],{"class":900},[880,5076,1447],{"class":885},[880,5078,2028],{"class":997},[880,5080,1219],{"class":1416},[880,5082,1001],{"class":885},[880,5084,5085],{"class":882,"line":2040},[880,5086,1987],{"class":885},[880,5088,5089,5091,5093,5095,5097],{"class":882,"line":2054},[880,5090,2043],{"class":993},[880,5092,862],{"class":885},[880,5094,1525],{"class":885},[880,5096,1222],{"class":978},[880,5098,1225],{"class":885},[880,5100,5101,5103,5105,5107,5109,5111,5113,5115,5117],{"class":882,"line":2075},[880,5102,1429],{"class":997},[880,5104,808],{"class":885},[880,5106,1434],{"class":993},[880,5108,1437],{"class":1416},[880,5110,901],{"class":900},[880,5112,1508],{"class":904},[880,5114,901],{"class":900},[880,5116,1219],{"class":1416},[880,5118,1001],{"class":885},[880,5120,5121],{"class":882,"line":2080},[880,5122,1987],{"class":885},[880,5124,5125,5127,5129,5131,5133,5135,5137],{"class":882,"line":2098},[880,5126,2083],{"class":993},[880,5128,862],{"class":885},[880,5130,1212],{"class":885},[880,5132,1577],{"class":1215},[880,5134,1219],{"class":885},[880,5136,1222],{"class":978},[880,5138,1225],{"class":885},[880,5140,5141,5143,5145,5147,5149,5151,5153,5155,5157,5159,5161,5163,5165],{"class":882,"line":2127},[880,5142,1429],{"class":997},[880,5144,808],{"class":885},[880,5146,1434],{"class":993},[880,5148,1437],{"class":1416},[880,5150,901],{"class":900},[880,5152,1598],{"class":904},[880,5154,901],{"class":900},[880,5156,1447],{"class":885},[880,5158,1605],{"class":997},[880,5160,808],{"class":885},[880,5162,1305],{"class":997},[880,5164,1219],{"class":1416},[880,5166,1001],{"class":885},[880,5168,5169],{"class":882,"line":2132},[880,5170,1500],{"class":885},[880,5172,5173,5175],{"class":882,"line":3249},[880,5174,2135],{"class":885},[880,5176,1550],{"class":997},[836,5178,5180],{"title":5179,"type":1110},"Subscription amount",[798,5181,5182],{},"The amount specified in the request will be used subsequently for the subscription.",[798,5184,5185,5186,5190,5191,5194],{},"Alternatively, you can create a plan ",[805,5187,5189],{"href":5188},"\u002Fpayments\u002Frecurring\u002Fsubscriptions\u002Fquickstart#step-1-create-a-plan","via the API"," or dashboard and pass the ",[851,5192,5193],{},"planCode"," in the transaction request:",[872,5196,5198],{"className":969,"code":5197,"language":971,"meta":870,"style":870},"const popup = new Paystack()\n\npopup.newTransaction({\n  key: 'pk_domain_xxxxxx',\n  email: 'plan@email.com',\n  amount: 40000,\n  planCode: 'PLN_l6aglbqzebn32c6',\n  onSuccess: (transaction) => {\n    console.log(transaction);\n  },\n  onLoad: (response) => {\n    console.log(\"onLoad: \", response);\n  },\n  onCancel: () => {\n    console.log(\"onCancel\");\n  },\n  onError: (error) => {\n    console.log(\"Error: \", error.message);\n  }\n})\n",[851,5199,5200,5214,5218,5230,5244,5259,5270,5286,5302,5318,5322,5338,5362,5366,5378,5398,5402,5418,5446,5450],{"__ignoreMap":870},[880,5201,5202,5204,5206,5208,5210,5212],{"class":882,"line":63},[880,5203,979],{"class":978},[880,5205,983],{"class":982},[880,5207,987],{"class":986},[880,5209,990],{"class":986},[880,5211,1050],{"class":993},[880,5213,1053],{"class":997},[880,5215,5216],{"class":882,"line":66},[880,5217,1037],{"emptyLinePlaceholder":1036},[880,5219,5220,5222,5224,5226,5228],{"class":882,"line":84},[880,5221,1893],{"class":997},[880,5223,808],{"class":885},[880,5225,1898],{"class":993},[880,5227,1437],{"class":997},[880,5229,1424],{"class":885},[880,5231,5232,5234,5236,5238,5240,5242],{"class":882,"line":75},[880,5233,1907],{"class":1416},[880,5235,862],{"class":885},[880,5237,1023],{"class":900},[880,5239,1914],{"class":904},[880,5241,1029],{"class":900},[880,5243,1919],{"class":885},[880,5245,5246,5248,5250,5252,5255,5257],{"class":882,"line":107},[880,5247,1924],{"class":1416},[880,5249,862],{"class":885},[880,5251,1023],{"class":900},[880,5253,5254],{"class":904},"plan@email.com",[880,5256,1029],{"class":900},[880,5258,1919],{"class":885},[880,5260,5261,5263,5265,5268],{"class":882,"line":134},[880,5262,1940],{"class":1416},[880,5264,862],{"class":885},[880,5266,5267],{"class":1945}," 40000",[880,5269,1919],{"class":885},[880,5271,5272,5275,5277,5279,5282,5284],{"class":882,"line":153},[880,5273,5274],{"class":1416},"  planCode",[880,5276,862],{"class":885},[880,5278,1023],{"class":900},[880,5280,5281],{"class":904},"PLN_l6aglbqzebn32c6",[880,5283,1029],{"class":900},[880,5285,1919],{"class":885},[880,5287,5288,5290,5292,5294,5296,5298,5300],{"class":882,"line":422},[880,5289,1953],{"class":993},[880,5291,862],{"class":885},[880,5293,1212],{"class":885},[880,5295,1317],{"class":1215},[880,5297,1219],{"class":885},[880,5299,1222],{"class":978},[880,5301,1225],{"class":885},[880,5303,5304,5306,5308,5310,5312,5314,5316],{"class":882,"line":1984},[880,5305,1429],{"class":997},[880,5307,808],{"class":885},[880,5309,1434],{"class":993},[880,5311,1437],{"class":1416},[880,5313,1317],{"class":997},[880,5315,1219],{"class":1416},[880,5317,1001],{"class":885},[880,5319,5320],{"class":882,"line":1990},[880,5321,1987],{"class":885},[880,5323,5324,5326,5328,5330,5332,5334,5336],{"class":882,"line":2008},[880,5325,1993],{"class":993},[880,5327,862],{"class":885},[880,5329,1212],{"class":885},[880,5331,1216],{"class":1215},[880,5333,1219],{"class":885},[880,5335,1222],{"class":978},[880,5337,1225],{"class":885},[880,5339,5340,5342,5344,5346,5348,5350,5352,5354,5356,5358,5360],{"class":882,"line":2035},[880,5341,1429],{"class":997},[880,5343,808],{"class":885},[880,5345,1434],{"class":993},[880,5347,1437],{"class":1416},[880,5349,901],{"class":900},[880,5351,2021],{"class":904},[880,5353,901],{"class":900},[880,5355,1447],{"class":885},[880,5357,2028],{"class":997},[880,5359,1219],{"class":1416},[880,5361,1001],{"class":885},[880,5363,5364],{"class":882,"line":2040},[880,5365,1987],{"class":885},[880,5367,5368,5370,5372,5374,5376],{"class":882,"line":2054},[880,5369,2043],{"class":993},[880,5371,862],{"class":885},[880,5373,1525],{"class":885},[880,5375,1222],{"class":978},[880,5377,1225],{"class":885},[880,5379,5380,5382,5384,5386,5388,5390,5392,5394,5396],{"class":882,"line":2075},[880,5381,1429],{"class":997},[880,5383,808],{"class":885},[880,5385,1434],{"class":993},[880,5387,1437],{"class":1416},[880,5389,901],{"class":900},[880,5391,1508],{"class":904},[880,5393,901],{"class":900},[880,5395,1219],{"class":1416},[880,5397,1001],{"class":885},[880,5399,5400],{"class":882,"line":2080},[880,5401,1987],{"class":885},[880,5403,5404,5406,5408,5410,5412,5414,5416],{"class":882,"line":2098},[880,5405,2083],{"class":993},[880,5407,862],{"class":885},[880,5409,1212],{"class":885},[880,5411,1577],{"class":1215},[880,5413,1219],{"class":885},[880,5415,1222],{"class":978},[880,5417,1225],{"class":885},[880,5419,5420,5422,5424,5426,5428,5430,5432,5434,5436,5438,5440,5442,5444],{"class":882,"line":2127},[880,5421,1429],{"class":997},[880,5423,808],{"class":885},[880,5425,1434],{"class":993},[880,5427,1437],{"class":1416},[880,5429,901],{"class":900},[880,5431,1598],{"class":904},[880,5433,901],{"class":900},[880,5435,1447],{"class":885},[880,5437,1605],{"class":997},[880,5439,808],{"class":885},[880,5441,1305],{"class":997},[880,5443,1219],{"class":1416},[880,5445,1001],{"class":885},[880,5447,5448],{"class":882,"line":2132},[880,5449,1500],{"class":885},[880,5451,5452,5454],{"class":882,"line":3249},[880,5453,2135],{"class":885},[880,5455,1550],{"class":997},[1139,5457,5458,5470],{},[1142,5459,5460],{},[1145,5461,5462,5464,5466,5468],{},[1148,5463,1150],{},[1148,5465,1153],{},[1148,5467,1653],{},[1148,5469,1156],{},[1158,5471,5472,5488],{},[1145,5473,5474,5478,5480,5482],{},[1163,5475,5476],{},[851,5477,5193],{},[1163,5479,1170],{},[1163,5481,1669],{},[1163,5483,5484,5485],{},"A valid Paystack plan code for example ",[851,5486,5487],{},"PLN_cujsmvoyq2209ws",[1145,5489,5490,5495,5497,5499],{},[1163,5491,5492],{},[851,5493,5494],{},"subscriptionCount",[1163,5496,1690],{},[1163,5498,1721],{},[1163,5500,5501],{},"The number of subscriptions to create for this plan",[836,5503,5505],{"title":5504,"type":1110},"Plan amount precedence",[798,5506,5507],{},"While amount is a required parameter, the amount used to create the plan takes precedence when subscribing to a plan.",[793,5509,5511],{"id":5510},"preload-transaction","Preload transaction",[798,5513,5514],{},"Preloading a transaction is similar to creating a new transaction but with a little twist. Rather than waiting till the final moment to make a transaction request, you can load the transaction ahead of time.",[798,5516,5517],{},"This method loads a transaction on the Popup without opening it. It returns a function that can be used to open the Popup at a later time. This allows the Popup to load instantly at the point the user is ready to make a payment.",[1131,5519,1099],{"id":5520},"preloadtransactionoptions",[798,5522,5523],{},"This method takes all the general options of a transaction request:",[872,5525,5527],{"className":874,"code":5526,"language":876,"meta":870,"style":870},"\u003Cbutton id=\"make-payment\">Make Payment\u003C\u002Fbutton>\n",[851,5528,5529],{"__ignoreMap":870},[880,5530,5531,5533,5535,5537,5539,5541,5544,5546,5548,5551,5553,5555],{"class":882,"line":63},[880,5532,886],{"class":885},[880,5534,2833],{"class":889},[880,5536,2811],{"class":893},[880,5538,897],{"class":885},[880,5540,901],{"class":900},[880,5542,5543],{"class":904},"make-payment",[880,5545,901],{"class":900},[880,5547,2847],{"class":885},[880,5549,5550],{"class":997},"Make Payment",[880,5552,2853],{"class":885},[880,5554,2833],{"class":889},[880,5556,915],{"class":885},[2859,5558],{"src":5559},"developer-tools\u002Finline-js\u002Fpreload-transaction",[793,5561,5563],{"id":5562},"cancel-transaction","Cancel transaction",[798,5565,5566,5567,5570],{},"There are situations where you want to build a logic to cancel a transaction. The ",[851,5568,5569],{},"cancelTransaction"," method allows you to cancel a transaction and hide the checkout iFrame.",[1131,5572,1093],{"id":5573},"canceltransactionid",[1139,5575,5576,5588],{},[1142,5577,5578],{},[1145,5579,5580,5582,5584,5586],{},[1148,5581,1150],{},[1148,5583,1153],{},[1148,5585,1653],{},[1148,5587,1156],{},[1158,5589,5590],{},[1145,5591,5592,5596,5598,5600],{},[1163,5593,5594],{},[851,5595,1167],{},[1163,5597,1170],{},[1163,5599,1669],{},[1163,5601,5602],{},"Transaction ID of the payment to cancel",[872,5604,5606],{"className":969,"code":5605,"language":971,"meta":870,"style":870},"const popup = new Paystack()\n\nconst transaction = popup.newTransaction({\n  key: 'pk_domain_xxxxx', \u002F\u002F Replace with your public key\n  email: \"demo@example.com\",\n  amount: 10000,\n  onLoad: (transaction) => {\n    window.clearInterval(redirectTimer);\n  }\n});\n\nlet timeElapsed = 0;\nconst timeLimit = 2;\nconst redirectURL = 'https:\u002F\u002Fyour.redirecturl.com';\nconst redirectTimer = setInterval(() => {\n  timeElapsed += 1;\n  if (timeElapsed === timeLimit) {\n    popup.cancelTransaction(transaction.id);\n    window.location.href = redirectURL;\n  }\n}, 1000);\n",[851,5607,5608,5622,5626,5645,5663,5678,5689,5705,5724,5728,5736,5740,5755,5769,5787,5807,5819,5837,5858,5878,5882],{"__ignoreMap":870},[880,5609,5610,5612,5614,5616,5618,5620],{"class":882,"line":63},[880,5611,979],{"class":978},[880,5613,983],{"class":982},[880,5615,987],{"class":986},[880,5617,990],{"class":986},[880,5619,1050],{"class":993},[880,5621,1053],{"class":997},[880,5623,5624],{"class":882,"line":66},[880,5625,1037],{"emptyLinePlaceholder":1036},[880,5627,5628,5630,5633,5635,5637,5639,5641,5643],{"class":882,"line":84},[880,5629,979],{"class":978},[880,5631,5632],{"class":982}," transaction",[880,5634,987],{"class":986},[880,5636,983],{"class":997},[880,5638,808],{"class":885},[880,5640,1898],{"class":993},[880,5642,1437],{"class":997},[880,5644,1424],{"class":885},[880,5646,5647,5649,5651,5653,5656,5658,5660],{"class":882,"line":75},[880,5648,1907],{"class":1416},[880,5650,862],{"class":885},[880,5652,1023],{"class":900},[880,5654,5655],{"class":904},"pk_domain_xxxxx",[880,5657,1029],{"class":900},[880,5659,1447],{"class":885},[880,5661,5662],{"class":1230}," \u002F\u002F Replace with your public key\n",[880,5664,5665,5667,5669,5671,5674,5676],{"class":882,"line":107},[880,5666,1924],{"class":1416},[880,5668,862],{"class":885},[880,5670,2908],{"class":900},[880,5672,5673],{"class":904},"demo@example.com",[880,5675,901],{"class":900},[880,5677,1919],{"class":885},[880,5679,5680,5682,5684,5687],{"class":882,"line":134},[880,5681,1940],{"class":1416},[880,5683,862],{"class":885},[880,5685,5686],{"class":1945}," 10000",[880,5688,1919],{"class":885},[880,5690,5691,5693,5695,5697,5699,5701,5703],{"class":882,"line":153},[880,5692,1993],{"class":993},[880,5694,862],{"class":885},[880,5696,1212],{"class":885},[880,5698,1317],{"class":1215},[880,5700,1219],{"class":885},[880,5702,1222],{"class":978},[880,5704,1225],{"class":885},[880,5706,5707,5710,5712,5715,5717,5720,5722],{"class":882,"line":422},[880,5708,5709],{"class":997},"    window",[880,5711,808],{"class":885},[880,5713,5714],{"class":993},"clearInterval",[880,5716,1437],{"class":1416},[880,5718,5719],{"class":997},"redirectTimer",[880,5721,1219],{"class":1416},[880,5723,1001],{"class":885},[880,5725,5726],{"class":882,"line":1984},[880,5727,1500],{"class":885},[880,5729,5730,5732,5734],{"class":882,"line":1990},[880,5731,2135],{"class":885},[880,5733,1219],{"class":997},[880,5735,1001],{"class":885},[880,5737,5738],{"class":882,"line":2008},[880,5739,1037],{"emptyLinePlaceholder":1036},[880,5741,5742,5745,5748,5750,5753],{"class":882,"line":2035},[880,5743,5744],{"class":978},"let",[880,5746,5747],{"class":997}," timeElapsed ",[880,5749,897],{"class":986},[880,5751,5752],{"class":1945}," 0",[880,5754,1001],{"class":885},[880,5756,5757,5759,5762,5764,5767],{"class":882,"line":2040},[880,5758,979],{"class":978},[880,5760,5761],{"class":982}," timeLimit",[880,5763,987],{"class":986},[880,5765,5766],{"class":1945}," 2",[880,5768,1001],{"class":885},[880,5770,5771,5773,5776,5778,5780,5783,5785],{"class":882,"line":2054},[880,5772,979],{"class":978},[880,5774,5775],{"class":982}," redirectURL",[880,5777,987],{"class":986},[880,5779,1023],{"class":900},[880,5781,5782],{"class":904},"https:\u002F\u002Fyour.redirecturl.com",[880,5784,1029],{"class":900},[880,5786,1001],{"class":885},[880,5788,5789,5791,5794,5796,5799,5801,5803,5805],{"class":882,"line":2075},[880,5790,979],{"class":978},[880,5792,5793],{"class":982}," redirectTimer",[880,5795,987],{"class":986},[880,5797,5798],{"class":993}," setInterval",[880,5800,1437],{"class":997},[880,5802,998],{"class":885},[880,5804,1222],{"class":978},[880,5806,1225],{"class":885},[880,5808,5809,5812,5814,5817],{"class":882,"line":2080},[880,5810,5811],{"class":997},"  timeElapsed",[880,5813,3304],{"class":986},[880,5815,5816],{"class":1945}," 1",[880,5818,1001],{"class":885},[880,5820,5821,5823,5825,5828,5831,5833,5835],{"class":882,"line":2098},[880,5822,1413],{"class":1013},[880,5824,1212],{"class":1416},[880,5826,5827],{"class":997},"timeElapsed",[880,5829,5830],{"class":986}," ===",[880,5832,5761],{"class":997},[880,5834,1421],{"class":1416},[880,5836,1424],{"class":885},[880,5838,5839,5842,5844,5846,5848,5850,5852,5854,5856],{"class":882,"line":2127},[880,5840,5841],{"class":997},"    popup",[880,5843,808],{"class":885},[880,5845,5569],{"class":993},[880,5847,1437],{"class":1416},[880,5849,1317],{"class":997},[880,5851,808],{"class":885},[880,5853,1167],{"class":997},[880,5855,1219],{"class":1416},[880,5857,1001],{"class":885},[880,5859,5860,5862,5864,5867,5869,5872,5874,5876],{"class":882,"line":2132},[880,5861,5709],{"class":997},[880,5863,808],{"class":885},[880,5865,5866],{"class":997},"location",[880,5868,808],{"class":885},[880,5870,5871],{"class":997},"href",[880,5873,987],{"class":986},[880,5875,5775],{"class":997},[880,5877,1001],{"class":885},[880,5879,5880],{"class":882,"line":3249},[880,5881,1500],{"class":885},[880,5883,5884,5887,5890,5892],{"class":882,"line":3265},[880,5885,5886],{"class":885},"},",[880,5888,5889],{"class":1945}," 1000",[880,5891,1219],{"class":997},[880,5893,1001],{"class":885},[5895,5896,5897],"style",{},"html pre.shiki code .s7Vxm, html code.shiki .s7Vxm{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#ADBAC7}html pre.shiki code .sLsO-, html code.shiki .sLsO-{--shiki-light:#39ADB5;--shiki-default:#005CC5;--shiki-dark:#8DDB8C}html pre.shiki code .sO5ea, html code.shiki .sO5ea{--shiki-light:#9C3EDA;--shiki-default:#005CC5;--shiki-dark:#8DDB8C}html pre.shiki code .sNG8c, html code.shiki .sNG8c{--shiki-light:#39ADB5;--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 pre.shiki code .sOv1k, html code.shiki .sOv1k{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#96D0FF}html pre.shiki code .s2aQn, html code.shiki .s2aQn{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#8DDB8C}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 .sUhM6, html code.shiki .sUhM6{--shiki-light:#E53935;--shiki-default:#22863A;--shiki-dark:#8DDB8C}html pre.shiki code .sWyFr, html code.shiki .sWyFr{--shiki-light:#9C3EDA;--shiki-default:#6F42C1;--shiki-dark:#6CB6FF}html pre.shiki code .s0zq4, html code.shiki .s0zq4{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#F69D50}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 .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 .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 .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 .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}html pre.shiki code .sOnBC, html code.shiki .sOnBC{--shiki-light:#E53935;--shiki-default:#24292E;--shiki-dark:#ADBAC7}html pre.shiki code .sCI7e, html code.shiki .sCI7e{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#6CB6FF}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 .sTNDG, html code.shiki .sTNDG{--shiki-light:#E53935;--shiki-default:#032F62;--shiki-dark:#96D0FF}html pre.shiki code .slzs_, html code.shiki .slzs_{--shiki-light:#6182B8;--shiki-default:#005CC5;--shiki-dark:#6CB6FF}",{"title":870,"searchDepth":66,"depth":66,"links":5899},[5900,5901,5902,5903,5904,5911,5912,5916,5919,5922,5923,5924,5925,5928],{"id":795,"depth":66,"text":796},{"id":811,"depth":66,"text":812},{"id":845,"depth":66,"text":846},{"id":1056,"depth":66,"text":1057},{"id":1123,"depth":66,"text":1124,"children":5905},[5906,5907,5908,5909,5910],{"id":1133,"depth":84,"text":1134},{"id":1244,"depth":84,"text":1245},{"id":1366,"depth":84,"text":1367},{"id":1507,"depth":84,"text":1508},{"id":1557,"depth":84,"text":1558},{"id":1620,"depth":66,"text":1621},{"id":1849,"depth":66,"text":1850,"children":5913},[5914,5915],{"id":1862,"depth":84,"text":1081},{"id":2140,"depth":84,"text":1075},{"id":2390,"depth":66,"text":2391,"children":5917},[5918],{"id":2412,"depth":84,"text":1105},{"id":2864,"depth":66,"text":2865,"children":5920},[5921],{"id":3976,"depth":84,"text":1087},{"id":4054,"depth":66,"text":4055},{"id":4403,"depth":66,"text":4404},{"id":4843,"depth":66,"text":566},{"id":5510,"depth":66,"text":5511,"children":5926},[5927],{"id":5520,"depth":84,"text":1099},{"id":5562,"depth":66,"text":5563,"children":5929},[5930],{"id":5573,"depth":84,"text":1093},"Paystack's browser JavaScript library for accepting payments in web apps.","md",{},{"order":66},{"title":194,"description":5931},"hEDJQZeXVdzFtunrjypw-gW5ljoX_tMVQSt0-dgyeg4",1794998081530]