ingenico-epayments / connect-sdk-nodejs Goto Github PK
View Code? Open in Web Editor NEWIngenico Connect NodeJS Server SDK
Home Page: https://docs.connect.worldline-solutions.com/documentation/sdk/server/nodejs/
License: Other
Ingenico Connect NodeJS Server SDK
Home Page: https://docs.connect.worldline-solutions.com/documentation/sdk/server/nodejs/
License: Other
hello,
I have cloned the repository https://github.com/Ingenico-ePayments/connect-sdk-nodejs.git and ran 'npm install'
upon running that command I get the following error:
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/6.7.0/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.7.0
npm ERR! npm v3.10.7
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on http://registry.npmjs.org/connect-sdk-nodejs/lodash
npm ERR! 404
npm ERR! 404 'connect-sdk-nodejs' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'connect-sdk-nodejs'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/georgiarust/ingenico/connect-sdk-nodejs/npm-debug.log
I have updated node and all that I can think is there must be an issue on the authors end because it is saying this repo is a dependancy of connect-sdk-nodejs.. any advice on this?
When using JSON:
{
"hostedCheckoutSpecificInput": {
"paymentProductFilters": {
"restrictTo": {
"products": [1, 2, 3, 809, 836, 840]
},
"tokensOnly": false
},
},
"order": {
"amountOfMoney": {
"currencyCode": "USD",
"amount": 1000
},
"customer": {
"billingAddress": {
"countryCode": "US"
}
}
}
}
I get the error:
[ ValidationError {
property: 'instance.hostedCheckoutSpecificInput',
message: 'additionalProperty "paymentProductFilters" exists in instance when not allowed',
schema:
{ type: 'object',
properties: [Object],
additionalProperties: false },
instance: { paymentProductFilters: [Object] },
name: 'additionalProperties',
argument: 'paymentProductFilters',
stack: 'instance.hostedCheckoutSpecificInput additionalProperty "paymentProductFilters" exists in instance when not allowed' } ]
Possibly unhandled Error: instance.hostedCheckoutSpecificInput additionalProperty "paymentProductFilters" exists in instance when not allowed
However when using JSON (without "paymentProductFilters"):
{
"hostedCheckoutSpecificInput": {
},
"order": {
"amountOfMoney": {
"currencyCode": "USD",
"amount": 1000
},
"customer": {
"billingAddress": {
"countryCode": "US"
}
}
}
}
it works and I get the response:
{
"status": 201,
"body": {
"RETURNMAC": "27ab0e7c-fd0c-4758-87be-b84de2e72710",
"hostedCheckoutId": "00000024620000000146",
"partialRedirectUrl": "sandbox.poweredbyglobalcollect.com/checkout/2462-73bb6804950943a3b8a7fbaded5d26a5:00000024620000000146:cd68d4f27ebd4cc3a505e5902412c923"
}
}
I am using the nodejs SDK using the call;
merchant_demo.ingenicoConnect.hostedcheckouts.create(merchantId, body, null, function (err, sdkResponse) {
}
Hi there,
I'm trying to create a payment request using the nodejs-sdk in sandbox mode but getting the following errors:
{
"status": 502,
"body": {
"errorId": "5ec27db43ecc9e591f7a51d9cb224cf1",
"errors": [
{
"code": "400540",
"requestId": "5787",
"message": "AUTHORISATION FAILED FOR REQUEST 5787",
"httpStatusCode": 502
},
{
"code": "9999",
"id": "UNKNOWN_SERVER_ERROR",
"category": "CONNECT_PLATFORM_ERROR",
"message": "UNKNOWN_SERVER_ERROR",
"httpStatusCode": 500
}
],
"paymentResult": {
"creationOutput": {
"additionalReference": "00000015120000000023",
"externalReference": "000000151200000000230000100001"
},
"payment": {
"id": "000000151200000000230000100001",
"paymentOutput": {
"amountOfMoney": {
"amount": 2980,
"currencyCode": "EUR"
},
"references": {
"paymentReference": "0"
},
"paymentMethod": "card",
"cardPaymentMethodSpecificOutput": {
"paymentProductId": 2,
"fraudResults": {
"fraudServiceResult": "no-advice",
"avsResult": "0",
"cvvResult": "0"
},
"card": {
"cardNumber": "***********8431",
"expiryDate": "1220"
}
}
},
"status": "REJECTED",
"statusOutput": {
"errors": [
{
"code": "400540",
"requestId": "5788",
"message": "AUTHORISATION FAILED FOR REQUEST 5787",
"httpStatusCode": 502
},
{
"code": "9999",
"id": "UNKNOWN_SERVER_ERROR",
"requestId": "5788",
"category": "CONNECT_PLATFORM_ERROR",
"message": "UNKNOWN_SERVER_ERROR",
"httpStatusCode": 500
},
{
"code": "9999",
"id": "UNKNOWN_SERVER_ERROR",
"requestId": "5788",
"category": "CONNECT_PLATFORM_ERROR",
"message": "UNKNOWN_SERVER_ERROR",
"httpStatusCode": 500
}
],
"isCancellable": false,
"statusCategory": "UNSUCCESSFUL",
"statusCode": 100,
"statusCodeChangeDateTime": "20200518142108",
"isAuthorized": false,
"isRefundable": false
}
}
}
},
"isSuccess": false
}
Any ideas on what could be wrong?
The directDebitText field is not mandatory for the 771 payment, so I'm having problems.
I can not create a payment without, and with I also receive an error message.
The only solution I found was to remove the required field 'directDebitText' from the SDK schema.
Can you solve the problem, we have been stuck for a while, the help channel could not give me the right answer.
edit: my json request has already been validated by the support
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.