laravel-sslcommerz
laravel-sslcommerz copied to clipboard
make_payment function at SSLCommerz, return value correction needed!
At your SSLCommerz class, the success make_payment function returns result with redirect()->to($output->GatewayPageURL). It's okay whenever anyone uses blade template. But when I am using vuejs I got in trouble because I requested the post method and as result, I expect the GatewayPageURL. So it will be great if you just return the URL rather than redirect it directly.
return $initiate_only ? json_encode(['status' => 'success', 'data' => $output->GatewayPageURL, 'logo' => $output->storeLogo]) : $output->GatewayPageURL;