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

Using AVS #3

Open
rajshrimohanks opened this issue Jan 22, 2019 · 4 comments
Open

Using AVS #3

rajshrimohanks opened this issue Jan 22, 2019 · 4 comments

Comments

@rajshrimohanks
Copy link

How to I invoke a address verification? Even if I include a customer address in the request for charging a card token, the response is always AVS Not Requested..

@zxfrank
Copy link

zxfrank commented Sep 16, 2019

Hi, because realex developpers are dumb as f*, you need to concat zip code and address line 1 in the field postalCode, yeah that sucks!
https://developer.realexpayments.com/#!/ecommerce/fraud-management#ecommerce-avs

BUT! I'm trying this right meow and I get a nice and meaningfull error Unexpected Gateway Response: undefined - undefined

stay tuned!

@zxfrank
Copy link

zxfrank commented Sep 16, 2019

Well the official documentation is really confused (and confusing)!

I ended up getting an answer with the following settings:

config.merchantId 	= "heartlandgpsandbox";
config.accountId 	= "api";
config.sharedSecret 	= "secret";
config.serviceUrl 	= 'https://api.sandbox.realexpayments.com/epage-remote.cgi';
const card = new CreditCardData();
[ card info here]

const address 		= new Address();
address.postalCode 	= zipcode+'|'+address_line_1;
card.verify()
.withAddress(address)
.execute().then(function(res){
      [...]
}).catch(function(err){console.error(err)});

you'll get an answer like

{
  responseCode: '00',
  responseMessage: '(00)[ test system ] Authorised',
  cvnResponseCode: 'M',
  avsResponseCode: 'M',
  timestamp: undefined,
  transactionReference:
   TransactionReference {
     authCode: '12345',
     orderId: 'ODVkMjE4MDAtYzQ4YS00NTNmLWFhNDYtNWU4NTA1NGQyMzY3',
     paymentMethodType: 2,
     transactionId: '15686654849141955'
   }
}

BUT... (yeah there's one) the address info is not sent in the request XML... working on it

@zxfrank
Copy link

zxfrank commented Sep 17, 2019

I made some changes in #7 this is "supposed" to work, I don't have live to test it right now

@rajshrimohanks
Copy link
Author

@zxfrank It's been close to a year and no one from globalpayments responded to this. Thanks for this.

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

2 participants