
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Node/ReactNative/Web wrapper for Epayco API
API to interact with Epayco https://epayco.co/docs/api/
As usual, you can install it using npm.
$ npm install epayco
var epayco = require('epayco-js')({
apiKey: 'PUBLIC_KEY',
privateKey: 'PRIVATE_KEY',
test: true | false
}, isReact);
epayco.token.create({
"card[number]": "4575623182290326",
"card[exp_year]": "2017",
"card[exp_month]": "07",
"card[cvc]": "123"
}).then((token) => {
console.log(token);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.customers.create({
token_card: "toke_id",
name: "Joe Doe",
email: "joe@payco.co",
phone: "3005234321",
default: true
})
.then((customer) => {
console.log(customer);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.customers.get("id_customer")
.then((customer) => {
console.log(customer);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.customers.list()
.then((customers) => {
console.log(customers);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.customers.update("id_customer", {
name: "Alex"
}).then((customer) => {
console.log(customer);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.plans.create({
id_plan: "coursereact",
name: "Course react js",
description: "Course react and redux",
amount: 30000,
currency: "cop",
interval: "month",
interval_count: 1,
trial_days: 30
})
.then((plan) => {
console.log(plan);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.plans.get("id_plan")
.then((plan) => {
console.log(plan);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.plans.list()
.then((plans) => {
console.log(plans);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.plans.delete("id_plan")
.then((plan) => {
console.log(plan);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.subscriptions.create({
id_plan: "-id_plan",
customer: "id_customer",
token_card: "id_token",
doc_type: "CC",
doc_number: "5234567"
})
.then((subscription) => {
console.log(subscription);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.subscriptions.get("id_subscription")
.then((subscription) => {
console.log(subscription);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.subscriptions.list()
.then((subscriptions) => {
console.log(subscriptions);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.subscriptions.cancel("id_subscription")
.then((subscription) => {
console.log(subscription);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.subscriptions.charge({
id_plan: "-id_plan",
customer: "id_customer",
token_card: "id_token",
doc_type: "CC",
doc_number: "5234567"
})
.then((subscription) => {
console.log(subscription);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.bank.create({
bank: "1022",
invoice: "1472050778",
description: "pay test",
value: "10000",
tax: "0",
tax_base: "0",
currency: "COP",
type_person: "0",
doc_type: "CC",
doc_number: "10358519",
name: "testing",
last_name: "PAYCO",
email: "no-responder@payco.co",
country: "CO",
cell_phone: "3010000001",
url_response: "https:/secure.payco.co/restpagos/testRest/endpagopse.php",
url_confirmation: "https:/secure.payco.co/restpagos/testRest/endpagopse.php",
method_confirmation: "GET",
})
.then((bank) => {
console.log(bank);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.bank.get("transaction_id")
.then((bank) => {
console.log(bank);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.cash.create("efecty", {
invoice: "1472050778",
description: "pay test",
value: "20000",
tax: "0",
tax_base: "0",
currency: "COP",
type_person: "0",
doc_type: "CC",
doc_number: "10358519",
name: "testing",
last_name: "PAYCO",
email: "test@mailinator.com",
cell_phone: "3010000001",
end_date: "2017-12-05",
url_response: "https:/secure.payco.co/restpagos/testRest/endpagopse.php",
url_confirmation: "https:/secure.payco.co/restpagos/testRest/endpagopse.php",
method_confirmation: "GET",
})
.then((cash) => {
console.log(cash);
})
.catch((err) => {
console.log("err: " + err);
});
epayco.cash.get("transaction_id")
.then((cash) => {
console.log(cash);
})
.catch((err) => {
console.log("err: " + err);
});
```javascript`git epayco.charge.create({ token_card: "token_id", customer_id: "customer_id", doc_type: "CC", doc_number: "1035851980", name: "John", last_name: "Doe", email: "example@email.com", bill: "OR-1234", description: "Test Payment", value: "116000", tax: "16000", tax_base: "100000", currency: "COP", dues: "12" }) .then((charge) => { console.log(charge); }) .catch((err) => { console.log("err: " + err); });
#### Retrieve
```javascript
epayco.charge.get("transaction_id")
.then((charge) => {
console.log(charge);
})
.catch((err) => {
console.log("err: " + err);
});
FAQs
epayco client
The npm package epayco receives a total of 0 weekly downloads. As such, epayco popularity was classified as not popular.
We found that epayco demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.