简体   繁体   中英

i got a ssl certificate error when i want to generate a token for every click checkout on braintree

My code is:

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();

Token generate for localhost.But in server there will be a error Uncaught exception 'Braintree_Exception_SSLCertificate' .the error on Http.php page

I got some communication from BT regarding the deprecation of TLSv < 1.2 for their Sandbox, which would entail an update of one's SDK.

https://github.com/paypal/TLS-update/tree/master/Braintree?utm_campaign=BT_NA_US_MerchantNewsletter_Q4_20161025&utm_medium=email&utm_source=Eloqua&elq_cid=5173769

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM