[{"data":1,"prerenderedAt":193},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fcallbacks":3,"docs-nav":159,"docs-order":183},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"body":10,"_type":153,"_id":154,"_source":155,"_file":156,"_stem":157,"_extension":158},"\u002Fdocs\u002Fcallbacks","docs",false,"","Callbacks","Each payment carries two URLs:",{"type":11,"children":12,"toc":149},"root",[13,22,27,101,122,129],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"callbacks-return-urls",[19],{"type":20,"value":21},"text","Callbacks & return URLs",{"type":14,"tag":23,"props":24,"children":25},"p",{},[26],{"type":20,"value":9},{"type":14,"tag":28,"props":29,"children":30},"table",{},[31,50],{"type":14,"tag":32,"props":33,"children":34},"thead",{},[35],{"type":14,"tag":36,"props":37,"children":38},"tr",{},[39,45],{"type":14,"tag":40,"props":41,"children":42},"th",{},[43],{"type":20,"value":44},"URL",{"type":14,"tag":40,"props":46,"children":47},{},[48],{"type":20,"value":49},"Purpose",{"type":14,"tag":51,"props":52,"children":53},"tbody",{},[54,79],{"type":14,"tag":36,"props":55,"children":56},{},[57,68],{"type":14,"tag":58,"props":59,"children":60},"td",{},[61],{"type":14,"tag":62,"props":63,"children":65},"code",{"className":64},[],[66],{"type":20,"value":67},"backend_return_url",{"type":14,"tag":58,"props":69,"children":70},{},[71,77],{"type":14,"tag":72,"props":73,"children":74},"strong",{},[75],{"type":20,"value":76},"Server-to-server.",{"type":20,"value":78}," We POST the final result here. Treat this as the source of truth and finalize the order on it.",{"type":14,"tag":36,"props":80,"children":81},{},[82,91],{"type":14,"tag":58,"props":83,"children":84},{},[85],{"type":14,"tag":62,"props":86,"children":88},{"className":87},[],[89],{"type":20,"value":90},"frontend_return_url",{"type":14,"tag":58,"props":92,"children":93},{},[94,99],{"type":14,"tag":72,"props":95,"children":96},{},[97],{"type":20,"value":98},"Browser redirect.",{"type":20,"value":100}," Where the customer lands after checkout. Do not finalize orders here — it can be skipped if the customer closes the tab.",{"type":14,"tag":23,"props":102,"children":103},{},[104,106,112,114,120],{"type":20,"value":105},"Both support ",{"type":14,"tag":62,"props":107,"children":109},{"className":108},[],[110],{"type":20,"value":111},"{gateway}",{"type":20,"value":113}," and ",{"type":14,"tag":62,"props":115,"children":117},{"className":116},[],[118],{"type":20,"value":119},"{txn_id}",{"type":20,"value":121}," placeholders, which we substitute when\ncalling them.",{"type":14,"tag":123,"props":124,"children":126},"h2",{"id":125},"verify-before-trusting",[127],{"type":20,"value":128},"Verify before trusting",{"type":14,"tag":23,"props":130,"children":131},{},[132,134,141,143],{"type":20,"value":133},"Always verify the callback signature (same HMAC scheme as requests) and\ncross-check status with ",{"type":14,"tag":135,"props":136,"children":138},"a",{"href":137},"\u002Fdocs\u002Finquiry",[139],{"type":20,"value":140},"Inquiry",{"type":20,"value":142}," before fulfilling an order.\n",{"type":14,"tag":144,"props":145,"children":146},"span",{},[147],{"type":20,"value":148},"placeholder — confirm exact callback payload + signature header",{"title":7,"searchDepth":150,"depth":150,"links":151},2,[152],{"id":125,"depth":150,"text":128},"markdown","content:docs:10.callbacks.md","content","docs\u002F10.callbacks.md","docs\u002F10.callbacks","md",[160,163,164,167,170,171,174,177,180],{"_path":161,"title":162},"\u002Fdocs\u002Fauthentication","Authentication",{"_path":4,"title":8},{"_path":165,"title":166},"\u002Fdocs\u002Fgetting-started","Getting started",{"_path":168,"title":169},"\u002Fdocs\u002Finitiate","Initiate",{"_path":137,"title":140},{"_path":172,"title":173},"\u002Fdocs\u002Frefund","Refund",{"_path":175,"title":176},"\u002Fdocs\u002Fstatus-codes","Status codes",{"_path":178,"title":179},"\u002Fdocs\u002Fvoid","Void",{"_path":181,"title":182},"\u002Fdocs\u002Fwoocommerce","WooCommerce",[184,185,186,187,188,189,190,191,192],{"_path":165,"title":166},{"_path":161,"title":162},{"_path":168,"title":169},{"_path":137,"title":140},{"_path":172,"title":173},{"_path":178,"title":179},{"_path":175,"title":176},{"_path":4,"title":8},{"_path":181,"title":182},1780230577967]