我正在使用Mollie Laravel API在我的软件中进行付款。我使用的代码与示例中的代码完全相同,请参见此处:
private static function getPayment($total_price, $booking_date){
$payment = Mollie::api()->payments()->create([
"amount" => [
"currency" => "EUR",
"value" => $total_price
],
"method" => "ideal",
"description" => Session::get('booking_startTime') . " tot " . Session::get('booking_endTime'),
"redirectUrl" => "http://localhost",
]);
$payment = Mollie::api()->payments()->get($payment->id);
return redirect($payment->getCheckoutUrl(), 303);
}
这将继续返回CORS重定向块。有人有线索吗?