PayPal Configuration
Prerequisites
PayPal invoicing requires a Business account. You can check whether you have one here.
If you do not have a PayPal business account, you can upgrade or create a new one. The application process is different from country to country, so please consult your local PayPal terms.
Sandbox & Live distinction
PayPal offers a mode that they call Sandbox. Sandbox mode is a testing environment with "fake" accounts and money.
If you're not planning on developing the bot further, you should probably use Live mode instead.
You can control whether sandbox mode is enabled using the gateways.paypal.useSandbox
option in your config.yml
file.
Set up
To configure PayPal invoicing:
- Enable it in your
config.yml
by settinggateways.paypal.enabled
totrue
and setgateways.paypal.useSandbox
tofalse
(refer to Sandbox & Live distinction). - Go to the PayPal Developer Dashboard 🡥.
- Switch the mode over to Live and click on Apps & Credentials.
- Create a new PayPal app by clicking "Create App". Name it whatever you want.
- Copy the generated client ID & client secret.
- Paste these values into your
config.yml
file.
After configuring these credentials, invoices should be enabled, however, invoice status won't update. You can configure webhooks updates to achieve automatic invoice updates, but you don't have to! The bot will work fine and invoices can be updated manually using the command /invoice refresh
.