Php ";客户“参考号”;参数未通过
我使用Stripe Checkout(Stripe version 2016-07-06),由于参数“client_reference_id”,我希望恢复个性化数据,但在JSON中,我没有找到它,因为我通过示例获得了金额或电子邮件。我在测试环境中。你能帮我吗?先谢谢你Php ";客户“参考号”;参数未通过,php,stripe-payments,Php,Stripe Payments,我使用Stripe Checkout(Stripe version 2016-07-06),由于参数“client_reference_id”,我希望恢复个性化数据,但在JSON中,我没有找到它,因为我通过示例获得了金额或电子邮件。我在测试环境中。你能帮我吗?先谢谢你 $session = \Stripe\Checkout\Session::create([ 'client_reference_id' =>'TEST', 'customer_email' => '
$session = \Stripe\Checkout\Session::create([
'client_reference_id' =>'TEST',
'customer_email' => 'email@ovh.fr',
'payment_method_types' => ['card'],
'line_items' => [[
'name' => 'My purchase',
'amount' => '1000',
'currency' => 'eur',
'quantity' => 1,
]],
'success_url' => 'https://www.loremipsum.fr',
'cancel_url' => 'https://www.loremipsum.fr',
]);
我认为这是你需要从数据库中获取的东西,一种你分配给客户的唯一id。是的,正如上面的评论所说,这是你需要生成的id。另外,需要明确的是,由于您使用的是较旧的api版本,签出会话与基于重定向/与Stripe的旧签出产品(弹出窗口)截然不同的新版本签出一起使用。