[{"data":1,"prerenderedAt":2721},["ShallowReactive",2],{"docs-navigation":3,"page-\u002Fgh\u002Fdeveloper-tools\u002Fmobile-sdks\u002Fflutter":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":207,"body":789,"description":2715,"extension":2716,"markets":18,"meta":2717,"navigation":2718,"path":208,"seo":2719,"stem":209,"type":2090,"whats_next":18,"__hash__":2720},"content\u002Fdeveloper-tools\u002F3.mobile-sdks\u002Fflutter.md",{"type":790,"value":791,"toc":2703},"minimark",[792,814,819,822,832,835,839,842,854,883,887,896,923,938,949,953,972,2113,2122,2129,2133,2140,2149,2154,2166,2170,2173,2231,2240,2246,2308,2311,2318,2350,2359,2363,2435,2453,2456,2461,2525,2528,2537,2589,2592,2627,2632,2699],[793,794,796],"callout",{"type":795},"warning",[797,798,799,800,807,808,813],"p",{},"The Flutter SDK is currently in beta. If you encounter any issues or have suggestions, you can ",[801,802,806],"a",{"href":803,"rel":804},"https:\u002F\u002Fgithub.com\u002FPaystackOSS\u002Fpaystack_flutter\u002Fissues",[805],"nofollow","create an issue"," or ",[801,809,812],{"href":810,"rel":811},"https:\u002F\u002Fgithub.com\u002FPaystackOSS\u002Fpaystack_flutter\u002Fpulls",[805],"open a PR",".",[815,816,818],"h2",{"id":817},"introduction","Introduction",[797,820,821],{},"The Paystack Flutter SDK provides methods that let developers build a secure and convenient payment flow for Flutter applications. Integration is a two-step process:",[823,824,825,829],"ol",{},[826,827,828],"li",{},"Initiate the transaction on the server",[826,830,831],{},"Complete it on the SDK",[797,833,834],{},"This keeps your secret key away from the client side, which is a secure standard practice.",[815,836,838],{"id":837},"project-requirements","Project requirements",[797,840,841],{},"When building with the Flutter SDK, ensure your project meets these requirements:",[843,844,845,848,851],"ul",{},[826,846,847],{},"Flutter >= 3.0.0",[826,849,850],{},"iOS >= 13",[826,852,853],{},"Android minimum SDK 23 and compile SDK 34",[793,855,856],{"type":795},[797,857,858,859,863,864,866,867,870,871,874,875,878,879,882],{},"Flutter 3.3.0 and below use ",[860,861,862],"code",{},"FlutterActivity"," as the Android base class. Because ",[860,865,862],{}," does not inherit from ",[860,868,869],{},"ComponentActivity",", you should change it to ",[860,872,873],{},"FlutterFragmentActivity"," in ",[860,876,877],{},"MainActivity"," inside the ",[860,880,881],{},"android"," folder of your project.",[815,884,886],{"id":885},"getting-started","Getting started",[797,888,889,890,895],{},"To add the ",[801,891,894],{"href":892,"rel":893},"https:\u002F\u002Fpub.dev\u002Fpackages\u002Fpaystack_flutter_sdk",[805],"Paystack Flutter SDK"," to your project, run the command below in your terminal:",[897,898,903],"pre",{"className":899,"code":900,"language":901,"meta":902,"style":902},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","flutter pub add paystack_flutter_sdk\n","bash","",[860,904,905],{"__ignoreMap":902},[906,907,909,913,917,920],"span",{"class":908,"line":63},"line",[906,910,912],{"class":911},"s0zq4","flutter",[906,914,916],{"class":915},"sOv1k"," pub",[906,918,919],{"class":915}," add",[906,921,922],{"class":915}," paystack_flutter_sdk\n",[797,924,925,926,929,930,933,934,937],{},"This command adds the ",[860,927,928],{},"paystack_flutter_sdk"," to your package’s dependencies in the ",[860,931,932],{},"pubspec.yaml"," file and installs it for usage in your project. To use the library, import it in your ",[860,935,936],{},".dart"," file as shown below:",[897,939,943],{"className":940,"code":941,"language":942,"meta":902,"style":902},"language-dart shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","import 'package:paystack_flutter_sdk\u002Fpaystack_flutter_sdk.dart';\n","dart",[860,944,945],{"__ignoreMap":902},[906,946,947],{"class":908,"line":63},[906,948,941],{},[815,950,952],{"id":951},"initialize-transaction","Initialize transaction",[797,954,955,956,959,960,962,963,966,967,971],{},"The SDK requires an ",[860,957,958],{},"access_code"," to display the UI component that accepts payment. To get the ",[860,961,958],{},", make a ",[860,964,965],{},"POST"," request to the ",[801,968,970],{"href":969},"\u002Fapi\u002Ftransaction#initialize","Initialize Transaction"," endpoint from your server:",[973,974,975,1069,1641,1982],"request-response",{},[976,977,978],"template",{"v-slot:curl":902},[897,979,981],{"className":899,"code":980,"language":901,"meta":902,"style":902},"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",[860,982,983,995,1017,1030,1041,1046,1051,1061],{"__ignoreMap":902},[906,984,985,988,991],{"class":908,"line":63},[906,986,987],{"class":911},"curl",[906,989,990],{"class":915}," https:\u002F\u002Fapi.paystack.co\u002Ftransaction\u002Finitialize",[906,992,994],{"class":993},"s8jVp"," \\\n",[906,996,997,1001,1005,1008,1012,1015],{"class":908,"line":66},[906,998,1000],{"class":999},"scI3H","  -H",[906,1002,1004],{"class":1003},"sO3A-"," \"",[906,1006,1007],{"class":915},"Authorization: Bearer ",[906,1009,1011],{"class":1010},"swCDk","$PAYSTACK_SECRET_KEY",[906,1013,1014],{"class":1003},"\"",[906,1016,994],{"class":993},[906,1018,1019,1021,1023,1026,1028],{"class":908,"line":84},[906,1020,1000],{"class":999},[906,1022,1004],{"class":1003},[906,1024,1025],{"class":915},"Content-Type: application\u002Fjson",[906,1027,1014],{"class":1003},[906,1029,994],{"class":993},[906,1031,1032,1035,1038],{"class":908,"line":75},[906,1033,1034],{"class":999},"  -d",[906,1036,1037],{"class":1003}," '",[906,1039,1040],{"class":915},"{\n",[906,1042,1043],{"class":908,"line":107},[906,1044,1045],{"class":915},"    \"email\": \"customer@email.com\",\n",[906,1047,1048],{"class":908,"line":134},[906,1049,1050],{"class":915},"    \"amount\": 500000\n",[906,1052,1053,1056,1059],{"class":908,"line":153},[906,1054,1055],{"class":915},"  }",[906,1057,1058],{"class":1003},"'",[906,1060,994],{"class":993},[906,1062,1063,1066],{"class":908,"line":422},[906,1064,1065],{"class":999},"  -X",[906,1067,1068],{"class":915}," POST\n",[976,1070,1071],{"v-slot:js":902},[897,1072,1076],{"className":1073,"code":1074,"language":1075,"meta":902,"style":902},"language-javascript shiki shiki-themes material-theme-lighter github-light github-dark-dimmed","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","javascript",[860,1077,1078,1113,1119,1140,1164,1179,1188,1192,1204,1222,1235,1252,1268,1278,1313,1335,1341,1347,1352,1389,1405,1438,1452,1461,1488,1526,1535,1544,1549,1580,1598,1607,1612,1627],{"__ignoreMap":902},[906,1079,1080,1084,1088,1092,1096,1099,1101,1104,1106,1109],{"class":908,"line":63},[906,1081,1083],{"class":1082},"sAeZB","const",[906,1085,1087],{"class":1086},"s1fxI"," https",[906,1089,1091],{"class":1090},"s6LNo"," =",[906,1093,1095],{"class":1094},"sENpr"," require",[906,1097,1098],{"class":1010},"(",[906,1100,1014],{"class":1003},[906,1102,1103],{"class":915},"https",[906,1105,1014],{"class":1003},[906,1107,1108],{"class":1010},")",[906,1110,1112],{"class":1111},"s7Vxm",";\n",[906,1114,1115],{"class":908,"line":66},[906,1116,1118],{"emptyLinePlaceholder":1117},true,"\n",[906,1120,1121,1123,1126,1128,1131,1133,1136,1138],{"class":908,"line":84},[906,1122,1083],{"class":1082},[906,1124,1125],{"class":1086}," params",[906,1127,1091],{"class":1090},[906,1129,1130],{"class":1086}," JSON",[906,1132,813],{"class":1111},[906,1134,1135],{"class":1094},"stringify",[906,1137,1098],{"class":1010},[906,1139,1040],{"class":1111},[906,1141,1142,1145,1149,1151,1154,1156,1159,1161],{"class":908,"line":75},[906,1143,1144],{"class":1003},"  \"",[906,1146,1148],{"class":1147},"sTNDG","email",[906,1150,1014],{"class":1003},[906,1152,1153],{"class":1111},":",[906,1155,1004],{"class":1003},[906,1157,1158],{"class":915},"customer@email.com",[906,1160,1014],{"class":1003},[906,1162,1163],{"class":1111},",\n",[906,1165,1166,1168,1171,1173,1175],{"class":908,"line":107},[906,1167,1144],{"class":1003},[906,1169,1170],{"class":1147},"amount",[906,1172,1014],{"class":1003},[906,1174,1153],{"class":1111},[906,1176,1178],{"class":1177},"sCI7e"," 500000\n",[906,1180,1181,1184,1186],{"class":908,"line":134},[906,1182,1183],{"class":1111},"}",[906,1185,1108],{"class":1010},[906,1187,1112],{"class":1111},[906,1189,1190],{"class":908,"line":153},[906,1191,1118],{"emptyLinePlaceholder":1117},[906,1193,1194,1196,1199,1201],{"class":908,"line":422},[906,1195,1083],{"class":1082},[906,1197,1198],{"class":1086}," options",[906,1200,1091],{"class":1090},[906,1202,1203],{"class":1111}," {\n",[906,1205,1207,1211,1213,1215,1218,1220],{"class":908,"line":1206},9,[906,1208,1210],{"class":1209},"sOnBC","  hostname",[906,1212,1153],{"class":1111},[906,1214,1004],{"class":1003},[906,1216,1217],{"class":915},"api.paystack.co",[906,1219,1014],{"class":1003},[906,1221,1163],{"class":1111},[906,1223,1225,1228,1230,1233],{"class":908,"line":1224},10,[906,1226,1227],{"class":1209},"  port",[906,1229,1153],{"class":1111},[906,1231,1232],{"class":1177}," 443",[906,1234,1163],{"class":1111},[906,1236,1238,1241,1243,1245,1248,1250],{"class":908,"line":1237},11,[906,1239,1240],{"class":1209},"  path",[906,1242,1153],{"class":1111},[906,1244,1004],{"class":1003},[906,1246,1247],{"class":915},"\u002Ftransaction\u002Finitialize",[906,1249,1014],{"class":1003},[906,1251,1163],{"class":1111},[906,1253,1255,1258,1260,1262,1264,1266],{"class":908,"line":1254},12,[906,1256,1257],{"class":1209},"  method",[906,1259,1153],{"class":1111},[906,1261,1004],{"class":1003},[906,1263,965],{"class":915},[906,1265,1014],{"class":1003},[906,1267,1163],{"class":1111},[906,1269,1271,1274,1276],{"class":908,"line":1270},13,[906,1272,1273],{"class":1209},"  headers",[906,1275,1153],{"class":1111},[906,1277,1203],{"class":1111},[906,1279,1281,1284,1286,1289,1292,1295,1298,1300,1303,1305,1308,1311],{"class":908,"line":1280},14,[906,1282,1283],{"class":1209},"    Authorization",[906,1285,1153],{"class":1111},[906,1287,1288],{"class":1003}," `",[906,1290,1291],{"class":915},"Bearer ",[906,1293,1294],{"class":1003},"${",[906,1296,1297],{"class":1010},"process",[906,1299,813],{"class":1003},[906,1301,1302],{"class":1010},"env",[906,1304,813],{"class":1003},[906,1306,1307],{"class":1086},"PAYSTACK_SECRET_KEY",[906,1309,1310],{"class":1003},"}`",[906,1312,1163],{"class":1111},[906,1314,1316,1319,1322,1324,1326,1328,1331,1333],{"class":908,"line":1315},15,[906,1317,1318],{"class":1003},"    \"",[906,1320,1321],{"class":1147},"Content-Type",[906,1323,1014],{"class":1003},[906,1325,1153],{"class":1111},[906,1327,1004],{"class":1003},[906,1329,1330],{"class":915},"application\u002Fjson",[906,1332,1014],{"class":1003},[906,1334,1163],{"class":1111},[906,1336,1338],{"class":908,"line":1337},16,[906,1339,1340],{"class":1111},"  },\n",[906,1342,1344],{"class":908,"line":1343},17,[906,1345,1346],{"class":1111},"};\n",[906,1348,1350],{"class":908,"line":1349},18,[906,1351,1118],{"emptyLinePlaceholder":1117},[906,1353,1355,1357,1360,1362,1364,1366,1369,1372,1375,1378,1382,1384,1387],{"class":908,"line":1354},19,[906,1356,1083],{"class":1082},[906,1358,1359],{"class":1086}," req",[906,1361,1091],{"class":1090},[906,1363,1087],{"class":1010},[906,1365,813],{"class":1111},[906,1367,1368],{"class":1094},"request",[906,1370,1371],{"class":1010},"(options",[906,1373,1374],{"class":1111},",",[906,1376,1377],{"class":1111}," (",[906,1379,1381],{"class":1380},"semhU","res",[906,1383,1108],{"class":1111},[906,1385,1386],{"class":1082}," =>",[906,1388,1203],{"class":1111},[906,1390,1392,1395,1398,1400,1403],{"class":908,"line":1391},20,[906,1393,1394],{"class":1082},"  let",[906,1396,1397],{"class":1010}," data",[906,1399,1091],{"class":1090},[906,1401,1402],{"class":1003}," \"\"",[906,1404,1112],{"class":1111},[906,1406,1408,1411,1413,1416,1418,1420,1423,1425,1427,1429,1432,1434,1436],{"class":908,"line":1407},21,[906,1409,1410],{"class":1010},"  res",[906,1412,813],{"class":1111},[906,1414,1415],{"class":1094},"on",[906,1417,1098],{"class":1209},[906,1419,1014],{"class":1003},[906,1421,1422],{"class":915},"data",[906,1424,1014],{"class":1003},[906,1426,1374],{"class":1111},[906,1428,1377],{"class":1111},[906,1430,1431],{"class":1380},"chunk",[906,1433,1108],{"class":1111},[906,1435,1386],{"class":1082},[906,1437,1203],{"class":1111},[906,1439,1441,1444,1447,1450],{"class":908,"line":1440},22,[906,1442,1443],{"class":1010},"    data",[906,1445,1446],{"class":1090}," +=",[906,1448,1449],{"class":1010}," chunk",[906,1451,1112],{"class":1111},[906,1453,1455,1457,1459],{"class":908,"line":1454},23,[906,1456,1055],{"class":1111},[906,1458,1108],{"class":1209},[906,1460,1112],{"class":1111},[906,1462,1464,1466,1468,1470,1472,1474,1477,1479,1481,1484,1486],{"class":908,"line":1463},24,[906,1465,1410],{"class":1010},[906,1467,813],{"class":1111},[906,1469,1415],{"class":1094},[906,1471,1098],{"class":1209},[906,1473,1014],{"class":1003},[906,1475,1476],{"class":915},"end",[906,1478,1014],{"class":1003},[906,1480,1374],{"class":1111},[906,1482,1483],{"class":1111}," ()",[906,1485,1386],{"class":1082},[906,1487,1203],{"class":1111},[906,1489,1491,1494,1496,1499,1501,1503,1505,1508,1510,1512,1514,1517,1519,1521,1524],{"class":908,"line":1490},25,[906,1492,1493],{"class":1010},"    console",[906,1495,813],{"class":1111},[906,1497,1498],{"class":1094},"log",[906,1500,1098],{"class":1209},[906,1502,1381],{"class":1010},[906,1504,813],{"class":1111},[906,1506,1507],{"class":1010},"statusCode",[906,1509,1374],{"class":1111},[906,1511,1130],{"class":1086},[906,1513,813],{"class":1111},[906,1515,1516],{"class":1094},"parse",[906,1518,1098],{"class":1209},[906,1520,1422],{"class":1010},[906,1522,1523],{"class":1209},"))",[906,1525,1112],{"class":1111},[906,1527,1529,1531,1533],{"class":908,"line":1528},26,[906,1530,1055],{"class":1111},[906,1532,1108],{"class":1209},[906,1534,1112],{"class":1111},[906,1536,1538,1540,1542],{"class":908,"line":1537},27,[906,1539,1183],{"class":1111},[906,1541,1108],{"class":1010},[906,1543,1112],{"class":1111},[906,1545,1547],{"class":908,"line":1546},28,[906,1548,1118],{"emptyLinePlaceholder":1117},[906,1550,1552,1555,1557,1559,1561,1563,1566,1568,1570,1572,1574,1576,1578],{"class":908,"line":1551},29,[906,1553,1554],{"class":1010},"req",[906,1556,813],{"class":1111},[906,1558,1415],{"class":1094},[906,1560,1098],{"class":1010},[906,1562,1014],{"class":1003},[906,1564,1565],{"class":915},"error",[906,1567,1014],{"class":1003},[906,1569,1374],{"class":1111},[906,1571,1377],{"class":1111},[906,1573,1565],{"class":1380},[906,1575,1108],{"class":1111},[906,1577,1386],{"class":1082},[906,1579,1203],{"class":1111},[906,1581,1583,1586,1588,1590,1592,1594,1596],{"class":908,"line":1582},30,[906,1584,1585],{"class":1010},"  console",[906,1587,813],{"class":1111},[906,1589,1565],{"class":1094},[906,1591,1098],{"class":1209},[906,1593,1565],{"class":1010},[906,1595,1108],{"class":1209},[906,1597,1112],{"class":1111},[906,1599,1601,1603,1605],{"class":908,"line":1600},31,[906,1602,1183],{"class":1111},[906,1604,1108],{"class":1010},[906,1606,1112],{"class":1111},[906,1608,1610],{"class":908,"line":1609},32,[906,1611,1118],{"emptyLinePlaceholder":1117},[906,1613,1615,1617,1619,1622,1625],{"class":908,"line":1614},33,[906,1616,1554],{"class":1010},[906,1618,813],{"class":1111},[906,1620,1621],{"class":1094},"write",[906,1623,1624],{"class":1010},"(params)",[906,1626,1112],{"class":1111},[906,1628,1630,1632,1634,1636,1639],{"class":908,"line":1629},34,[906,1631,1554],{"class":1010},[906,1633,813],{"class":1111},[906,1635,1476],{"class":1094},[906,1637,1638],{"class":1010},"()",[906,1640,1112],{"class":1111},[976,1642,1643],{"v-slot:php":902},[897,1644,1648],{"className":1645,"code":1646,"language":1647,"meta":902,"style":902},"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",[860,1649,1650,1658,1672,1690,1705,1710,1714,1730,1748,1764,1777,1788,1800,1812,1824,1839,1857,1868,1892,1902,1913,1918,1923,1942,1977],{"__ignoreMap":902},[906,1651,1652,1655],{"class":908,"line":63},[906,1653,1654],{"class":1090},"\u003C?",[906,1656,1657],{"class":1086},"php\n",[906,1659,1660,1663,1666,1669],{"class":908,"line":66},[906,1661,1662],{"class":1111},"$",[906,1664,1665],{"class":1010},"fields ",[906,1667,1668],{"class":1090},"=",[906,1670,1671],{"class":1111}," [\n",[906,1673,1674,1676,1678,1680,1682,1684,1686,1688],{"class":908,"line":84},[906,1675,1144],{"class":1003},[906,1677,1148],{"class":915},[906,1679,1014],{"class":1003},[906,1681,1386],{"class":1090},[906,1683,1004],{"class":1003},[906,1685,1158],{"class":915},[906,1687,1014],{"class":1003},[906,1689,1163],{"class":1111},[906,1691,1692,1694,1696,1698,1700,1703],{"class":908,"line":75},[906,1693,1144],{"class":1003},[906,1695,1170],{"class":915},[906,1697,1014],{"class":1003},[906,1699,1386],{"class":1090},[906,1701,1702],{"class":1177}," 500000",[906,1704,1163],{"class":1111},[906,1706,1707],{"class":908,"line":107},[906,1708,1709],{"class":1111},"];\n",[906,1711,1712],{"class":908,"line":134},[906,1713,1118],{"emptyLinePlaceholder":1117},[906,1715,1716,1718,1721,1723,1727],{"class":908,"line":153},[906,1717,1662],{"class":1111},[906,1719,1720],{"class":1010},"curl ",[906,1722,1668],{"class":1090},[906,1724,1726],{"class":1725},"slzs_"," curl_init",[906,1728,1729],{"class":1111},"();\n",[906,1731,1732,1735,1738,1740,1742,1745],{"class":908,"line":422},[906,1733,1734],{"class":1725},"curl_setopt_array",[906,1736,1737],{"class":1111},"($",[906,1739,987],{"class":1010},[906,1741,1374],{"class":1111},[906,1743,1744],{"class":1725}," array",[906,1746,1747],{"class":1111},"(\n",[906,1749,1750,1753,1755,1757,1760,1762],{"class":908,"line":1206},[906,1751,1752],{"class":1086},"  CURLOPT_URL",[906,1754,1386],{"class":1090},[906,1756,1004],{"class":1003},[906,1758,1759],{"class":915},"https:\u002F\u002Fapi.paystack.co\u002Ftransaction\u002Finitialize",[906,1761,1014],{"class":1003},[906,1763,1163],{"class":1111},[906,1765,1766,1769,1771,1775],{"class":908,"line":1224},[906,1767,1768],{"class":1086},"  CURLOPT_RETURNTRANSFER",[906,1770,1386],{"class":1090},[906,1772,1774],{"class":1773},"sNG8c"," true",[906,1776,1163],{"class":1111},[906,1778,1779,1782,1784,1786],{"class":908,"line":1237},[906,1780,1781],{"class":1086},"  CURLOPT_ENCODING",[906,1783,1386],{"class":1090},[906,1785,1402],{"class":1003},[906,1787,1163],{"class":1111},[906,1789,1790,1793,1795,1798],{"class":908,"line":1254},[906,1791,1792],{"class":1086},"  CURLOPT_MAXREDIRS",[906,1794,1386],{"class":1090},[906,1796,1797],{"class":1177}," 10",[906,1799,1163],{"class":1111},[906,1801,1802,1805,1807,1810],{"class":908,"line":1270},[906,1803,1804],{"class":1086},"  CURLOPT_TIMEOUT",[906,1806,1386],{"class":1090},[906,1808,1809],{"class":1177}," 30",[906,1811,1163],{"class":1111},[906,1813,1814,1817,1819,1822],{"class":908,"line":1280},[906,1815,1816],{"class":1086},"  CURLOPT_HTTP_VERSION",[906,1818,1386],{"class":1090},[906,1820,1821],{"class":1086}," CURL_HTTP_VERSION_1_1",[906,1823,1163],{"class":1111},[906,1825,1826,1829,1831,1833,1835,1837],{"class":908,"line":1315},[906,1827,1828],{"class":1086},"  CURLOPT_CUSTOMREQUEST",[906,1830,1386],{"class":1090},[906,1832,1004],{"class":1003},[906,1834,965],{"class":915},[906,1836,1014],{"class":1003},[906,1838,1163],{"class":1111},[906,1840,1841,1844,1846,1849,1851,1854],{"class":908,"line":1337},[906,1842,1843],{"class":1086},"  CURLOPT_POSTFIELDS",[906,1845,1386],{"class":1090},[906,1847,1848],{"class":1725}," json_encode",[906,1850,1737],{"class":1111},[906,1852,1853],{"class":1010},"fields",[906,1855,1856],{"class":1111},"),\n",[906,1858,1859,1862,1864,1866],{"class":908,"line":1343},[906,1860,1861],{"class":1086},"  CURLOPT_HTTPHEADER",[906,1863,1386],{"class":1090},[906,1865,1744],{"class":1725},[906,1867,1747],{"class":1111},[906,1869,1870,1872,1874,1876,1879,1882,1884,1886,1888,1890],{"class":908,"line":1349},[906,1871,1318],{"class":1003},[906,1873,1007],{"class":915},[906,1875,1014],{"class":1003},[906,1877,1878],{"class":1090}," .",[906,1880,1881],{"class":1725}," getenv",[906,1883,1098],{"class":1111},[906,1885,1014],{"class":1003},[906,1887,1307],{"class":915},[906,1889,1014],{"class":1003},[906,1891,1856],{"class":1111},[906,1893,1894,1896,1898,1900],{"class":908,"line":1354},[906,1895,1318],{"class":1003},[906,1897,1025],{"class":915},[906,1899,1014],{"class":1003},[906,1901,1163],{"class":1111},[906,1903,1904,1906,1909,1911],{"class":908,"line":1391},[906,1905,1318],{"class":1003},[906,1907,1908],{"class":915},"Cache-Control: no-cache",[906,1910,1014],{"class":1003},[906,1912,1163],{"class":1111},[906,1914,1915],{"class":908,"line":1407},[906,1916,1917],{"class":1111},"  ),\n",[906,1919,1920],{"class":908,"line":1440},[906,1921,1922],{"class":1111},"));\n",[906,1924,1925,1927,1930,1932,1935,1937,1939],{"class":908,"line":1454},[906,1926,1662],{"class":1111},[906,1928,1929],{"class":1010},"response ",[906,1931,1668],{"class":1090},[906,1933,1934],{"class":1725}," curl_exec",[906,1936,1737],{"class":1111},[906,1938,987],{"class":1010},[906,1940,1941],{"class":1111},");\n",[906,1943,1944,1947,1950,1952,1954,1956,1959,1961,1963,1965,1967,1969,1972,1975],{"class":908,"line":1463},[906,1945,1946],{"class":1725},"echo",[906,1948,1949],{"class":1725}," curl_getinfo",[906,1951,1737],{"class":1111},[906,1953,987],{"class":1010},[906,1955,1374],{"class":1111},[906,1957,1958],{"class":1086}," CURLINFO_HTTP_CODE",[906,1960,1108],{"class":1111},[906,1962,1878],{"class":1090},[906,1964,1004],{"class":1003},[906,1966,1004],{"class":1003},[906,1968,1878],{"class":1090},[906,1970,1971],{"class":1111}," $",[906,1973,1974],{"class":1010},"response",[906,1976,1112],{"class":1111},[906,1978,1979],{"class":908,"line":1490},[906,1980,1981],{"class":1090},"?>\n",[976,1983,1984],{"v-slot:response":902},[897,1985,1989],{"className":1986,"code":1987,"language":1988,"meta":902,"style":902},"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",[860,1990,1991,1995,2012,2032,2044,2065,2084,2103,2108],{"__ignoreMap":902},[906,1992,1993],{"class":908,"line":63},[906,1994,1040],{"class":1111},[906,1996,1997,2000,2004,2006,2008,2010],{"class":908,"line":66},[906,1998,1144],{"class":1999},"sLsO-",[906,2001,2003],{"class":2002},"sO5ea","status",[906,2005,1014],{"class":1999},[906,2007,1153],{"class":1111},[906,2009,1774],{"class":1773},[906,2011,1163],{"class":1111},[906,2013,2014,2016,2019,2021,2023,2025,2028,2030],{"class":908,"line":84},[906,2015,1144],{"class":1999},[906,2017,2018],{"class":2002},"message",[906,2020,1014],{"class":1999},[906,2022,1153],{"class":1111},[906,2024,1004],{"class":1003},[906,2026,2027],{"class":915},"Authorization URL created",[906,2029,1014],{"class":1003},[906,2031,1163],{"class":1111},[906,2033,2034,2036,2038,2040,2042],{"class":908,"line":75},[906,2035,1144],{"class":1999},[906,2037,1422],{"class":2002},[906,2039,1014],{"class":1999},[906,2041,1153],{"class":1111},[906,2043,1203],{"class":1111},[906,2045,2046,2048,2052,2054,2056,2058,2061,2063],{"class":908,"line":107},[906,2047,1318],{"class":1999},[906,2049,2051],{"class":2050},"s2aQn","authorization_url",[906,2053,1014],{"class":1999},[906,2055,1153],{"class":1111},[906,2057,1004],{"class":1003},[906,2059,2060],{"class":915},"https:\u002F\u002Fcheckout.paystack.com\u002Fnkdks46nymizns7",[906,2062,1014],{"class":1003},[906,2064,1163],{"class":1111},[906,2066,2067,2069,2071,2073,2075,2077,2080,2082],{"class":908,"line":134},[906,2068,1318],{"class":1999},[906,2070,958],{"class":2050},[906,2072,1014],{"class":1999},[906,2074,1153],{"class":1111},[906,2076,1004],{"class":1003},[906,2078,2079],{"class":915},"nkdks46nymizns7",[906,2081,1014],{"class":1003},[906,2083,1163],{"class":1111},[906,2085,2086,2088,2091,2093,2095,2097,2100],{"class":908,"line":153},[906,2087,1318],{"class":1999},[906,2089,2090],{"class":2050},"reference",[906,2092,1014],{"class":1999},[906,2094,1153],{"class":1111},[906,2096,1004],{"class":1003},[906,2098,2099],{"class":915},"nms6uvr1pl",[906,2101,2102],{"class":1003},"\"\n",[906,2104,2105],{"class":908,"line":422},[906,2106,2107],{"class":1111},"  }\n",[906,2109,2110],{"class":908,"line":1206},[906,2111,2112],{"class":1111},"}\n",[797,2114,2115,2116,2118,2119,2121],{},"On a successful initialization of the transaction, you get a response that contains an ",[860,2117,958],{},". You need to return this ",[860,2120,958],{}," back to your mobile app.",[793,2123,2126],{"type":2124,"title":2125},"danger","Secret key safeguarding",[797,2127,2128],{},"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.",[815,2130,2132],{"id":2131},"paystack-class","Paystack class",[797,2134,2135,2136,2139],{},"The ",[860,2137,2138],{},"Paystack"," class provides methods for managing payments in your app. With the SDK imported into your project, initialize this class before using it.",[897,2141,2143],{"className":940,"code":2142,"language":942,"meta":902,"style":902},"final _paystack = Paystack();\n",[860,2144,2145],{"__ignoreMap":902},[906,2146,2147],{"class":908,"line":63},[906,2148,2142],{},[797,2150,2135,2151,2153],{},[860,2152,2138],{}," class exposes the following methods:",[843,2155,2156,2161],{},[826,2157,2158],{},[860,2159,2160],{},"initialize()",[826,2162,2163],{},[860,2164,2165],{},"launch()",[2167,2168,2160],"h3",{"id":2169},"initialize",[797,2171,2172],{},"This method configures how the SDK operates. It is asynchronous, returns a boolean, and accepts the following parameters:",[2174,2175,2176,2195],"table",{},[2177,2178,2179],"thead",{},[2180,2181,2182,2186,2189,2192],"tr",{},[2183,2184,2185],"th",{},"Parameter",[2183,2187,2188],{},"Type",[2183,2190,2191],{},"Required",[2183,2193,2194],{},"Description",[2196,2197,2198,2215],"tbody",{},[2180,2199,2200,2206,2209,2212],{},[2201,2202,2203],"td",{},[860,2204,2205],{},"publicKey",[2201,2207,2208],{},"String",[2201,2210,2211],{},"Yes",[2201,2213,2214],{},"The public key from your Paystack Dashboard. It should match the secret key used to initialize the transaction",[2180,2216,2217,2222,2225,2228],{},[2201,2218,2219],{},[860,2220,2221],{},"enableLogging",[2201,2223,2224],{},"Boolean",[2201,2226,2227],{},"No",[2201,2229,2230],{},"Indicates whether you'd like to get Android and iOS logs",[897,2232,2234],{"className":940,"code":2233,"language":942,"meta":902,"style":902},"Future\u003Cbool> initialize(String publicKey, bool enableLogging)\n",[860,2235,2236],{"__ignoreMap":902},[906,2237,2238],{"class":908,"line":63},[906,2239,2233],{},[797,2241,2242,2243,2245],{},"Here’s an example of using the ",[860,2244,2169],{}," method:",[897,2247,2249],{"className":940,"code":2248,"language":942,"meta":902,"style":902},"String publicKey = \"pk_domain_xxxxxx\";\n\ntry {\n  final response = await _paystack.initialize(publicKey, true); \u002F\u002F allow logging\n  if (response) {\n    log(\"Successfully initialised the SDK\");\n  } else {\n    log(\"Unable to initialise the SDK\");\n  }\n} on PlatformException catch (e) {\n  log(e.message!);\n}\n",[860,2250,2251,2256,2260,2265,2270,2275,2280,2285,2290,2294,2299,2304],{"__ignoreMap":902},[906,2252,2253],{"class":908,"line":63},[906,2254,2255],{},"String publicKey = \"pk_domain_xxxxxx\";\n",[906,2257,2258],{"class":908,"line":66},[906,2259,1118],{"emptyLinePlaceholder":1117},[906,2261,2262],{"class":908,"line":84},[906,2263,2264],{},"try {\n",[906,2266,2267],{"class":908,"line":75},[906,2268,2269],{},"  final response = await _paystack.initialize(publicKey, true); \u002F\u002F allow logging\n",[906,2271,2272],{"class":908,"line":107},[906,2273,2274],{},"  if (response) {\n",[906,2276,2277],{"class":908,"line":134},[906,2278,2279],{},"    log(\"Successfully initialised the SDK\");\n",[906,2281,2282],{"class":908,"line":153},[906,2283,2284],{},"  } else {\n",[906,2286,2287],{"class":908,"line":422},[906,2288,2289],{},"    log(\"Unable to initialise the SDK\");\n",[906,2291,2292],{"class":908,"line":1206},[906,2293,2107],{},[906,2295,2296],{"class":908,"line":1224},[906,2297,2298],{},"} on PlatformException catch (e) {\n",[906,2300,2301],{"class":908,"line":1237},[906,2302,2303],{},"  log(e.message!);\n",[906,2305,2306],{"class":908,"line":1254},[906,2307,2112],{},[2167,2309,2165],{"id":2310},"launch",[797,2312,2313,2314,2317],{},"This method completes the transaction that you initialized on your server and returns a ",[860,2315,2316],{},"TransactionResponse",". It loads the payment UI used by your customer and accepts the following parameter:",[2174,2319,2320,2332],{},[2177,2321,2322],{},[2180,2323,2324,2326,2328,2330],{},[2183,2325,2185],{},[2183,2327,2188],{},[2183,2329,2191],{},[2183,2331,2194],{},[2196,2333,2334],{},[2180,2335,2336,2341,2343,2345],{},[2201,2337,2338],{},[860,2339,2340],{},"accessCode",[2201,2342,2208],{},[2201,2344,2211],{},[2201,2346,2135,2347,2349],{},[860,2348,958],{}," returned from transaction initialization",[897,2351,2353],{"className":940,"code":2352,"language":942,"meta":902,"style":902},"Future\u003CTransactionResponse> launch(String accessCode)\n",[860,2354,2355],{"__ignoreMap":902},[906,2356,2357],{"class":908,"line":63},[906,2358,2352],{},[797,2360,2242,2361,2245],{},[860,2362,2310],{},[897,2364,2366],{"className":940,"code":2365,"language":942,"meta":902,"style":902},"String reference = \"\";\n\ntry {\n  final response = await _paystack.launch(_accessCode);\n  if (response.status == \"success\") {\n    reference = response.reference;\n    log(reference);\n  } else if (response.status == \"cancelled\") {\n    log(response.message);\n  } else {\n    log(response.message);\n  }\n} on PlatformException catch (e) {\n  log(e.message!);\n}\n",[860,2367,2368,2373,2377,2381,2386,2391,2396,2401,2406,2411,2415,2419,2423,2427,2431],{"__ignoreMap":902},[906,2369,2370],{"class":908,"line":63},[906,2371,2372],{},"String reference = \"\";\n",[906,2374,2375],{"class":908,"line":66},[906,2376,1118],{"emptyLinePlaceholder":1117},[906,2378,2379],{"class":908,"line":84},[906,2380,2264],{},[906,2382,2383],{"class":908,"line":75},[906,2384,2385],{},"  final response = await _paystack.launch(_accessCode);\n",[906,2387,2388],{"class":908,"line":107},[906,2389,2390],{},"  if (response.status == \"success\") {\n",[906,2392,2393],{"class":908,"line":134},[906,2394,2395],{},"    reference = response.reference;\n",[906,2397,2398],{"class":908,"line":153},[906,2399,2400],{},"    log(reference);\n",[906,2402,2403],{"class":908,"line":422},[906,2404,2405],{},"  } else if (response.status == \"cancelled\") {\n",[906,2407,2408],{"class":908,"line":1206},[906,2409,2410],{},"    log(response.message);\n",[906,2412,2413],{"class":908,"line":1224},[906,2414,2284],{},[906,2416,2417],{"class":908,"line":1237},[906,2418,2410],{},[906,2420,2421],{"class":908,"line":1254},[906,2422,2107],{},[906,2424,2425],{"class":908,"line":1270},[906,2426,2298],{},[906,2428,2429],{"class":908,"line":1280},[906,2430,2303],{},[906,2432,2433],{"class":908,"line":1315},[906,2434,2112],{},[797,2436,2437,2438,2440,2441,2443,2444,2447,2448,2450,2451,813],{},"When your integration is done right, you need to handle the ",[860,2439,2316],{}," model. However, there are cases where you could experience some integration bugs. Exceptions are used for handling integration errors in the ",[860,2442,2138],{}," class methods, all consolidated into the ",[860,2445,2446],{},"PaystackException"," model. The sections below describe how to handle both the ",[860,2449,2316],{}," and ",[860,2452,2446],{},[815,2454,2316],{"id":2455},"transactionresponse",[797,2457,2135,2458,2460],{},[860,2459,2316],{}," model is returned when the SDK is integrated correctly and the payment UI completes its flow. It's tied to the transaction lifecycle and has the following parameters:",[2174,2462,2463,2474],{},[2177,2464,2465],{},[2180,2466,2467,2470,2472],{},[2183,2468,2469],{},"Field",[2183,2471,2188],{},[2183,2473,2194],{},[2196,2475,2476,2498,2509],{},[2180,2477,2478,2482,2484],{},[2201,2479,2480],{},[860,2481,2003],{},[2201,2483,2208],{},[2201,2485,2486,2487,2490,2491,2494,2495],{},"State of the transaction. Possible values are ",[860,2488,2489],{},"success",", ",[860,2492,2493],{},"cancelled",", and ",[860,2496,2497],{},"failed",[2180,2499,2500,2504,2506],{},[2201,2501,2502],{},[860,2503,2018],{},[2201,2505,2208],{},[2201,2507,2508],{},"A short description of the transaction status",[2180,2510,2511,2515,2517],{},[2201,2512,2513],{},[860,2514,2090],{},[2201,2516,2208],{},[2201,2518,2519,2520,2522,2523],{},"A unique identifier for post-payment processes. It is only returned when ",[860,2521,2003],{}," is ",[860,2524,2489],{},[815,2526,2446],{"id":2527},"paystackexception",[797,2529,2530,2532,2533,2536],{},[860,2531,2446],{}," is used for handling integration errors and maps to Flutter's platform-specific ",[860,2534,2535],{},"FlutterError"," model:",[2174,2538,2539,2549],{},[2177,2540,2541],{},[2180,2542,2543,2545,2547],{},[2183,2544,2469],{},[2183,2546,2188],{},[2183,2548,2194],{},[2196,2550,2551,2562,2573],{},[2180,2552,2553,2557,2559],{},[2201,2554,2555],{},[860,2556,860],{},[2201,2558,2208],{},[2201,2560,2561],{},"Indicates the category of error",[2180,2563,2564,2568,2570],{},[2201,2565,2566],{},[860,2567,2018],{},[2201,2569,2208],{},[2201,2571,2572],{},"A short description of the error",[2180,2574,2575,2580,2582],{},[2201,2576,2577],{},[860,2578,2579],{},"details",[2201,2581,2208],{},[2201,2583,2584,2585,2588],{},"Currently returns ",[860,2586,2587],{},"nil",", but may include more troubleshooting details in future versions",[797,2590,2591],{},"This means you can parse any exception as shown below:",[897,2593,2595],{"className":940,"code":2594,"language":942,"meta":902,"style":902},"try {\n  final response = await _paystack.launch(_accessCode);\n  \u002F\u002F rest of code\n} on PlatformException catch (e) {\n  log(e.code);\n  log(e.message!);\n}\n",[860,2596,2597,2601,2605,2610,2614,2619,2623],{"__ignoreMap":902},[906,2598,2599],{"class":908,"line":63},[906,2600,2264],{},[906,2602,2603],{"class":908,"line":66},[906,2604,2385],{},[906,2606,2607],{"class":908,"line":84},[906,2608,2609],{},"  \u002F\u002F rest of code\n",[906,2611,2612],{"class":908,"line":75},[906,2613,2298],{},[906,2615,2616],{"class":908,"line":107},[906,2617,2618],{},"  log(e.code);\n",[906,2620,2621],{"class":908,"line":134},[906,2622,2303],{},[906,2624,2625],{"class":908,"line":153},[906,2626,2112],{},[797,2628,2629,2630,1153],{},"The following error codes can be returned by ",[860,2631,2446],{},[2174,2633,2634,2643],{},[2177,2635,2636],{},[2180,2637,2638,2641],{},[2183,2639,2640],{},"Error code",[2183,2642,2194],{},[2196,2644,2645,2655,2665,2675,2689],{},[2180,2646,2647,2652],{},[2201,2648,2649],{},[860,2650,2651],{},"INVALID_ARGUMENT",[2201,2653,2654],{},"Required parameter values were not provided",[2180,2656,2657,2662],{},[2201,2658,2659],{},[860,2660,2661],{},"INITIALIZATION_ERROR",[2201,2663,2664],{},"The SDK could not be initialized with the values passed",[2180,2666,2667,2672],{},[2201,2668,2669],{},[860,2670,2671],{},"UNSUPPORTED_VERSION",[2201,2673,2674],{},"The project does not conform to the SDK requirements",[2180,2676,2677,2682],{},[2201,2678,2679],{},[860,2680,2681],{},"MISSING_VIEW",[2201,2683,2684,2685,2688],{},"The SDK can't find a view controller on iOS or an ",[860,2686,2687],{},"Activity"," on Android to attach to",[2180,2690,2691,2696],{},[2201,2692,2693],{},[860,2694,2695],{},"LAUNCH_ERROR",[2201,2697,2698],{},"The payment UI could not be loaded",[2700,2701,2702],"style",{},"html pre.shiki code .s0zq4, html code.shiki .s0zq4{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#F69D50}html pre.shiki code .sOv1k, html code.shiki .sOv1k{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#96D0FF}html .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 .s8jVp, html code.shiki .s8jVp{--shiki-light:#90A4AE;--shiki-default:#005CC5;--shiki-dark:#F47067}html pre.shiki code .scI3H, html code.shiki .scI3H{--shiki-light:#91B859;--shiki-default:#005CC5;--shiki-dark:#6CB6FF}html pre.shiki code .sO3A-, html code.shiki .sO3A-{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#96D0FF}html pre.shiki code .swCDk, html code.shiki .swCDk{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#ADBAC7}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 .s7Vxm, html code.shiki .s7Vxm{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#ADBAC7}html pre.shiki code .sTNDG, html code.shiki .sTNDG{--shiki-light:#E53935;--shiki-default:#032F62;--shiki-dark:#96D0FF}html pre.shiki code .sCI7e, html code.shiki .sCI7e{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#6CB6FF}html pre.shiki code .sOnBC, html code.shiki .sOnBC{--shiki-light:#E53935;--shiki-default:#24292E;--shiki-dark:#ADBAC7}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 .slzs_, html code.shiki .slzs_{--shiki-light:#6182B8;--shiki-default:#005CC5;--shiki-dark:#6CB6FF}html pre.shiki code .sNG8c, html code.shiki .sNG8c{--shiki-light:#39ADB5;--shiki-default:#005CC5;--shiki-dark:#6CB6FF}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 .s2aQn, html code.shiki .s2aQn{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#8DDB8C}",{"title":902,"searchDepth":66,"depth":66,"links":2704},[2705,2706,2707,2708,2709,2713,2714],{"id":817,"depth":66,"text":818},{"id":837,"depth":66,"text":838},{"id":885,"depth":66,"text":886},{"id":951,"depth":66,"text":952},{"id":2131,"depth":66,"text":2132,"children":2710},[2711,2712],{"id":2169,"depth":84,"text":2160},{"id":2310,"depth":84,"text":2165},{"id":2455,"depth":66,"text":2316},{"id":2527,"depth":66,"text":2446},"Use the Paystack Flutter SDK to accept payments in your Flutter app.","md",{},{"order":84},{"title":207,"description":2715},"LB0g8s5Eue-Ds0R0LlQiB2Dyl7sP62vFmv5V-3N9uRU",1794998080971]