Git Product home page Git Product logo

Comments (4)

zxfrank avatar zxfrank commented on September 16, 2024

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!

from node-sdk.

zxfrank avatar zxfrank commented on September 16, 2024

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

from node-sdk.

zxfrank avatar zxfrank commented on September 16, 2024

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

from node-sdk.

rajshrimohanks avatar rajshrimohanks commented on September 16, 2024

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

from node-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.