citruspay / open-javascript Goto Github PK
View Code? Open in Web Editor NEWcitrus.js lets you integrate your checkout page with CitrusPay payment gateway
citrus.js lets you integrate your checkout page with CitrusPay payment gateway
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.
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"
}
}
}
https://mocha.citruspay.com/static/cards.html File Not found while I am trying to integrate it.
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');
Hi i am getting the network_error
how to fix it........
I was running the downloaded code and i am getting the network_error
A cookie associated with a cross-site resource at https://checkout.citruspay.com/ was set without the
SameSite
attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set withSameSite=None
andSecure
. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
Show me A sample how it works
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
.
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.