Configuration of integration with PayPalΒΆ

First, you should obtain client_id and client_secret for PayPal REST API using PayPal developer site.

To setup a PayPal integration, add a block of configuration as shown in the example below.

# Example of settings for billing using PayPal API.
NODECONDUCTOR_PAYPAL = {
    'BACKEND': {
        'mode': 'sandbox or live',
        'client_id': '<CLIENT_ID>',
        'client_secret': '<CLIENT_SECRET>',
        'currency_name': 'USD'
    },
    'INVOICE': {
        'logo': 'robohare.png',
        'company': 'OpenNode',
        'bank': 'American Bank',
        'account': '123456789',
    },
    'STALE_PAYMENTS_LIFETIME': timedelta(weeks=1)
}