Hello,
Am junior for laravel and I want to change paypal to my custom payment gateway.
try {
$gateway = $this->createGateway($host);
$response = $gateway->purchase($fields)->send();
if ($response->isRedirect())
//Redirect to banc page need post method and with arguments
return Redirect::to($response->getRedirectUrl(),$response->getRedirectData());
$order->logPaymentAttempt('Payment error -> '.$response->getMessage(), 0, $fields, $response->getData());
throw new ApplicationException($response->getMessage());
}
How to use Redirect to with arguments and POST method ?