thephpleague / omnipay-common

Core components for the Omnipay PHP payment processing library
MIT License
329 stars 242 forks source link

Moneris cardReference creation issue in omnipay3 #231

Open pradeep-sawant2501 opened 3 years ago

pradeep-sawant2501 commented 3 years ago

Hi Guys, I am new in omnipay3. I am implementing Moneris gateways. Also I know how to create card object. Can anyone suggest me how to create card reference from credit card details or credit card object on omnipay 3. My puchase method are as follows: $response = $gateway->purchase( [ 'orderNumber' => 'ord_111', 'paymentMethod' => 'payment_profile', 'cardReference' => '100948588255', 'amount' => 1.00, 'currency' => 'USD', 'description' => 'Test Purchase', //'card' => $card, ] )->send();

Response are as follows: (because card reference not proper) <?xml version="1.0" standalone="yes"?>

null null null null null null null null false API token mismatch null null null false null null