P
P
pixeeeeel2019-11-09 15:01:32
API
pixeeeeel, 2019-11-09 15:01:32

Why doesn't work in platform_fees in Paypal API Sandbox?

For some reason, when I try to pay for an item on my site using paypal, it says: "We cannot process your payment using your PayPal account at the moment. Please return to the seller and try using another payment method.", like I just remove platform_fees immediately everything works, but the question is how then to set up a commission for the purchase or how to set up an account then, well, or what in general how to fix it:

request.post(PAYPAL_API + '/v2/checkout/orders', {
            auth: {
                user: CLIENT,
                pass: SECRET
            },
            headers: {
                "Content-Type": "application/json",
            },
            body: {
                "intent": "CAPTURE",
                "purchase_units": [{
                    "amount": {
                        "currency_code": "USD",
                        "value": "0.02"
                    },
                    "payee": {
                        "email_address": "[email protected]"
                    },
                    "description": "Item 1",
                    "custom_id": "123",
                    "payment_instruction": {
                        "disbursement_mode": "INSTANT",
                        "platform_fees": [{
                            "amount": {
                                "currency_code": "USD",
                                "value": "0.01"
                            },
                            "payee": {
                                "email_address": "[email protected]"
                            },
                        }]
                    }
                }],
            },
            json: true
        },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-11-09
@dimonchik2013

why set them up? Paypal will take the fees

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question