Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@eucalyptusvc/fatzebra
Advanced tools
This is a dedicated module for interaction with the mail endpoint of the Sendgrid v3 API.
API wrapper around fatzebra api
With yarn:
yarn add @eucalyptusvc/fatzebra
With npm:
npm install @eucalyptusvc/fatzebra
Api documentation https://docs.cloudpayments.io/docs
Tokenize a new card
const response = await api.tokenizeCard({
card_number: '5555555555554444',
card_holder: 'Pilot Test',
card_expiry: '05/2030',
cvv: '222',
});
console.log(tokenResponse);
// {token: "..."}
Create a customer
const customerResponse = await api.createCustomer({
card_token: 'TOKEN',
email: 'Test Emails',
first_name: 'First Name',
last_name: 'Last Name',
reference: cuid(),
});
console.log(tokenResponse);
// {id: "..."}
Create a purchase
const customerResponse = await api.createPurchase({
card_token: token,
reference: 'UUID',
amount: 2000,
customer_ip: '',
});
console.log(tokenResponse);
// {id: "..."}
Update a customer
const updateCustomer = await api.updateCustomer(
{
card_token: token,
email: 'Test Emails',
first_name: 'first',
reference: 'UUID',
last_name: 'Last Name',
},
{ customerId: customerResponse.id }
);
console.log(tokenResponse);
// {id: "..."}
Create a paymentplan
const createPaymentPlan = await api.createPaymentPlan({
amount: 2000,
anniversary: 8,
currency: 'AUD',
customer: customerResponse.id,
frequency: 'Monthly',
payment_method: 'Credit Card',
reference: cuid(),
setup_fee: 0,
start_date: '2019-07-08',
});
console.log(tokenResponse);
// {id: "..."}
yarn install
or npm install
yarn watch
FAQs
This is a dedicated module for interaction with the mail endpoint of the Sendgrid v3 API.
The npm package @eucalyptusvc/fatzebra receives a total of 0 weekly downloads. As such, @eucalyptusvc/fatzebra popularity was classified as not popular.
We found that @eucalyptusvc/fatzebra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.