【发布时间】:2017-04-07 16:02:55
【问题描述】:
我正在为我的项目使用 Stripe 付款选项。我有一个重复选项,这就是我在订阅页面中创建plans 的原因。
创建plans 后,我已经定义了新的条带客户注册时的计划。
try {
$customer = \Stripe\Customer::create([
'source' => $token,
'email' => $email,
'plan' => '20-39-R',
'metadata' => [
"First Name" => $first_name,
"Last Name" => $last_name
]
]);
} catch (\Stripe\Error\Card $e) {
return redirect()->route('order')
->withErrors($e->getMessage())
->withInput();
}
当我有dump($customer) 变量时,我没有得到transaction id。
【问题讨论】:
标签: php stripe-payments payment-gateway