/paypal-cli

CLI for PayPal REST APIs

Primary LanguageJavaScript

PayPal CLI

CLI interface to PayPal's REST APIs. Currently only supports payments.

This is a developer preview. Please note that it is for example purposes only and unsupported.

Usage:

$ paypal <command> [options]

Commands:

$ paypal configure [--clientId=<clientId> --secret=<secret>]
$ paypal payment create --total=1.00 --return-url=<url> --cancel-url=<url> [
        --intent=<intent> --currency=<currency> --payment-method=<method>
        --description=<description> ]
$ paypal payment get --payment-id=<id>
$ paypal payment execute --payment-id=<id> --payer-id=<user> [
        --total=<total> ]
$ paypal payment list [ --count=<count> --start_index:<index> ]

Options:

-h, --help Show help
-v, --version Show version number