php braintree integration
问题 I am trying to integrate the Braintree API into my PHP application. I am new in integrating payment gateway. Please, help me with some example code for Braintree API. 回答1: Here is the code you will absolutely need to get started: require_once 'PATH_TO_BRAINTREE/lib/Braintree.php'; Braintree_Configuration::environment('sandbox'); Braintree_Configuration::merchantId('your_merchant_id'); Braintree_Configuration::publicKey('your_public_key'); Braintree_Configuration::privateKey('your_private_key'