[{"data":1,"prerenderedAt":134},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-introduction":23,"-getting-started-introduction-surround":131},[4,14],{"title":5,"path":6,"stem":7,"children":8,"page":13},"Getting Started","\u002Fgetting-started","1.getting-started",[9],{"title":10,"path":11,"stem":12},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",false,{"title":15,"path":16,"stem":17,"children":18,"page":13},"Webhooks","\u002Fwebhooks","2.webhooks",[19],{"title":20,"path":21,"stem":22},"Verifying webhook signatures","\u002Fwebhooks\u002Fverifying-signatures","2.webhooks\u002F1.verifying-signatures",{"id":24,"title":10,"body":25,"description":124,"extension":125,"links":126,"meta":127,"navigation":128,"path":11,"seo":129,"stem":12,"__hash__":130},"docs\u002F1.getting-started\u002F1.introduction.md",{"type":26,"value":27,"toc":119},"minimark",[28,32,37,91,94,98,105,115],[29,30,31],"p",{},"FlazzPay's merchant API is a server-to-server JSON API.",[33,34,36],"h2",{"id":35},"environments","Environments",[38,39,40,56],"table",{},[41,42,43],"thead",{},[44,45,46,50,53],"tr",{},[47,48,49],"th",{},"Environment",[47,51,52],{},"Base URL",[47,54,55],{},"API key prefix",[57,58,59,76],"tbody",{},[44,60,61,65,71],{},[62,63,64],"td",{},"Live",[62,66,67],{},[68,69,70],"code",{},"https:\u002F\u002Fapi.flazzpay.com",[62,72,73],{},[68,74,75],{},"fp_live_",[44,77,78,81,86],{},[62,79,80],{},"Sandbox",[62,82,83],{},[68,84,85],{},"https:\u002F\u002Fapi-sandbox.flazzpay.com",[62,87,88],{},[68,89,90],{},"fp_sandbox_",[29,92,93],{},"A key works only on its own host. The sandbox never moves money.",[33,95,97],{"id":96},"signing-requests","Signing requests",[29,99,100,101,104],{},"Every request under ",[68,102,103],{},"\u002Fv1",", reads included, carries the API key and a signature:",[106,107,113],"pre",{"className":108,"code":110,"language":111,"meta":112},[109],"language-text","Authorization: Bearer \u003Capi_key>\nX-Timestamp: \u003Cunix seconds>\nX-Signature: hex(HMAC_SHA256(secret_key, X-Timestamp + \"\\n\" + METHOD + \"\\n\" + path_with_query + \"\\n\" + hex(SHA256(raw_body))))\n","text","",[68,114,110],{"__ignoreMap":112},[116,117,118],"note",{},"The timestamp must be within five minutes of FlazzPay's clock. An empty body signs as the SHA-256 of an empty string.",{"title":112,"searchDepth":120,"depth":120,"links":121},2,[122,123],{"id":35,"depth":120,"text":36},{"id":96,"depth":120,"text":97},"Environments, API keys and request signing.","md",null,{},true,{"title":10,"description":124},"6BrdLp9fmOnoZHx6Ouqlb6mfJI8_ipSz-yhS9hKL-L4",[126,132],{"title":20,"path":21,"stem":22,"description":133,"children":-1},"Check that a webhook really comes from FlazzPay, with PHP, Node and Go examples.",1795233028828]