[{"data":1,"prerenderedAt":433,"buildId":434},["ShallowReactive",2],{"docs-\u002Fwebhooks\u002Foverview":3,"docs-nav":357},{"id":4,"title":5,"body":6,"description":349,"extension":350,"meta":351,"navigation":352,"path":353,"seo":354,"stem":355,"__hash__":356},"docs\u002F3.webhooks\u002F1.overview.md","Webhooks",{"type":7,"value":8,"toc":346},"minimark",[9,13,39,209,307,312,323,334,342],[10,11,5],"h1",{"id":12},"webhooks",[14,15,16,17,21,22,26,27,30,31,34,35,38],"p",{},"Each business has its own webhook URL and signing secret: set them on the business's page under ",[18,19,20],"strong",{},"Businesses",". Events for that business go only there, and ",[23,24,25],"code",{},"business_id"," in each event names it. The URL must be ",[23,28,29],{},"https:\u002F\u002F"," on that business's domain (",[23,32,33],{},"localhost"," works in test). We ",[23,36,37],{},"POST"," JSON to it:",[40,41,46],"pre",{"className":42,"code":43,"language":44,"meta":45,"style":45},"language-json shiki shiki-themes github-light","{\n  \"id\": \"evt_6f1c2e...\",\n  \"type\": \"payment.successful\",\n  \"created_at\": \"2026-12-04T15:02:11Z\",\n  \"mode\": \"live\",\n  \"business_id\": \"qp_biz_live_...\",\n  \"data\": { \"id\": \"qp_ch_8c1f...\", \"object\": \"charge\", \"reference\": \"order-1001\", \"amount\": \"50000.00\", \"currency\": \"UGX\", \"status\": \"successful\", ... }\n}\n","json","",[23,47,48,57,74,87,100,113,126,203],{"__ignoreMap":45},[49,50,53],"span",{"class":51,"line":52},"line",1,[49,54,56],{"class":55},"sgsFI","{\n",[49,58,60,64,67,71],{"class":51,"line":59},2,[49,61,63],{"class":62},"sYu0t","  \"id\"",[49,65,66],{"class":55},": ",[49,68,70],{"class":69},"sYBdl","\"evt_6f1c2e...\"",[49,72,73],{"class":55},",\n",[49,75,77,80,82,85],{"class":51,"line":76},3,[49,78,79],{"class":62},"  \"type\"",[49,81,66],{"class":55},[49,83,84],{"class":69},"\"payment.successful\"",[49,86,73],{"class":55},[49,88,90,93,95,98],{"class":51,"line":89},4,[49,91,92],{"class":62},"  \"created_at\"",[49,94,66],{"class":55},[49,96,97],{"class":69},"\"2026-12-04T15:02:11Z\"",[49,99,73],{"class":55},[49,101,103,106,108,111],{"class":51,"line":102},5,[49,104,105],{"class":62},"  \"mode\"",[49,107,66],{"class":55},[49,109,110],{"class":69},"\"live\"",[49,112,73],{"class":55},[49,114,116,119,121,124],{"class":51,"line":115},6,[49,117,118],{"class":62},"  \"business_id\"",[49,120,66],{"class":55},[49,122,123],{"class":69},"\"qp_biz_live_...\"",[49,125,73],{"class":55},[49,127,129,132,135,138,140,143,146,149,151,154,156,159,161,164,166,169,171,174,176,179,181,184,186,189,191,194,196,200],{"class":51,"line":128},7,[49,130,131],{"class":62},"  \"data\"",[49,133,134],{"class":55},": { ",[49,136,137],{"class":62},"\"id\"",[49,139,66],{"class":55},[49,141,142],{"class":69},"\"qp_ch_8c1f...\"",[49,144,145],{"class":55},", ",[49,147,148],{"class":62},"\"object\"",[49,150,66],{"class":55},[49,152,153],{"class":69},"\"charge\"",[49,155,145],{"class":55},[49,157,158],{"class":62},"\"reference\"",[49,160,66],{"class":55},[49,162,163],{"class":69},"\"order-1001\"",[49,165,145],{"class":55},[49,167,168],{"class":62},"\"amount\"",[49,170,66],{"class":55},[49,172,173],{"class":69},"\"50000.00\"",[49,175,145],{"class":55},[49,177,178],{"class":62},"\"currency\"",[49,180,66],{"class":55},[49,182,183],{"class":69},"\"UGX\"",[49,185,145],{"class":55},[49,187,188],{"class":62},"\"status\"",[49,190,66],{"class":55},[49,192,193],{"class":69},"\"successful\"",[49,195,145],{"class":55},[49,197,199],{"class":198},"sB1qb","...",[49,201,202],{"class":55}," }\n",[49,204,206],{"class":51,"line":205},8,[49,207,208],{"class":55},"}\n",[210,211,212,225],"table",{},[213,214,215],"thead",{},[216,217,218,222],"tr",{},[219,220,221],"th",{},"Event",[219,223,224],{},"When",[226,227,228,243,253,263,273,283,293],"tbody",{},[216,229,230,236],{},[231,232,233],"td",{},[23,234,235],{},"payment.successful",[231,237,238,239,242],{},"A payment is confirmed. ",[23,240,241],{},"data"," is the charge.",[216,244,245,250],{},[231,246,247],{},[23,248,249],{},"payment.failed",[231,251,252],{},"A payment failed.",[216,254,255,260],{},[231,256,257],{},[23,258,259],{},"withdrawal.paid",[231,261,262],{},"Money reached your bank or mobile money.",[216,264,265,270],{},[231,266,267],{},[23,268,269],{},"withdrawal.failed",[231,271,272],{},"A payout failed; the money is back in the wallet.",[216,274,275,280],{},[231,276,277],{},[23,278,279],{},"dispute.created",[231,281,282],{},"A customer disputed a payment.",[216,284,285,290],{},[231,286,287],{},[23,288,289],{},"dispute.closed",[231,291,292],{},"A dispute was won or lost.",[216,294,295,300],{},[231,296,297],{},[23,298,299],{},"test.ping",[231,301,302,303,306],{},"You pressed ",[18,304,305],{},"Send test event",".",[308,309,311],"h2",{"id":310},"answering","Answering",[14,313,314,315,318,319,322],{},"Answer with any ",[23,316,317],{},"2xx"," within 10 seconds. Anything else is retried with growing gaps for about 21 hours. Every attempt is listed in ",[18,320,321],{},"Developers",", where you can also resend.",[14,324,325,326,329,330,333],{},"The same event can arrive more than once: use ",[23,327,328],{},"id"," to ignore repeats. Events can arrive out of order: use the charge's ",[23,331,332],{},"status",", not the order of events.",[14,335,336,337,306],{},"Always ",[338,339,341],"a",{"href":340},"\u002Fwebhooks\u002Fverify-signatures","verify the signature",[343,344,345],"style",{},"html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sB1qb, html code.shiki .sB1qb{--shiki-default:#B31D28;--shiki-default-font-style:italic}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);}",{"title":45,"searchDepth":59,"depth":59,"links":347},[348],{"id":310,"depth":59,"text":311},"We tell your server when something happens.","md",{},true,"\u002Fwebhooks\u002Foverview",{"title":5,"description":349},"3.webhooks\u002F1.overview","WSIok_d9O4ACyW-hRt7NrI_Rrqo0Y_j23noZEk7AEcg",[358,362,383,408,416],{"title":359,"path":360,"stem":361},"QwikiPay API","\u002F","0.index",{"title":363,"path":364,"stem":365,"children":366,"page":382},"Getting Started","\u002Fgetting-started","1.getting-started",[367,371,375,379],{"title":368,"path":369,"stem":370},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F1.quickstart",{"title":372,"path":373,"stem":374},"Test and live mode","\u002Fgetting-started\u002Ftest-and-live-mode","1.getting-started\u002F2.test-and-live-mode",{"title":376,"path":377,"stem":378},"Authentication","\u002Fgetting-started\u002Fauthentication","1.getting-started\u002F3.authentication",{"title":20,"path":380,"stem":381},"\u002Fgetting-started\u002Fbusinesses","1.getting-started\u002F4.businesses",false,{"title":384,"path":385,"stem":386,"children":387,"page":382},"Payments","\u002Fpayments","2.payments",[388,392,396,400,404],{"title":389,"path":390,"stem":391},"Drop-in checkout","\u002Fpayments\u002Fdrop-in","2.payments\u002F1.drop-in",{"title":393,"path":394,"stem":395},"Hosted checkout","\u002Fpayments\u002Fhosted-checkout","2.payments\u002F2.hosted-checkout",{"title":397,"path":398,"stem":399},"Direct charges","\u002Fpayments\u002Fdirect-charges","2.payments\u002F3.direct-charges",{"title":401,"path":402,"stem":403},"Confirm a payment","\u002Fpayments\u002Fconfirm-a-payment","2.payments\u002F4.confirm-a-payment",{"title":405,"path":406,"stem":407},"Disputes","\u002Fpayments\u002Fdisputes","2.payments\u002F5.disputes",{"title":5,"path":409,"stem":410,"children":411,"page":382},"\u002Fwebhooks","3.webhooks",[412,413],{"title":5,"path":353,"stem":355},{"title":414,"path":340,"stem":415},"Verify signatures","3.webhooks\u002F2.verify-signatures",{"title":417,"path":418,"stem":419,"children":420,"page":382},"Reference","\u002Freference","4.reference",[421,425,429],{"title":422,"path":423,"stem":424},"Idempotency","\u002Freference\u002Fidempotency","4.reference\u002F1.idempotency",{"title":426,"path":427,"stem":428},"Errors","\u002Freference\u002Ferrors","4.reference\u002F2.errors",{"title":430,"path":431,"stem":432},"Countries and payment methods","\u002Freference\u002Fcountries","4.reference\u002F3.countries",1796429326135,"f8f2bc0b-2f84-41e1-84f7-47b53c87c561"]