Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moneris cardReference creation issue in omnipay3 #231

Open
pradeep-sawant2501 opened this issue Sep 23, 2020 · 0 comments
Open

Moneris cardReference creation issue in omnipay3 #231

pradeep-sawant2501 opened this issue Sep 23, 2020 · 0 comments

Comments

@pradeep-sawant2501
Copy link

pradeep-sawant2501 commented Sep 23, 2020

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)

<response>
    <receipt>
        <ReceiptId>null</ReceiptId>
        <ReferenceNum>null</ReferenceNum>
        <ResponseCode>null</ResponseCode>
        <ISO>null</ISO>
        <AuthCode>null</AuthCode>
        <TransTime>null</TransTime>
        <TransDate>null</TransDate>
        <TransType>null</TransType>
        <Complete>false</Complete>
        <Message>API token mismatch</Message>
        <TransAmount>null</TransAmount>
        <CardType>null</CardType>
        <TransID>null</TransID>
        <TimedOut>false</TimedOut>
        <BankTotals>null</BankTotals>
        <Ticket>null</Ticket>
    </receipt>
</response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant