Skip to content

AbacatePay NodeJS SDK for you to start receiving payments in seconds

License

Notifications You must be signed in to change notification settings

Yagasaki7K/fork-abacatepay-nodejs-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abacatepay-nodejs-sdk

AbacatePay NodeJS SDK for you to start receiving payments in seconds

Example

import AbacatePay from 'abacatepay';

const abacate = AbacatePay('{{ key }}');

const billing = abacate.billing.create({
  frequency: "ONE_TIME",
  methods: ["PIX"],
  products: [
    {
      externalId: "PRO-PLAN",
      name: "Pro plan",
      quantity: 1,
      price: 1000
    }
  ],
  returnUrl: "https://yoursite.com/app",
  completionUrl: "https://yoursite.com/pagamento/sucesso",
  automaticTaxReceipt: true
});

console.log(billing)
/* Returns:
{
  _id: 'bill_12345667',
  url: 'https://abacatepay.com/pay/bill_12345667',
  amount: 1000,
  status: 'PENDING',
  devMode: true,
  methods: ['PIX'],
  frequency: 'ONE_TIME',
  nextBilling: null,
  createdAt: '2024-11-04T18:38:28.573',
  updatedAt: '2024-11-04T18:38:28.573',
}
*/

About

AbacatePay NodeJS SDK for you to start receiving payments in seconds

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • JavaScript 100.0%