Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tobiaslins/mpay24-import-customer

Import profiles from a csv to mpay24
https://github.com/tobiaslins/mpay24-import-customer

Last synced: 14 days ago
JSON representation

Import profiles from a csv to mpay24

Awesome Lists containing this project

README

        

# CLI for importing profiles to mPAY24

This is a command line interface for mPAY24 that will allow you to import your existing creditcard profiles to the mPAY24 system.

![Demo](https://media.giphy.com/media/26n6xVcLjwcQLQXdu/giphy.gif)

## Usage

### Precompiled binary
Download a precompiled binary from [here](https://github.com/tobiaslins/mpay24-import-customer/releases)

Display help from CLI
```bash
./mpay24-import-customer -h
```

Example
```bash
./mpay24-import-customer -t -u 99999 -p password example.csv
```

### Running from source

First install all dependencies by running `npm install` or `yarn` in the direcory.

Display help from CLI
```bash
node build/main.js -h
```

Example
```bash
node build/main.js -t -u 99999 -p password example.csv
```

## CSV

The CSV should contain three columns (customerid, identifier and expiry)
The first line is important for the program to run

`customerid` should be a unique string (reference of the customer)
`identifier` is the 16-19 digit creditcard number
`expiry` is the expiry date of the card in format YYMM

### Example

```csv
customerid;identifier;expiry
jones;4444333322221111;2001
mc;5555444433331111;2001
```