【发布时间】:2019-01-28 11:20:21
【问题描述】:
我正在尝试使用条带直接收费,当用户使用新卡(带有令牌 ID)时它正在工作。
问题:尝试保存客户 ID 和保存卡 ID 时。当我尝试使用自定义 ID 和来源 => 保存卡 ID 收费时,它给出了错误客户不存在。但是客户和卡号都存在。
$charge = \Stripe\Charge::create([
"customer" => $userdata->stripe_id,
"amount" => $amount,
"currency" => "usd",
"source" => $findcard['card_id'],
"application_fee" => $fee,
], ["stripe_account" => $talent_stripeid]);
错误:没有这样的客户:cus_EOwmc6nVmU7oNu
【问题讨论】:
标签: php stripe-payments