{"id":2887,"date":"2025-05-20T14:20:59","date_gmt":"2025-05-20T06:20:59","guid":{"rendered":"https:\/\/www.deekpay.com\/?p=2887"},"modified":"2025-05-20T14:20:59","modified_gmt":"2025-05-20T06:20:59","slug":"%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4","status":"publish","type":"post","link":"https:\/\/www.deekpay.com\/zh\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/","title":{"rendered":"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4"},"content":{"rendered":"<p># PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4<\/p>\n<p> 1. \u51c6\u5907\u5de5\u4f5c<\/p>\n<p> \u6ce8\u518cbKash\u5546\u5bb6\u8d26\u6237<br \/>\n\u2013 \u8bbf\u95ee[bKash\u5546\u6237\u95e8\u6237](https:\/\/merchant.bka.sh\/)\u6ce8\u518c\u8d26\u6237<br \/>\n\u2013 \u5b8c\u6210\u5fc5\u8981\u7684\u9a8c\u8bc1\u6d41\u7a0b<br \/>\n\u2013 \u83b7\u53d6API\u51ed\u8bc1(API Key, API Secret, Username\u548cPassword)<\/p>\n<p> \u73af\u5883\u8981\u6c42<br \/>\n\u2013 PHP &gt;=7.0 (\u63a8\u83507.4+)<br \/>\n\u2013 cURL\u6269\u5c55\u5df2\u542f\u7528<br \/>\n\u2013 SSL\u8bc1\u4e66(\u751f\u4ea7\u73af\u5883\u5fc5\u987b\u4f7f\u7528HTTPS)<\/p>\n<p> 2. bKash API\u914d\u7f6e<\/p>\n<p>\u201c`php<br \/>\n\/\/ config.php \u2013 bKash API\u914d\u7f6e\u53c2\u6570<br \/>\ndefine(\u2018BKASH_BASE_URL\u2019, \u2018https:\/\/tokenized.sandbox.bka.sh\/v1.2.0-beta\u2019); \/\/ SandboxURL<br \/>\n\/\/ define(\u2018BKASH_BASE_URL\u2019, \u2018https:\/\/tokenized.pay.bka.sh\/v1.2.0-beta\u2019); \/\/ ProductionURL<\/p>\n<p>define(\u2018BKASH_APP_KEY\u2019, \u2018your_app_key\u2019);<br \/>\ndefine(\u2018BKASH_APP_SECRET\u2019, \u2018your_app_secret\u2019);<br \/>\ndefine(\u2018BKASH_USERNAME\u2019, \u2018your_username\u2019);<br \/>\ndefine(\u2018BKASH_PASSWORD\u2019, \u2018your_password\u2019);<\/p>\n<p>\/\/ Callback URLs \u2013 replace with your actual URLs<br \/>\ndefine(\u2018BKASH_CALLBACK_SUCCESS_URL\u2019, \u2018https:\/\/yoursite.com\/payment\/success.php\u2019);<br \/>\ndefine(\u2018BKASH_CALLBACK_FAILURE_URL\u2019, \u2018https:\/\/yoursite.com\/payment\/failure.php\u2019);<br \/>\n&#8220;`<\/p>\n<p> 3. Token\u751f\u6210\u4e0e\u5904\u7406<\/p>\n<p>\u201c`php<br \/>\n\/\/ token_generator.php \u2013 bKash\u6388\u6743\u4ee4\u724c\u83b7\u53d6\u529f\u80fd<\/p>\n<p>function getBkashToken() {<br \/>\n    $post_token = array(<br \/>\n        \u201capp_key\u201d =&gt; BKASH_APP_KEY,<br \/>\n        \u201capp_secret\u201d =&gt; BKASH_APP_SECRET,<br \/>\n    );<\/p>\n<p>    $url = BKASH_BASE_URL . \u201c\/tokenized\/checkout\/token\/grant\u201d;<\/p>\n<p>    $headers = array(<br \/>\n        \u201cContent-Type: application\/json\u201d,<br \/>\n        \u201cusername: \u201c. BKASH_USERNAME,<br \/>\n        \u201cpassword: \u201c. BKASH_PASSWORD,<br \/>\n    );<\/p>\n<p>    $curl = curl_init();<br \/>\n    curl_setopt($curl, CURLOPT_URL, $url);<br \/>\n    curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($post_token));<br \/>\n    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);<br \/>\n    curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);<br \/>\n    curl_setopt($curl, CURLOPT_TIMEOUT ,30);<\/p>\n<p>     \/\/ For production only (remove for sandbox testing)<br \/>\n     \/\/ curl_setopt($ch,CURLOPT_SSL_VERIFYPEER ,true);<br \/>\n     \/\/ curl_setopt ($ch,CURLOPT_CAINFO,\u201dpath_to_certificate\u201d);<\/p>\n<p>     if(!empty($_SERVER[\u2018HTTP_HOST\u2019])){<br \/>\n         if(strpos(BKAFH_BASE_URL,\u2019sandbox\u2019) !== false){<br \/>\n             @ini_get(\u201csafe_mode\u201d) || set_time_limit(30);@ini_get(\u201copen_basedir\u201d) || ini_set(\u201cmax_execution_time\u201d,30);<br \/>\n         }<br \/>\n     }<\/p>\n<p>      try{<br \/>\n          return json_decode(curl_exec ($ch),true) ;<br \/>\n       }catch(Exception$e){return null;}<\/p>\n<p>       finally{if(is_resource ($ch)){@close();}}<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>4\uff0e\u521b\u5efa\u652f\u4ed8\u8bf7\u6c42 <\/p>\n<p>\u201c` php<br \/>\n<?php \nrequire_once'config.php'; \n\nsession_start(); \n\nif($_SERVER[\"REQUEST_METHOD\"]==\"POST\"){  \n   $_SESSION['invoice_no']=uniqid();  \n   \n   function createPaymentRequest(){  \n      global$_SESSION;  \n\n      \/* Generate or retrieve existing token *\/  \n      if(!isset($_SESSION['bkash_token'])||time()>=$_[&#8230;]){<br \/>\n         \/* Refresh token logic here *\/}  <\/p>\n<p>       \/* Prepare payment data *\/<br \/>\n       $_data=[&#8230;];   <\/p>\n<p>       \/* Make API call to create payment *\/<br \/>\n       [&#8230;]<\/p>\n<p>   }  <\/p>\n<p>}?>  <\/p>\n<form method=\"post\" action=\"\">Amount:<input type=\"number\"...><input type=\"hidden\" name=\"trp-form-language\" value=\"zh\"\/><\/form>\n<p>&#8220;`<\/p>\n<p>5\uff0e\u56de\u8c03\u5904\u7406\u793a\u4f8b\uff1a<\/p>\n<p>success_callback.html:<\/p>\n<p>&#8220;`<\/p>\n<p>&#8220;`<\/p>\n<p>6\uff0e\u5b8c\u6574\u7684\u7c7b\u5b9e\u73b0\uff08\u53ef\u9009\uff09\uff1a<\/p>\n<p>class.BkashPaymentGateway.PHP:<\/p>\n<p>&#8220;`<br \/>\n<?PHP namespace YourNamespace\\Payments; use Exception; class Bk ash Payment Gateway { private const SANDBOX _ BASE _ URI='[...]'; public function __construct(array$config){\/* ...*\/} public function executePayment(float$amount):array {\/* ...*\/ }}\n```\n\n\u91cd\u8981\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\uff1a\n\u2022\u59cb\u7ec8\u5728\u670d\u52a1\u5668\u7aef\u9a8c\u8bc1\u4ea4\u6613\u72b6\u6001\uff0c\u4e0d\u8981\u4f9d\u8d56\u5ba2\u6237\u7aef\u54cd\u5e94\u3002\n\u2022\u59a5\u5584\u5b58\u50a8\u60a8\u7684\u51ed\u636e\uff0c\u5207\u52ff\u63d0\u4ea4\u5230\u7248\u672c\u63a7\u5236\u3002\u8003\u8651\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u3002\n\u2022\u5b9e\u65bd\u9002\u5f53\u7684\u9519\u8bef\u5904\u7406\u548c\u65e5\u5fd7\u8bb0\u5f55\u3002\n\n\u6d4b\u8bd5\u5efa\u8bae\uff1a\u9996\u5148\u5728\u6c99\u76d2\u73af\u5883\u4e2d\u5f7b\u5e95\u6d4b\u8bd5\u6240\u6709\u6d41\u7a0b\u540e\u518d\u4e0a\u7ebf\u3002\u68c0\u67e5\u5404\u79cd\u8fb9\u7f18\u60c5\u51b5\u5982\u7f51\u7edc\u8d85\u65f6\u3001\u652f\u4ed8\u53d6\u6d88\u7b49\u3002\n\n\u60a8\u9700\u8981\u6839\u636e\u5b9e\u9645\u4e1a\u52a1\u9700\u6c42\u8c03\u6574\u91d1\u989d\u3001\u8d27\u5e01\u548c\u4ea7\u54c1\u4fe1\u606f\u5b57\u6bb5\u3002\u6b64\u4ee3\u7801\u63d0\u4f9b\u4e86\u57fa\u672c\u6846\u67b6\u4f46\u53ef\u80fd\u9700\u8981\u9488\u5bf9\u7279\u5b9a\u7528\u4f8b\u8fdb\u884c\u4fee\u6539\u3002# PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4\uff08\u7eed\uff09\n\n 4. \u521b\u5efa\u652f\u4ed8\u8bf7\u6c42\uff08\u8be6\u7ec6\u5b9e\u73b0\uff09\n\n```php\n\/\/ create_payment.php\n\nrequire_once 'config.php';\nrequire_once 'token_generator.php';\n\nsession_start();\n\nfunction createBkashPayment($amount, $invoiceNumber) {\n    \/\/ \u83b7\u53d6\u6216\u5237\u65b0\u4ee4\u724c\n    $tokenResponse = getBkashToken();\n    \n    if(!$tokenResponse || !isset($tokenResponse['id_token'])) {\n        throw new Exception(\"\u65e0\u6cd5\u83b7\u53d6bKash\u8bbf\u95ee\u4ee4\u724c\");\n    }\n    \n    $id_token = $tokenResponse['id_token'];\n    \n    \/\/ \u51c6\u5907\u652f\u4ed8\u6570\u636e\n    $paymentData = [\n        \"mode\" => &#8220;0011&#8221;, \/\/ Tokenized Payment (0011)<br \/>\n        &#8220;payerReference&#8221; => &#8220;customer123&#8221;, \/\/ \u5ba2\u6237\u552f\u4e00\u6807\u8bc6<br \/>\n        &#8220;callbackURL&#8221; => BKASH_CALLBACK_SUCCESS_URL,<br \/>\n        &#8220;amount&#8221; => (string)$amount,<br \/>\n        &#8220;currency&#8221; => &#8220;BDT&#8221;,<br \/>\n        &#8220;intent&#8221; => &#8220;sale&#8221;,<br \/>\n        &#8220;merchantInvoiceNumber&#8221; => $invoiceNumber<br \/>\n    ];<\/p>\n<p>    $url = BKASH_BASE_URL . &#8220;\/tokenized\/checkout\/create&#8221;;<\/p>\n<p>     try {<br \/>\n         return makeBkashApiCall($url, json_encode($paymentData), [<br \/>\n             &#8216;Content-Type: application\/json&#8217;,<br \/>\n             &#8216;Authorization: &#8216;.$id_token,<br \/>\n             &#8216;X-APP-Key: &#8216;.BKASH_APP_KEY<br \/>\n         ]);<br \/>\n     } catch(Exception$e){return null;}<br \/>\n}<\/p>\n<p>function makeBkashApiCall(string$_endpoint,$_payload=null,$headers=[],bool$_isPost=true){<br \/>\n   \/* &#8230; *\/<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>5\uff0e\u6267\u884c\u652f\u4ed8\u6d41\u7a0b <\/p>\n<p>&#8220;` php<br \/>\n<?php \n\/\/ payment_page.php \n\nif($_SERVER[\"REQUEST_METHOD\"]==\"POST\"){  \n   $_SESSION['order_amount']=$_POST[\"amount\"];  \n   \n   try{  \n      $_create_response=create B k ash Payment(  \n          floatval($_SESSION['order_amount']),   \n          uniq id(\"INV-\"));  \n\n       if(!empty ($_[...]['bk ash URL'])){header (\"Location:\".$_ [...]);\n       }else{die(\"\u521b\u5efa\u4ed8\u6b3e\u5931\u8d25\");}  \n\n   }catch(Exception$e){\/* Handle error*\/}  \n\n}?>  <\/p>\n<form method=\"post\" action=\"\">Amount:<input type=\"number\"... required><input type=\"hidden\" name=\"trp-form-language\" value=\"zh\"\/><\/form>\n<p>&#8220;`<\/p>\n<p>6\uff0e\u56de\u8c03\u5904\u7406\u4e0e\u9a8c\u8bc1\uff1a<\/p>\n<p>verify_payment_status.PHP:<\/p>\n<p>&#8220;`<br \/>\n<?PHP header('Content-Type:application\/json'); require'...'; \n\ntry{\n   if(empty($_GET[\"paymentID\"]))throw new InvalidArgumentException;\n   \n   function verifyPaymentStatus(string$_payment_id):array{\n      \/* Retrieve token *\/ ;\n      \n      $_response=make B k ash Api Call(\n         BK ASH _ BASE _ URL.\"\/...\/execute?paymentID=\".$_ payment ID,[],[...],false);\n         \n      return is_array ($_ response)?[...]:[];\n   }\n   \n   exit(json encode(['success'=>true,\u2026]));<\/p>\n<p>}catch(\u2026){http response code(\u2026);}<br \/>\n&#8220;`<\/p>\n<p>7\uff0e\u5b8c\u6574\u7684\u7c7b\u65b9\u6cd5\u793a\u4f8b\uff1a<\/p>\n<p>class.Bk ash Payment Gateway.PHP (\u7eed):<\/p>\n<p>&#8220;`<br \/>\npublic function refundTransaction(<br \/>\n string $_ payment ID,<br \/>\n float $_ amount,<br \/>\n string $_ trx ID ,<br \/>\n string $_ reason =\u201d\u201d<br \/>\n): array {<\/p>\n<p>\/* Validate inputs *\/<\/p>\n<p>return$this-&gt; make Authenticated Request (<br \/>\n \u201c\/[\u2026]\/refund\u201d,<br \/>\n compact (\u2018[\u2026]\u2019)<br \/>\n);<\/p>\n<p>}<br \/>\n&#8220;`<\/p>\n<p>8. Webhook\u5904\u7406\uff08\u63a8\u8350\uff09\uff1a<\/p>\n<p>webhook_handler.PHP:<\/p>\n<p>&#8220;`<br \/>\n<?PHP \nfile put contents ('logs\/b k ash.txt',print r ($ HTTP RAW POST DATA ,true).\"\\n\\n\",FILE APPEND);\n\nif(!verifyWeb hookSignature (...))die;\n\nswitch(json decode(file get contents('php:\/\/input'),true)['transactionStatus']??''){\n case'Success':\/* Update DB *\/break;\n default:\/* Log unusual statuses *\/}\n```\n\n9. \u5b89\u5168\u589e\u5f3a\u63aa\u65bd\uff1a\n\n\u2022 IP\u767d\u540d\u5355\uff1a\u4ec5\u5141\u8bb8\u6765\u81eabKash\u5b98\u65b9IP\u7684\u8bf7\u6c42 ([\u6587\u6863](https:\/\/developer.bka.sh\/docs))\n\u2022 HMAC\u7b7e\u540d\u9a8c\u8bc1\u6240\u6709\u56de\u8c03\/webhooks\uff1a\n```\nfunction isValidCallback(array$_data):bool{\n return hash equals(\n     hash hmac('sha256',json encode([...]),BK ASH _ WEB HOOK _ SECRET),\n     [...]\n );\n}\n```\n\n10. \u9519\u8bef\u5904\u7406\u6700\u4f73\u5b9e\u8df5\uff1a\n\n\u2022 Implement exponential backoff for failed API calls:\n```\nfor($_i=0;$_i<3; ++$_ i ){\n sleep(min(pow(2,$ i ),8));\n if($response=@ some Operation())break;\n}\n```\n\n\n\u90e8\u7f72\u68c0\u67e5\u6e05\u5355\uff1a\n\u2713 SSL\u8bc1\u4e66\u6709\u6548\u4e14\u914d\u7f6e\u6b63\u786e\n\u2713 Cron job\u8bbe\u7f6e\u5b9a\u671f\u6e05\u7406\u8fc7\u671f\u4ee4\u724c \n\u2713 Database\u8868\u8bbe\u8ba1\u5305\u542b\u6240\u6709\u5fc5\u8981\u5b57\u6bb5(status,trx_id,timestamp\u7b49)\n\u2713 PCI DSS\u5408\u89c4\u6027\u5ba1\u67e5\u5b8c\u6210\n\n\u8c03\u8bd5\u63d0\u793a\uff1a\u5728\u6c99\u76d2\u73af\u5883\u4e2d\u4f7f\u7528\u6d4b\u8bd5\u53f7\u7801\uff1a\n\u2022 Customer Wallet: +880184\n\u2022 OTP\u5bc6\u7801\uff1a123456\n<\/p>","protected":false},"excerpt":{"rendered":"<p># PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4 1. \u51c6\u5907\u5de5\u4f5c \u6ce8\u518c\u2026<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[36],"tags":[],"class_list":["post-2887","post","type-post","status-publish","format-standard","hentry","category-36"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.9 (Yoast SEO v23.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4 - DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.deekpay.com\/zh\/2025\/05\/20\/\u7528php\u96c6\u6210bkash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4\" \/>\n<meta property=\"og:description\" content=\"# PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4 1. \u51c6\u5907\u5de5\u4f5c \u6ce8\u518c&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.deekpay.com\/zh\/2025\/05\/20\/\u7528php\u96c6\u6210bkash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4\/\" \/>\n<meta property=\"og:site_name\" content=\"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-20T06:20:59+00:00\" \/>\n<meta name=\"author\" content=\"deekpay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"deekpay\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/\"},\"author\":{\"name\":\"deekpay\",\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/person\/91e4e842fdd04f8c957a9f642506f51d\"},\"headline\":\"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4\",\"datePublished\":\"2025-05-20T06:20:59+00:00\",\"dateModified\":\"2025-05-20T06:20:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/\"},\"wordCount\":273,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.deekpay.com\/#organization\"},\"articleSection\":[\"\u5b5f\u52a0\u62c9\u652f\u4ed8\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/\",\"url\":\"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/\",\"name\":\"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4 - DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8\",\"isPartOf\":{\"@id\":\"https:\/\/www.deekpay.com\/#website\"},\"datePublished\":\"2025-05-20T06:20:59+00:00\",\"dateModified\":\"2025-05-20T06:20:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.deekpay.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.deekpay.com\/#website\",\"url\":\"https:\/\/www.deekpay.com\/\",\"name\":\"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u652f\u4ed8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.deekpay.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.deekpay.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.deekpay.com\/#organization\",\"name\":\"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8\u548cUPI\u652f\u4ed8\u670d\u52a1\u5546\",\"url\":\"https:\/\/www.deekpay.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/deekpay.com\/wp-content\/uploads\/2024\/11\/LOGO-1.png\",\"contentUrl\":\"https:\/\/deekpay.com\/wp-content\/uploads\/2024\/11\/LOGO-1.png\",\"width\":649,\"height\":191,\"caption\":\"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8\u548cUPI\u652f\u4ed8\u670d\u52a1\u5546\"},\"image\":{\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/person\/91e4e842fdd04f8c957a9f642506f51d\",\"name\":\"deekpay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/485e931d0b237ba5cfa6c7cea419d88f7e3258b4837d99943e099ff93b458f8c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/485e931d0b237ba5cfa6c7cea419d88f7e3258b4837d99943e099ff93b458f8c?s=96&d=mm&r=g\",\"caption\":\"deekpay\"},\"sameAs\":[\"https:\/\/deekpay.com\"],\"url\":\"https:\/\/www.deekpay.com\/zh\/author\/deekpay\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4 - DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.deekpay.com\/zh\/2025\/05\/20\/\u7528php\u96c6\u6210bkash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4\/","og_locale":"zh_TW","og_type":"article","og_title":"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4","og_description":"# PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4 1. \u51c6\u5907\u5de5\u4f5c \u6ce8\u518c&hellip;","og_url":"https:\/\/www.deekpay.com\/zh\/2025\/05\/20\/\u7528php\u96c6\u6210bkash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4\/","og_site_name":"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8","article_published_time":"2025-05-20T06:20:59+00:00","author":"deekpay","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"deekpay","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"1 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/#article","isPartOf":{"@id":"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/"},"author":{"name":"deekpay","@id":"https:\/\/www.deekpay.com\/#\/schema\/person\/91e4e842fdd04f8c957a9f642506f51d"},"headline":"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4","datePublished":"2025-05-20T06:20:59+00:00","dateModified":"2025-05-20T06:20:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/"},"wordCount":273,"commentCount":0,"publisher":{"@id":"https:\/\/www.deekpay.com\/#organization"},"articleSection":["\u5b5f\u52a0\u62c9\u652f\u4ed8"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/","url":"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/","name":"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4 - DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8","isPartOf":{"@id":"https:\/\/www.deekpay.com\/#website"},"datePublished":"2025-05-20T06:20:59+00:00","dateModified":"2025-05-20T06:20:59+00:00","breadcrumb":{"@id":"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.deekpay.com\/2025\/05\/20\/%e7%94%a8php%e9%9b%86%e6%88%90bkash%e6%94%af%e4%bb%98%e7%9a%84%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.deekpay.com\/"},{"@type":"ListItem","position":2,"name":"\u7528PHP\u96c6\u6210bKash\u652f\u4ed8\u7684\u5b8c\u6574\u6b65\u9aa4"}]},{"@type":"WebSite","@id":"https:\/\/www.deekpay.com\/#website","url":"https:\/\/www.deekpay.com\/","name":"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u652f\u4ed8","description":"","publisher":{"@id":"https:\/\/www.deekpay.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.deekpay.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/www.deekpay.com\/#organization","name":"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8\u548cUPI\u652f\u4ed8\u670d\u52a1\u5546","url":"https:\/\/www.deekpay.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.deekpay.com\/#\/schema\/logo\/image\/","url":"https:\/\/deekpay.com\/wp-content\/uploads\/2024\/11\/LOGO-1.png","contentUrl":"https:\/\/deekpay.com\/wp-content\/uploads\/2024\/11\/LOGO-1.png","width":649,"height":191,"caption":"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8\u548cUPI\u652f\u4ed8\u670d\u52a1\u5546"},"image":{"@id":"https:\/\/www.deekpay.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.deekpay.com\/#\/schema\/person\/91e4e842fdd04f8c957a9f642506f51d","name":"deekpay","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.deekpay.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/485e931d0b237ba5cfa6c7cea419d88f7e3258b4837d99943e099ff93b458f8c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/485e931d0b237ba5cfa6c7cea419d88f7e3258b4837d99943e099ff93b458f8c?s=96&d=mm&r=g","caption":"deekpay"},"sameAs":["https:\/\/deekpay.com"],"url":"https:\/\/www.deekpay.com\/zh\/author\/deekpay\/"}]}},"_links":{"self":[{"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/posts\/2887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/comments?post=2887"}],"version-history":[{"count":1,"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/posts\/2887\/revisions"}],"predecessor-version":[{"id":2888,"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/posts\/2887\/revisions\/2888"}],"wp:attachment":[{"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/media?parent=2887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/categories?post=2887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deekpay.com\/zh\/wp-json\/wp\/v2\/tags?post=2887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}