A package for reading in-flight payment and customer data in and sending it to an API.
In the root directory of the project, run:
pip install -r requirements.txt
pip install .
You must provide 2 ;
delimited CSV files to run the command:
inflightpayment -c path/to/customer/csv -p path/to/payment/csv
The default option sends data to the dev endpoint. Use inflightpayment --help
for a full list of options.
In the /reports
directory, you can find a report:
cli_paymentdata.log
: logspayload.json
: data sent to the APIbad_purchases.json
: any "bad" rows in the purchases CSV.bad_customers.json
: any "bad" rows in the customer CSV for customers with purchases. "Bad" rows without purchases are not included.