PayButton / paybutton-server

Manage eCash payments received through your online business.
MIT License
6 stars 2 forks source link

Feat/download transactions file #841

Closed lissavxo closed 3 months ago

lissavxo commented 4 months ago

Related to #803

Description

Added a new endpoint to download transactions of a paybuttonId in a CSV file. here are some defaults :

csv delimiter = \t maxRecords = 2000 currency = USD

Test plan

Run project with docker-compose up call this URL with your paybuttonId ->http://localhost:3000/api/paybutton/download/transactions/<paybuttonId> check if the file is downloaded and if data is compatible.

Klakurka commented 3 months ago

Tests failing.

lissavxo commented 3 months ago

Looks good!

I think we should probably also do the same thing but for payments as an alternative for people... thoughts?

For our own purposes though, this will work just fine.

nice, I think it is a good idea and It will be pretty similar to this logic so It should be not so hard to implement