![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@guachos/bidaiondo-client
Advanced tools
Ah hybrid (ESM, CJS) nodejs client for the Bidaiondo API
bidaiondo-client
A simple javascript client for the Bidaiondo API. This library is built to be used with ECS
and legacy CJS
projects
npm i @guachos/bidaiondo-client
ESM
import { Client as BidaClient } from '@guachos/bidaiondo-client';
async function test() {
const data = {
commerce: 'xxxxxxxx',
}
const cards = await BidaClient.requestCardInfo({
data,
})
console.log(cards);
// do something else
}
CJS
const BidaClient = require('@guachos/bidaiondo-client').Client;
async function test() {
const data = {
commerce: 'xxxxxxxxx',
}
const cards = await BidaClient.requestCardInfo({
data,
})
console.log(cards);
// do something else
}
NOTE: (from Bidaiondo Doc)
"Integration with third parties The merchant integration process will be carried out by Form through one of the following ways:
- Transfer of control to the Bidaiondo platform.
- Incorporation of the form in an iframe of the business. ** ** This environment only works for payments that are made without the Merchant application Secure Electronic (Unsecured Gateways)."
requestPayment
import { Client as BidaClient } from '@guachos/bidaiondo-client';
async function paymentFlow() {
// do something
const validCards = await BidaClient.requestCardInfo({
data: {
commerce: 'commerce-ID',
}
})
//obtain valid cards or error
//Check reqeusted `amex` vs valid cards (interrupt payment on error)
const data = {
commerce: 'commerce-ID',
transaction: 'tx-id',
amount: 1000,
currency: '978',
amex: '2',
language: 'es',
gateway: '75',
}
const paymentResult = await BidaClient.requestPayment({
data: data,
key: 'commerce-KEY',
})
//obtain form or error
// do something else
}
requestRefund
import { Client as BidaClient } from '@guachos/bidaiondo-client';
async function paymentFlow() {
// do something
const data = {
commerce: 'commerce-ID',
transaction: 'tx-id',
amount: 1000,
currency: '978',
}
const refundResult = await BidaClient.requestRefund({
data: data,
key: 'commerce-KEY',
})
//obtain form or error
// do something else
}
amex
codescode | description |
---|---|
'1' | AMERICAN_EXPRESS |
'2' | VISA |
'3' | MASTERCARD |
'4' | DINNERS_CLUB |
'5' | JCB |
'9' | MASTERCARD_MAESTRO |
'10' | VISA_ELECTRON |
'11' | VIRTUAL_CARD |
'12' | BIZUM |
'13' | LUPAY |
'14' | DISCOVER_GLOBAL |
currency
codescode | description |
---|---|
840 | USD |
978 | EUR |
124 | CAD |
... | ... |
gateway
codesNOTE: deppend on
amex
code | description |
---|---|
75 | insecure gateway |
81 | secure gateway |
language
codeses
: Spanishen
: EnglishFAQs
Ah hybrid (ESM, CJS) nodejs client for the Bidaiondo API
We found that @guachos/bidaiondo-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.