These are chat archives for mirumee/saleor

10th
Nov 2018
victor felder
@vhf
Nov 10 2018 16:21

Does anyone use paypal with saleor? I'm wondering how to properly set it up. I created a REST API app on paypal and I'm using these:

PAYPAL_USERNAME=<REST API app 'Client ID'>
PAYPAL_ENDPOINT=https://api.paypal.com
PAYPAL_SECRET=<REST API app 'Secret'>

with in the settings.py

PAYMENT_VARIANTS = {
    'paypal': ('payments.paypal.PaypalProvider', {
        'client_id': os.environ.get('PAYPAL_USERNAME'),
        'secret': os.environ.get('PAYPAL_SECRET'),
        'endpoint': os.environ.get('PAYPAL_ENDPOINT'),
        'capture': False})}

Unfortunately I'm getting a 500 from Saleor after paying on paypal, and this 500 is triggered by a 400 Bad Request when Saleor posts to https://api.paypal.com.

I got infos from my sentry setup and from the paypal API, screenshots here: https://imgur.com/a/W114oCv
If anyone has ever done this and could help me out I'd really appreciate it!