I want to create third party Billing Agreement in PayPal just like creating third party Invoicing API.
I tried following steps.
- Login with PayPal (Identity API)
- Get Refresh Token after successful authorization
-
Generate access token from Refresh token and pass it with the any api context in next calling API.
$apiContext->getCredential()->updateAccessToken($apiContext->getConfig(), $refreshToken);
Above Steps works on Invoicing API to create third party invoice. But the same steps not working for Billing Agreement.
I know that nowhere mentioned in the PayPal documentation REST API about third party billing agreement but might be someone knows any other way as I am able to create billing agreement in classic API. Just want to know, Is it possible/not possible to create third party billing agreement in PayPal ?