0
我使用这个库集成到带我的应用程序添加多个卡客户条纹CakePHP的
https://github.com/jeremyharris/stripe
我遇到的问题是,我每增加一个卡它创建一个新客户的时间。我尝试了很多东西,但没有任何工作。
这里是我的代码
$a = array(
'card' => array(
'number' => $card,
'cvc' => $cvc,
'exp_month' => $exp_month,
'exp_year' => $exp_year,
'name'=>$name,
'customer'=>"cus_BS83zeYXseBDvG",
)
);
$stripe = $this->StripeCustomer->save($a);
什么是StripeCustomer?它是一个常规的数据库表模型吗?或者它是条纹网关?如果是网关,它会从插件文档中看到save命令运行授权并返回结果。这是“保存”定义的“超载”,这就是为什么示例将命令更改为“充电”的原因。 –