jbuck / mofo-transaction-storage

Pull down PayPal transactions into a database for various sundry porpoises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mofo-transaction-storage

Pull down Coinbase & PayPal transactions into a database for various sundry porpoises

Requirements

  • node.js 4
  • postgres 9.4
  • PayPal Classic API credentials

Setup

Database

Run the following SQL to create the necessary table:

CREATE TABLE paypal (
  id TEXT PRIMARY KEY,
  timestamp TIMESTAMP WITH TIME ZONE,
  type TEXT,
  email TEXT,
  name TEXT,
  status TEXT,
  amount MONEY,
  fee_amount MONEY,
  currency TEXT,
  country_code TEXT
);

Environment

Create a file named .env to place configuration options in.

  • PAYPAL_DB_CONNECTION_STRING
  • PAYPAL_USERNAME
  • PAYPAL_PASSWORD
  • PAYPAL_SIGNATURE
  • PAYPAL_START_DATE
  • PAYPAL_STEP_MINUTES
  • SERVER_PORT
  • SERVER_DB_CONNECTION_STRING
  • SERVER_START_DATE
  • SERVER_END_DATE

About

Pull down PayPal transactions into a database for various sundry porpoises

License:Apache License 2.0


Languages

Language:JavaScript 100.0%