Git Product home page Git Product logo

connect-sdk-nodejs's People

Contributors

ebomcke avatar ingenicoepayments avatar rikvanthof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

connect-sdk-nodejs's Issues

npm error

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?

CancelApproval.js

You are calling cancelapproval but your files are named CancelApproval..

I'm pretty sure you are using Windows and it works for you because in windows lowercase or uppercase it is the same, is not the same in Linux.

cancelapproval
cancelapproval2

node.js ValidationError using 'paymentProductFilters'

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) {
}

Getting 502 error when using the node-sdk to create a payment

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?

Sepa payment capture

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

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.