【发布时间】:2015-04-30 06:16:46
【问题描述】:
我想在我的 iOS 应用中集成 Braintree 支付。为此,我在https://getcomposer.org/doc/01-basic-usage.md 之后安装了作曲家。
composer 文件夹是在本地创建的,我已经把它放在我的服务器上。
但是当我运行payAmountUsingBraintree.php 文件时,我得到以下错误:
Fatal error: Class 'Braintree_Configuration' not found
payAmountUsingBraintree.php的内容:
<?php
//include '../config.php';
include 'db_config.php';
require_once 'vendor/autoload.php';
//echo 'Current PHP version: ' . phpversion();
$PartnerId = $_POST["PartnerId"];
$nonce = $_POST["Nonce"];
$amount = $_POST["Amount"];
$fname = $_POST["fname"];
$lname = $_POST["lname"];
$SaveCard = $_POST["SaveCard"];
$number = $_POST["CardNumber"];
$postal_code = $_POST["postal_code"];
$CVV = $_POST["CVV"];
$MerchantAccountId = '';
$IsAvailable = 'no';
Braintree_Configuration::environment('sandbox'); // get error on this line
Braintree_Configuration::merchantId('2qyx6qtd9bvy82r');
Braintree_Configuration::publicKey('c9qvxk3nvhmd68b');
Braintree_Configuration::privateKey('6f8ca01bd95cc0c753e936148303de4');
我哪里错了?我该如何解决?
【问题讨论】:
-
我在布伦特里工作。抱歉,我们错过了您的问题。如果你已经解决了,你能发布一个答案让我知道吗?否则,我建议你email our support team;他们将能够提供帮助。