Open ridislam opened 7 years ago
It's not clear from the above exactly where that happened.
The getBillingLastName() function is in the CreditCard class. Maybe a null card object is being used?
Also this is a problem with the gateway that you're using, not omnipay itself. Which fork of the PayU gateway are you using? Best raise this issue there.
$gateway = Omnipay::create('PayU'); $gateway->setMerchantId('JBZaLc'); $gateway->setSecretKey('GQs7yium'); $gateway->setTestMode(true);
// // payment was successful: update database dd("ok"); } elseif ($response->isRedirect()) { // redirect to offsite payment gateway $response->redirect(); } else { // payment failed: display message to customer echo $response->getMessage(); }