+
Skip to content

johackim/abby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abby

Synchronize your Stripe invoices with Abby.fr

📋 Requirements

  • Node.js (v14+)
  • Stripe Account with paid invoices available
  • Abby.fr Account with an API token

🚀 Installation

  1. Clone the repository
git clone https://github.com/johackim/abby.git
  1. Install dependencies
cd abby
npm install
  1. Configure Environment Variables

Create a .env file in the root directory with the following content:

STRIPE_SECRET_KEY=your_stripe_secret_key
ABBY_API_TOKEN=your_abby_api_token
PAYMENT_METHOD=9 # Stripe
PRODUCT_TYPE=2 # Prestations de services

📦 Usage

Warning

This script will delete all existing income book entries in Abby and replace them with the synchronized Stripe invoices.

Run the script to synchronize your Stripe invoices with Abby.fr:

node index.mjs --sync

The script performs the following tasks:

  • Deletes all existing income book entries from Abby.
  • Fetches all paid invoices from Stripe.
  • Creates new income book entries in Abby using invoice details such as reference number, client information, date, total amount, and a link to the PDF invoice.

🔧 Customization

You can customize the script by modifying the following environment variables:

  • PRODUCT_TYPE: (Default is 2 representing "Prestations de services")
  • PAYMENT_METHOD: (Default is 9, corresponding to "Stripe")

Feel free to fork the project and tailor it to your specific needs.

🎁 Support me

I'd love to work on this project, but my time on this earth is limited, support my work to give me more time!

Please support me with a one-time or a monthly donation and help me continue my activities.

Github sponsor ko-fi Buy me a coffee liberapay Github Mastodon Twitter

📜 License

This project is licensed under the GNU GPL v3.0 - see the LICENSE.txt file for details

Free Software, Hell Yeah!

About

Synchronize your Stripe invoices with Abby.fr

Topics

Resources

License

Stars

Watchers

Forks

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载