admin管理员组文章数量:1123687
I am getting the error below from Stripe redirect to the checkout page:
Something went wrong. The page you were looking for could not be found. Please check the URL or contact the merchant.
Here is the code:
$checkout_session =\Stripe\Checkout\Session::create([
'customer_email' => $user,
'line_items' => [[
'price_data' => [
'currency' => $_ENV['STRIPE_CURRENCY'],
'product_data' => [
'name' => $article->getCategory(),
],
'unit_amount' =>$total * 100,
],
'quantity'=> $quantity
]],
'mode' => 'payment',
'success_url' => $domain .'/success',
'cancel_url' => $domain .'/cancel',
]);
return $this->redirect($checkout_session->url);
本文标签: phpRedirect of Stripe payment doesn39t work in SymfonyStack Overflow
版权声明:本文标题:php - Redirect of Stripe payment doesn't work in Symfony - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736590285a1945065.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论