A21AAIhGr2Mtl2-32Vjt4qo5o-iObRbuj4uVUOTqQ8-Hzq5InWgoV0ilVj6EQGKExRphsosudiKdBmS8U4dzWZh8y4DwOJyrw
COMANDO DICE:
curl -v https://api.sandbox.paypal.com/v1/payments/payment \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer A21AAIhGr2Mtl2-32Vjt4qo5o-iObRbuj4uVUOTqQ8-Hzq5InWgoV0ilVj6EQGKExRphsosudiKdBmS8U4dzWZh8y4DwOJyrw' \ -d '{ "intent": "sale", "experience_profile_id":"XP-TDBX-AQEP-5B7W-2QLJ", "redirect_urls": { "return_url": "http://www.panamahosted.com/success.php", "cancel_url": "http://www.panamahosted.com/cancel.php" }, "payer": { "payment_method": "paypal" }, "transactions": [ { "amount": { "total": "4.00", "currency": "USD", "details": { "subtotal": "2.00", "shipping": "1.00", "tax": "2.00", "shipping_discount": "-1.00" } }, "item_list": { "items": [ { "quantity": "1", "name": "item 1", "price": "1", "currency": "USD", "description": "item 1 description", "tax": "1" }, { "quantity": "1", "name": "item 2", "price": "1", "currency": "USD", "description": "item 2 description", "tax": "1" }] }, "description": "The payment transaction description.", "invoice_number": "merchant invoice", "custom": "merchant custom data" }] }'

RESULTADO DICE:
{"name":"AUTHENTICATION_FAILURE","message":"Authentication failed due to invalid authentication credentials or a missing Authorization header.","links":[{"href":"https://developer.paypal.com/docs/api/overview/#error","rel":"information_link"}]}