Python script to make payments with PayPal without proprietary JavaScript

Alyssa Rosenzweig 3654211336 Handle fragment bases from the splash page 3 months ago
pagamigo 3654211336 Handle fragment bases from the splash page 3 months ago
tests 8abbcea427 Match mock login to what it should be 3 months ago
.gitignore 066dcccf72 No need to ignore noneistent file 3 months ago
LICENSE c29712765b LICENSE 4 months ago
README.md e5bbc567c0 Fix README 3 months ago
mock-test.sh ecdadcfe7b Open up the flood gates 3 months ago
pagamigo.1 d34e2b3f84 Check in manpage 3 months ago
pagamigo.py 686d5aa88c Fix main() 3 months ago
requirements.txt abc2e5048c Add setup.py stuff 3 months ago
setup.py a7abdee624 Adjust entrypoint 3 months ago

README.md

% PAGAMIGO(1) % Alyssa Rosenzweig % July 2018

Name

pagamigo - free software script to pay with PayPal

Synopsis

pagamigo [options] [--username username] [--password password]

Overview

Use an online shop and opt to pay with Paypal. You will be redirected to a URL like:

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-CAFEBABE123456789

Copy that URL to your clipboard. Then, from the command line run:

$ pagamigo redirect

Follow the directions on-screen prompting you to enter your PayPal credentials and to paste this URL.


By default, this connects to production. For the sandbox, use:

$ pagamigo --base https://www.sandbox.paypal.com

For peer-to-peer money transfer ("Send money"), instead use:

$ pagamigo send-money

Pagamigo, while interactive by default, is entirely configurable by arguments as well. For instance:

$ pagamigo send-money --to sunset@chs.eq --amount 10.00 --username scitwi@chs.earth --password hunter2 --debug

See the usage for details.

$ pagamigo --help

Dependencies

Python (version 3) must be installed.

The following Python modules need to be installed: requests, lxml, cssselect.

The following external programs need to be installed: feh.

On Debian-based systems, these can be installed as:

# apt install python3-requests python3-lxml python3-cssselect feh