0
我正在为我的项目使用Stripe付款选项。我有一个定期选项,这就是为什么我在订阅页面中创建了plans
。订阅计划中无法获取交易ID
创建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
。