How to use PayPal permission with adaptive payments Java API -


as api caller, i'd make refunds on chained payments secondary receiver. need permission primary receiver.

if i'm right need use permission api's requestpermissionsrequest refund scope permission , use response token verification code of paypal redirect (after user gives permission) execute getaccesstokenrequest receive access token.

my question how use token refundrequest call?

i found answer in source+examples of permission api. use access token, have create signaturecredential own api settings , create thirdpartyauthorization access token. set thirdpartyauthorization signaturecredential , use signaturecredential parameter permissionservice calls. example code

the interesting part adaptivepaymentsservice credential doesn't work. example if have permission refunds, can call adaptivepaymentsservice.refund without credential parameter , paypal remember have permission or not.

thank paypal consistent, documented, easy use api! :)


Comments