Giter Site home page Giter Site logo

open-javascript's People

Contributors

nagamacitruspay avatar nikhilyeole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

open-javascript's Issues

Need updated documentation on local environment payment authorization response data

Example code given under open-javascript/examples folder makes POST call to the below given URL when payment gateway environment is selected to be a local environment.

When clicked on "make payment" button, request is made to the following URL.
http://localhost:8080/admin-site/service/moto/authorize/struct/extended

But I could not find any documentation anywhere on github or citruspay site about what is the expected response for this URL. Also I could not find code listening on port 8080 which will respond to this request.

Please clarify in the documentation what response to send back for this URL.

PS: Switching local environment to staging gives 503 for this URL.

503 (Service Unavailable) on javascript example/guest code

Credit/debit card "make payment" example source code given under example/guest gives 503 (Service Unavailable) error on staging environment.

503 means exception from callers side but it does not give any other information as to what data is being sent wrong or missing.

Following is the relevant information:
URL: https://stgadmin.citruspay.com/service/moto/authorize/struct/extended
Method: POST
Data:
{
"merchantAccessKey": "LY80PJEZK5TDFWKATHTL",
"merchantTxnId": "mtx10228211",
"amount": {
"currency": "INR",
"value": "41"
},
"returnUrl": "http://localhost:8420/pg/response",
"requestSignature": "931c7d5b4216449d96aa1dbe758a6c5da4f44261",
"userDetails": {
"firstName": "",
"lastName": "",
"email": "[email protected]",
"mobileNo": "",
"address": {
"street1": "",
"street2": "",
"city": "",
"zip": "",
"state": "Karnataka",
"country": "INDIA"
}
},
"customParameters": {
"paramOne": "one value",
"secundo": "online"
},
"paymentToken": {
"type": "paymentOptionToken",
"paymentMode": {
"type": "credit",
"scheme": "VISA",
"number": "4111111111111111",
"holder": "test",
"expiry": "04/2019",
"cvv": "123"
}
}
}

Invalid signature key

Followed the steps as provided. But when making an request getting response as
{redirectUrl: "", pgRespCode: "111", txMsg: "Invalid signature key"}

generating signature using crypto in node js by passing three parameters like below:

 var data = 'merchantAccessKey=' + access_Key + '&transactionId=' + txn_id + '&amount=' + amount;
// generate hmac
var hmac = crypto.createHmac('sha1', secret_key);
hmac.update(data);
return hmac.digest('hex');

network_error

Hi i am getting the network_error
how to fix it........

network_error

I was running the downloaded code and i am getting the network_error

add JCB scheme

JCB is supported by CitrusPay payment gateway, and it should reflect in citrus.js. Today, JCB cards trigger a unsupported_card_scheme error in makePayment.

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.