[{"code":"\"https://payment.cobrapaybd.xyz/generateapi.php\"","imports":"","color":"#FFF44336","name":"Generate api Url CobraPay","typeName":"generateapi Url","palette":"32","type":"s","spec":"GenerateCobraPayApiUrl"},{"code":"%1$s.getSettings().setJavaScriptEnabled(true);\n%1$s.loadUrl(\"https://payment.cobrapaybd.xyz/?brandkey\u003d\".concat(%3$s.concat(\"\u0026amount\u003d\".concat(%2$s.concat(\"\u0026cus_name\u003d\".concat(\"\".concat(\"\u0026cus_email\u003d\".concat(\"\".concat(\"\u0026success_url\u003dhttps://payment.cobrapaybd.xyz/success.php/\u0026cancel_url\u003dhttps://payment.cobrapaybd.xyz/cancel.php\")))))))));\n\n%1$s.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);\n%1$s.getSettings().setDomStorageEnabled(true);\n%1$s.getSettings().setJavaScriptEnabled(true);\n%1$s.getSettings().setUseWideViewPort(true);\n%1$s.getSettings().setLoadWithOverviewMode(true);\n%1$s.setWebViewClient(new WebViewClient());\n%1$s.clearCache(true);\n%1$s.clearHistory();\n\n%1$s.setWebViewClient(new WebViewClient() {\n\n    @Override\n    public boolean shouldOverrideUrlLoading(WebView view, String url) {\n        if (url.startsWith(\"tel:\")) {\n            Intent intent \u003d new Intent(Intent.ACTION_DIAL, Uri.parse(url));\n            startActivity(intent);\n            return true;\n        } else if (url.startsWith(\"whatsapp://\")) {\n            Intent intent \u003d new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n            startActivity(intent);\n            return true;\n        } else if (url.startsWith(\"mailto:\")) {\n            Intent intent \u003d new Intent(Intent.ACTION_SENDTO, Uri.parse(url));\n            startActivity(intent);\n            return true;\n        }\n        view.loadUrl(url);\n        return false;\n    }\n\n    @Override\n    public void onPageStarted(WebView view, String url, Bitmap favicon) {\n        super.onPageStarted(view, url, favicon); \n%4$s\n        \n    }\n\n    @Override\n    public void onPageFinished(WebView view, String url) {\n        super.onPageFinished(view, url);\n\n\n}\n});\n\n\n\n// সুবহানাল্লাহ, আলহামদুলিল্লাহ, আস্তা-গফিরু-ল্লাহ\n// তওবা\n//\"আস্তাগফিরুল্লাহ্-হাল্লাজি লা ইলাহা ইল্লা হুওয়াল হাইয়্যুল কাইয়্যুম ওয়া আতুবু ইলাইহি,লা হাওলা ওয়ালা কুয়্যাতা ইল্লা বিল্লাহি\n\n// ৫ ওয়াক্ত নামাজ আদায় করুন, \n// আল্লাহ তায়ালার আদেশ নিষেদ মেনে চলুন, \n// কোরআন আল্লাহ তায়ালার বাণী মেনে চলুন ।","imports":"","color":"#FFF44336","name":"CobraPay Payment Gateway","typeName":"","palette":"32","type":"c","spec":"CobraPay Create Payment  %m.webview Amount %s  BrandKey %s ","spec2":"Website Load"},{"code":"if (url.startsWith(\"https://payment.cobrapaybd.xyz/success.php\")) {\n    String input \u003d url;  \n    String paymentMethod \u003d \"\";  \n    String transactionId \u003d \"\";  \n    String paymentAmount \u003d \"\";  \n    String paymentFee \u003d \"\";  \n    String status \u003d \"\";  \n  \n    String[] queryParams \u003d input.split(\"\\\\?\")[1].split(\"\u0026\");  \n  \n    for (String param : queryParams) {  \n        String[] keyValue \u003d param.split(\"\u003d\");  \n        if (keyValue.length \u003d\u003d 2) {  \n            String key \u003d keyValue[0];  \n            String value \u003d keyValue[1];  \n  \n            switch (key) {  \n                case \"paymentMethod\":  \n                    paymentMethod \u003d value;  \n                    break;  \n                case \"transactionId\":  \n                    transactionId \u003d value;  \n                    break;  \n                case \"paymentAmount\":  \n                    paymentAmount \u003d value;  \n                    break;  \n                case \"paymentFee\":  \n                    paymentFee \u003d value;  \n                    break;  \n                case \"status\":  \n                    status \u003d value;  \n                    break;  \n                default:  \n                    break;  \n            }  \n        }  \n    }\n%1$s\n}","imports":"","color":"#FFF44336","name":"if Payment Success CobraPay","typeName":"","palette":"32","type":"c","spec":"if CobraPay Payment Success "},{"code":"if (url.equals(\"https://payment.cobrapaybd.xyz/paymentfail.php\")) {\n            %1$s\n        }","imports":"","color":"#FFF44336","name":"PaymentFail CobraPay","typeName":"","palette":"32","type":"c","spec":"if CobraPay PaymentFail"},{"code":"paymentMethod","imports":"","color":"#FFF44336","name":"Payment Method CobraPay","typeName":"Payment Method","palette":"32","type":"s","spec":"Payment Method"},{"code":"paymentAmount","imports":"","color":"#FFF44336","name":"paymentAmount CobraPay","typeName":"paymentAmount","palette":"32","type":"s","spec":"paymentAmount"},{"code":"paymentFee","imports":"","color":"#FFF44336","name":"paymentFee CobraPay","typeName":"paymentFee","palette":"32","type":"s","spec":"paymentFee"},{"code":"transactionId","imports":"","color":"#FFF44336","name":"Transaction ID CobraPay","typeName":"Transaction ID","palette":"32","type":"s","spec":"Transaction ID"},{"code":"","imports":"","color":"#FFF44336","name":"CobraPay","typeName":"CobraPay","palette":"32","type":"h","spec":"Thanks For Use CobraPay"}]