laravel-sslcommerz icon indicating copy to clipboard operation
laravel-sslcommerz copied to clipboard

make_payment function at SSLCommerz, return value correction needed!

Open mhrahul opened this issue 1 year ago • 0 comments

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;

mhrahul avatar Sep 27 '22 18:09 mhrahul