Shopify/active_merchant — pull request #413 by paulca (2012-07-19 20:19:47+00:00)
Title: PayPal Permissions API

I couldn't get an Express Checkout Token Request for a third-party request via the PayPal permissions API to work with ActiveMerchant combined with this gem: https://github.com/isaachall/paypal-permissions ...

... because generating an auth_signature is so complicated, it wasn't clear whether the signature was correct or not.

Looking at the responses from PayPal while trying to generate a token, it kept saying "You are not authorized"

... as soon as I changed X-PP-AUTHORIZATION to X-PAYPAL-AUTHORIZATION, in PaypaCommonAPI#initialize everything worked, but only if build_request still kept X-PP ...

... I don't know if this is worth pulling right now, but this is what's working for me.

—P