[{"data":1,"prerenderedAt":326},["ShallowReactive",2],{"navigation":3,"/getting-started/ashgateway":65,"/getting-started/ashgateway-surround":321},[4,39],{"title":5,"icon":6,"path":7,"stem":8,"children":9},"Getting Started",false,"/getting-started","1.getting-started",[10,14,19,24,29,34],{"title":11,"path":7,"stem":12,"icon":13},"Introduction","1.getting-started/1.index","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Quick Start","/getting-started/quick-start","1.getting-started/0.quick-start","i-lucide-rocket",{"title":20,"path":21,"stem":22,"icon":23},"Installation","/getting-started/installation","1.getting-started/2.installation","i-lucide-download",{"title":25,"path":26,"stem":27,"icon":28},"Usage","/getting-started/usage","1.getting-started/3.usage","i-lucide-sliders",{"title":30,"path":31,"stem":32,"icon":33},"Security","/getting-started/security","1.getting-started/4.security","i-lucide-shield-check",{"title":35,"path":36,"stem":37,"icon":38},"Ashgateway","/getting-started/ashgateway","1.getting-started/5.ashgateway","i-lucide-cloud",{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":6},"API Reference","i-lucide-book-open","/api","2.api",[45,50,55,60],{"title":46,"path":47,"stem":48,"icon":49},"Transactions","/api/transactions","2.api/1.transactions","i-lucide-credit-card",{"title":51,"path":52,"stem":53,"icon":54},"Customers","/api/customers","2.api/2.customers","i-lucide-users",{"title":56,"path":57,"stem":58,"icon":59},"Payouts","/api/payouts","2.api/3.payouts","i-lucide-send",{"title":61,"path":62,"stem":63,"icon":64},"PayWidget","/api/pay-widget","2.api/4.pay-widget","i-lucide-smartphone",{"id":66,"title":35,"body":67,"description":314,"extension":315,"links":316,"meta":317,"navigation":318,"path":36,"seo":319,"stem":37,"__hash__":320},"docs/1.getting-started/5.ashgateway.md",{"type":68,"value":69,"toc":309},"minimark",[70,74,86,91,98,103,129,133,140,264,268,271,295,305],[71,72,35],"h1",{"id":73},"ashgateway",[75,76,77,80,81,85],"p",{},[78,79,73],"strong",{}," is the recommended way to use ",[82,83,84],"code",{},"feda_flutter"," in production. It acts as a secure intermediary between your mobile application and the FedaPay API.",[87,88,90],"h2",{"id":89},"why-use-ashgateway","Why use ashgateway?",[75,92,93,94,97],{},"Directly embedding your FedaPay secret API key (",[82,95,96],{},"sk_live_...",") in your mobile app is a major security risk. Attackers can decompile your app and steal your key.",[75,99,100,102],{},[78,101,73],{}," solves this by:",[104,105,106,113,123],"ol",{},[107,108,109,112],"li",{},[78,110,111],{},"Keeping keys secret",": Your FedaPay keys are stored only on the server.",[107,114,115,118,119,122],{},[78,116,117],{},"Project-based access",": The app uses a public ",[82,120,121],{},"projectKey"," instead of a secret API key.",[107,124,125,128],{},[78,126,127],{},"Enhanced Security",": You can implement additional validation and rate limiting on the gateway.",[87,130,132],{"id":131},"setup","Setup",[75,134,135,136,139],{},"To use ashgateway, initialize the SDK using ",[82,137,138],{},"applyCloudConfig",":",[141,142,147],"pre",{"className":143,"code":144,"language":145,"meta":146,"style":146},"language-dart shiki shiki-themes github-light github-dark one-dark-pro","import 'package:feda_flutter/feda_flutter.dart';\n\nvoid main() {\n  FedaFlutter.applyCloudConfig(\n    projectKey: 'your_public_project_key',\n    cloudUrl: 'https://ashgateway.com',\n  );\n  \n  runApp(const MyApp());\n}\n","dart","",[82,148,149,166,173,186,201,215,228,234,240,258],{"__ignoreMap":146},[150,151,154,158,162],"span",{"class":152,"line":153},"line",1,[150,155,157],{"class":156},"snRAw","import",[150,159,161],{"class":160},"sZhdV"," 'package:feda_flutter/feda_flutter.dart'",[150,163,165],{"class":164},"swJTO",";\n",[150,167,169],{"class":152,"line":168},2,[150,170,172],{"emptyLinePlaceholder":171},true,"\n",[150,174,176,179,183],{"class":152,"line":175},3,[150,177,178],{"class":156},"void",[150,180,182],{"class":181},"siXoN"," main",[150,184,185],{"class":164},"() {\n",[150,187,189,193,196,198],{"class":152,"line":188},4,[150,190,192],{"class":191},"sWzh9","  FedaFlutter",[150,194,195],{"class":164},".",[150,197,138],{"class":181},[150,199,200],{"class":164},"(\n",[150,202,204,207,209,212],{"class":152,"line":203},5,[150,205,206],{"class":164},"    projectKey",[150,208,139],{"class":156},[150,210,211],{"class":160}," 'your_public_project_key'",[150,213,214],{"class":164},",\n",[150,216,218,221,223,226],{"class":152,"line":217},6,[150,219,220],{"class":164},"    cloudUrl",[150,222,139],{"class":156},[150,224,225],{"class":160}," 'https://ashgateway.com'",[150,227,214],{"class":164},[150,229,231],{"class":152,"line":230},7,[150,232,233],{"class":164},"  );\n",[150,235,237],{"class":152,"line":236},8,[150,238,239],{"class":164},"  \n",[150,241,243,246,249,252,255],{"class":152,"line":242},9,[150,244,245],{"class":181},"  runApp",[150,247,248],{"class":164},"(",[150,250,251],{"class":156},"const",[150,253,254],{"class":191}," MyApp",[150,256,257],{"class":164},"());\n",[150,259,261],{"class":152,"line":260},10,[150,262,263],{"class":164},"}\n",[87,265,267],{"id":266},"how-it-works","How it works",[75,269,270],{},"When you use Cloud Proxy mode:",[272,273,274,280,287,292],"ul",{},[107,275,276,277,195],{},"The SDK sends requests to ",[82,278,279],{},"https://ashgateway.com/fedapay/v1/...",[107,281,282,283,286],{},"It includes the ",[82,284,285],{},"x-feda-project-key"," header to identify your project.",[107,288,289,291],{},[78,290,73],{}," resolves this project key to your secret FedaPay key and forwards the request to the official FedaPay API.",[107,293,294],{},"The results are returned back to your app seamlessly.",[296,297,298],"tip",{},[75,299,300,301,304],{},"You can deploy your own instance of ashgateway or use a managed one. Always ensure the ",[82,302,303],{},"cloudUrl"," uses HTTPS.",[306,307,308],"style",{},"html pre.shiki code .snRAw, html code.shiki .snRAw{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#C678DD}html pre.shiki code .sZhdV, html code.shiki .sZhdV{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#98C379}html pre.shiki code .swJTO, html code.shiki .swJTO{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#ABB2BF}html pre.shiki code .siXoN, html code.shiki .siXoN{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#61AFEF}html pre.shiki code .sWzh9, html code.shiki .sWzh9{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#E5C07B}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);}",{"title":146,"searchDepth":153,"depth":168,"links":310},[311,312,313],{"id":89,"depth":168,"text":90},{"id":131,"depth":168,"text":132},{"id":266,"depth":168,"text":267},"Learn how to use ashgateway as a secure cloud proxy for your FedaPay integration.","md",null,{},{"icon":38},{"title":35,"description":314},"1g2KNhDGcp4mN2ZOrNGFbN8Uzn-0W_5cUjTIpcxZsDM",[322,324],{"title":30,"path":31,"stem":32,"description":323,"icon":33,"children":-1},"Best practices for securing your FedaPay integration.",{"title":46,"path":47,"stem":48,"description":325,"icon":49,"children":-1},"Create and manage FedaPay transactions.",1774440692046]