
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@ask-utils/amazon-pay
Advanced tools
Utility libs for the Alexa skill to integrate the Amazon Pay APIs
$ npm i -S @ask-utils/amazon-pay
// If you using typescript
$ npm i -D @ask-utils/amazon-pay
const AMAZONPay = require('@ask-utils/amazon-pay')
const SellerOrderAttributes = AMAZONPay.Setup.BillingAgreementBuilder
.setPlatFormId('My id')
.setSellerNote('my note')
.setSellerBillingAgreementId('agreement id')
.setSellerNote('My store')
.setCustomInformation('custom info')
const setupPayload = AMAZONPay.Setup.PayloadBuilder
.setSellerId('my seller id')
.setCountryOfEstablishment('country')
.setLedgerCurrency('ledger currency')
.setCheckoutLanguage('checkout lang')
.withAmazonShippingAddress(true)
.isSandboxMode(true)
.setSandboxCustomerEmailId('email')
.updateBillingAgreement(SellerOrderAttributes)
const payload = setupPayload.getPayload()
console.log(JSON.stringify(payload))
{
"@type": "SetupAmazonPayRequest",
"@version": "v2",
"sellerId": "my seller id",
"countryOfEstablishment": "country",
"ledgerCurrency": "ledger currency",
"checkoutLanguage": "checkout lang",
"needAmazonShippingAddress": true,
"sandboxMode": true,
"sandboxCustomerEmailId": "email",
"billingAgreementAttributes": {
"@type": "BillingAgreementAttributes",
"@version": "2",
"platformId": "My id",
"sellerNote": "My store",
"sellerBillingAgreementAttributes": {
"@type": "SellerBillingAgreementAttributes",
"@version": "2",
"sellerBillingAgreementId": "agreement id",
"customInformation": "custom info"
}
}
}
const AMAZONPay = require('@ask-utils/amazon-pay')
const authorizeAttributes = AMAZONPay.Charge.AuthorizeAttributesBuilder
.setReferenceId('MyReference ID')
.setCurrencyCode('USD')
.setAmount('500')
const sellerOrderAttribtes = AMAZONPay.Charge.SellerOrderAttributesBuilder
.setSellerOrderId('my seller id')
.setStoreName('Example store')
const payload = AMAZONPay.Charge.PayloadBuilder
.setSellerId('my-seller-id')
.setBillingAgreementId('agreement-id')
.updateAuthorizeAttributes(authorizeAttributes)
.updateSellerOrderAttributes(sellerOrderAttribtes)
.getPayload()
console.log(payload)
{
"@type": "ChargeAmazonPayRequest",
"@version": "2",
"sellerId": "my-seller-id",
"billingAgreementId": "agreement-id",
"paymentAction": "AuthorizeAndCapture",
"authorizeAttributes": {
"@type": "AuthorizeAttributes",
"@version": "2",
"authorizationReferenceId": "MyReference ID",
"authorizationAmount": {
"@type": "Price",
"@version": "2",
"amount": "500",
"currencyCode": "USD"
}
},
"sellerOrderAttributes": {
"@type": "SellerOrderAttributes",
"@version": "2",
"sellerOrderId": "my seller id",
"storeName": "Example store"
}
}
$ yarn test
or
$ yarn test -- --watch
$ git clone git@github.com:ask-utils/ask-utils-for-amazon-pay.git
$ cd ask-utils-for-amazon-pay
$ yarn install
$ yarn run build
$ git checkout -b YOUR_TOPIC_BRANCH
$ yarn test
$ git add ./
$ git commit -m "YOUR UPDATE DESCRIPTION"
FAQs
Utility libs for the Alexa skill to integrate the Amazon Pay APIs
The npm package @ask-utils/amazon-pay receives a total of 1 weekly downloads. As such, @ask-utils/amazon-pay popularity was classified as not popular.
We found that @ask-utils/amazon-pay 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.