[英]i got a ssl certificate error when i want to generate a token for every click checkout on braintree
我的代碼是:
require_once 'braintree/Braintree.php';
Braintree_Configuration::environment('sandbox');
Braintree_Configuration::merchantId('6mh3jxjv5smdpyh3');
Braintree_Configuration::publicKey('j4hgps5mp4bqtm2m');
Braintree_Configuration::privateKey('97a526828d7402c09d4d5fdfff197ab5');
$arguments=array();
echo $token = Braintree_ClientToken::generate();
為本地主機生成令牌。但是在服務器中將出現錯誤未捕獲的異常'Braintree_Exception_SSLCertificate'.Http.php頁面上的錯誤
我從BT獲得了一些有關他們的沙箱棄用TLSv <1.2的信息,這將需要更新其SDK。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.