【发布时间】:2016-06-10 05:41:55
【问题描述】:
我已经在 yii2 rest api Using this reference. 中集成了 Braintree 方法。我想更新客户,但出现以下错误:
缺少 Braintree\Customer::update() 的参数 2
下面是我的代码:
$braintree = Yii::$app->braintree;
$response = $braintree->call('Customer', 'update','15552090',[
'firstName' => 'test-1545',
'lastName' => 'asdf',
'company' => 'New Company',
'email' => 'new.email@example.com',
'phone' => 'new phone',
'fax' => 'new fax',
'website' => 'http://new.example.com'
]);
print_r($response); die;
我是栈在这里如何传递参数?
【问题讨论】:
-
请提供您正在使用的扩展的参考。