[{"data":1,"prerenderedAt":317},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fgetting-started":3,"docs-nav":284,"docs-order":307},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"body":10,"_type":278,"_id":279,"_source":280,"_file":281,"_stem":282,"_extension":283},"\u002Fdocs\u002Fgetting-started","docs",false,"","Getting started","Syok2Pay is the merchant-facing edge of the Syok2Pay payment platform. Your\nbackend talks to the payment-gateway API; we handle routing to FPX,\ne-wallets and cards, and the secure hosted checkout.",{"type":11,"children":12,"toc":272},"root",[13,21,35,39,46,109,115,185,196,202,259],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"getting-started",[19],{"type":20,"value":8},"text",{"type":14,"tag":22,"props":23,"children":24},"p",{},[25,27,33],{"type":20,"value":26},"Syok2Pay is the merchant-facing edge of the Syok2Pay payment platform. Your\nbackend talks to the ",{"type":14,"tag":28,"props":29,"children":30},"strong",{},[31],{"type":20,"value":32},"payment-gateway",{"type":20,"value":34}," API; we handle routing to FPX,\ne-wallets and cards, and the secure hosted checkout.",{"type":14,"tag":36,"props":37,"children":38},"env-toggle",{},[],{"type":14,"tag":40,"props":41,"children":43},"h2",{"id":42},"base-urls",[44],{"type":20,"value":45},"Base URLs",{"type":14,"tag":47,"props":48,"children":49},"table",{},[50,69],{"type":14,"tag":51,"props":52,"children":53},"thead",{},[54],{"type":14,"tag":55,"props":56,"children":57},"tr",{},[58,64],{"type":14,"tag":59,"props":60,"children":61},"th",{},[62],{"type":20,"value":63},"Environment",{"type":14,"tag":59,"props":65,"children":66},{},[67],{"type":20,"value":68},"Base URL",{"type":14,"tag":70,"props":71,"children":72},"tbody",{},[73,92],{"type":14,"tag":55,"props":74,"children":75},{},[76,82],{"type":14,"tag":77,"props":78,"children":79},"td",{},[80],{"type":20,"value":81},"Sandbox",{"type":14,"tag":77,"props":83,"children":84},{},[85],{"type":14,"tag":86,"props":87,"children":89},"code",{"className":88},[],[90],{"type":20,"value":91},"https:\u002F\u002Fpay.syok2pay-sandbox.com",{"type":14,"tag":55,"props":93,"children":94},{},[95,100],{"type":14,"tag":77,"props":96,"children":97},{},[98],{"type":20,"value":99},"Production",{"type":14,"tag":77,"props":101,"children":102},{},[103],{"type":14,"tag":86,"props":104,"children":106},{"className":105},[],[107],{"type":20,"value":108},"https:\u002F\u002Fpay.syok2pay.com",{"type":14,"tag":40,"props":110,"children":112},{"id":111},"what-you-need",[113],{"type":20,"value":114},"What you need",{"type":14,"tag":116,"props":117,"children":118},"ul",{},[119,140,167],{"type":14,"tag":120,"props":121,"children":122},"li",{},[123,125,130,132,138],{"type":20,"value":124},"A ",{"type":14,"tag":28,"props":126,"children":127},{},[128],{"type":20,"value":129},"merchant code",{"type":20,"value":131}," (e.g. ",{"type":14,"tag":86,"props":133,"children":135},{"className":134},[],[136],{"type":20,"value":137},"M00001",{"type":20,"value":139},")",{"type":14,"tag":120,"props":141,"children":142},{},[143,144,149,151,157,159,165],{"type":20,"value":124},{"type":14,"tag":28,"props":145,"children":146},{},[147],{"type":20,"value":148},"publishable key",{"type":20,"value":150}," (",{"type":14,"tag":86,"props":152,"children":154},{"className":153},[],[155],{"type":20,"value":156},"pk_…",{"type":20,"value":158},") — sent as the ",{"type":14,"tag":86,"props":160,"children":162},{"className":161},[],[163],{"type":20,"value":164},"Authorization: Bearer",{"type":20,"value":166}," token",{"type":14,"tag":120,"props":168,"children":169},{},[170,171,176,177,183],{"type":20,"value":124},{"type":14,"tag":28,"props":172,"children":173},{},[174],{"type":20,"value":175},"secret key",{"type":20,"value":150},{"type":14,"tag":86,"props":178,"children":180},{"className":179},[],[181],{"type":20,"value":182},"sk_…",{"type":20,"value":184},") — used to HMAC-sign every request (never sent)",{"type":14,"tag":22,"props":186,"children":187},{},[188,190],{"type":20,"value":189},"Get these from your Syok2Pay onboarding contact. ",{"type":14,"tag":191,"props":192,"children":193},"span",{},[194],{"type":20,"value":195},"placeholder",{"type":14,"tag":40,"props":197,"children":199},{"id":198},"integration-in-three-steps",[200],{"type":20,"value":201},"Integration in three steps",{"type":14,"tag":203,"props":204,"children":205},"ol",{},[206,224,242],{"type":14,"tag":120,"props":207,"children":208},{},[209,214,216,222],{"type":14,"tag":28,"props":210,"children":211},{},[212],{"type":20,"value":213},"Initiate",{"type":20,"value":215}," a payment session from your backend (",{"type":14,"tag":86,"props":217,"children":219},{"className":218},[],[220],{"type":20,"value":221},"POST \u002Fv1\u002Finitiate",{"type":20,"value":223},").",{"type":14,"tag":120,"props":225,"children":226},{},[227,232,234,240],{"type":14,"tag":28,"props":228,"children":229},{},[230],{"type":20,"value":231},"Redirect",{"type":20,"value":233}," the customer to the returned ",{"type":14,"tag":86,"props":235,"children":237},{"className":236},[],[238],{"type":20,"value":239},"data.payment_url",{"type":20,"value":241},".",{"type":14,"tag":120,"props":243,"children":244},{},[245,250,252,258],{"type":14,"tag":28,"props":246,"children":247},{},[248],{"type":20,"value":249},"Finalize",{"type":20,"value":251}," the order when we call your ",{"type":14,"tag":86,"props":253,"children":255},{"className":254},[],[256],{"type":20,"value":257},"backend_return_url",{"type":20,"value":241},{"type":14,"tag":22,"props":260,"children":261},{},[262,264,271],{"type":20,"value":263},"Continue to ",{"type":14,"tag":265,"props":266,"children":268},"a",{"href":267},"\u002Fdocs\u002Fauthentication",[269],{"type":20,"value":270},"Authentication",{"type":20,"value":241},{"title":7,"searchDepth":273,"depth":273,"links":274},2,[275,276,277],{"id":42,"depth":273,"text":45},{"id":111,"depth":273,"text":114},{"id":198,"depth":273,"text":201},"markdown","content:docs:1.getting-started.md","content","docs\u002F1.getting-started.md","docs\u002F1.getting-started","md",[285,286,289,290,292,295,298,301,304],{"_path":267,"title":270},{"_path":287,"title":288},"\u002Fdocs\u002Fcallbacks","Callbacks",{"_path":4,"title":8},{"_path":291,"title":213},"\u002Fdocs\u002Finitiate",{"_path":293,"title":294},"\u002Fdocs\u002Finquiry","Inquiry",{"_path":296,"title":297},"\u002Fdocs\u002Frefund","Refund",{"_path":299,"title":300},"\u002Fdocs\u002Fstatus-codes","Status codes",{"_path":302,"title":303},"\u002Fdocs\u002Fvoid","Void",{"_path":305,"title":306},"\u002Fdocs\u002Fwoocommerce","WooCommerce",[308,309,310,311,312,313,314,315,316],{"_path":4,"title":8},{"_path":267,"title":270},{"_path":291,"title":213},{"_path":293,"title":294},{"_path":296,"title":297},{"_path":302,"title":303},{"_path":299,"title":300},{"_path":287,"title":288},{"_path":305,"title":306},1780230577964]