Paypal /Permissions/GetBasicPersonalData fails randomly with "Authentication failed. API credentials are incorrect." -


i'm using paypal permissions api authenticate user through paypal , permissions.

the problem /permissions/getbasicpersonaldata call returns "authentication failed. api credentials incorrect." though got token , secret successful call /permissions/getaccesstoken

the weird thing though is unpredictable. fails , work sandbox, fails on production (live paypal).

when works seems work every time, when fails starts failing every time, until changes.

paypal doing custom encoding , string manipulations while generating oauth signature, example, encode . %2e first , later on converted lowercase string %2e.

if writing own paypal oauth signature generation function , missed the steps, signature invalid. "random" thing described because special characters not guaranteed show in token/token secret. when not there, success , vice versa.

i made work translating bit-to-bit paypal's official ruby sdk. (https://github.com/paypal/sdk-core-ruby/blob/master/lib/paypal-sdk/core/util/oauth_signature.rb)


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -