Comments (4)
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.
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.
I made some changes in #7 this is "supposed" to work, I don't have live to test it right now
from node-sdk.
@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)
- Hosted Solution : Getting payment 508 error in special cases of amount HOT 3
- cardLast4 is undefined when calling CreditCardData.charge HOT 1
- NPM install is not installing the last version present in the GitHub master branch HOT 1
- Module Not Found: '../netsuite/set-timeout-polyfill' HOT 2
- Floating-point rounding errors when serializing amounts HOT 1
- Issuing refund with realex HOT 1
- ReportingService.findTransactions()
- connect ETIMEDOUT when using remote api HOT 1
- how to use 3d secure in global payment node js solution
- Compilation Error HOT 3
- [Support] Is it possible to replace a card used in a reccuring payment method without recreating the schedule?
- Missing Batch Information on CloseBatch HOT 1
- lots of bugs in realexconnector HOT 4
- Can't resolve '/netsuite/set-timeout-polyfill' HOT 4
- can't write to logger.txt in production HOT 1
- [IMPORTANT] PCI Compliance issue in 1.4.9
- Cannot find module '../../test/Integration/Gateways/Terminals/RequestIdProvider' HOT 3
- Help to Integrate the GlobalPayments in React Native.. HOT 2
- Upgrade Issue - "ServicesConfig is not a constructor" HOT 1
- Is This Library Compatible With NextJS? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sdk.