URL: 'https://api.sandbox.paypal.com/v1/billing-agreements/agreements' Headers: Array ( [0] => Authorization: Bearer A21AAHZPM9clYZkPi0IMi370kUybLfqojZMUbPVAndNIKjE5xIRtzdsO1WsT3kTi1-LtCuIW8tk_kflP1bV29_V8MVea2KE_g [1] => Content-Type: application/json ) Request: {"token_id":"BA-03F30791L6193590C"} Response: {"id":"B-2JE978506Y470001Y","state":"ACTIVE","description":"Billing Agreement","payer":{"payer_info":{"email":"lnikkon@paypal.com","first_name":"lord","last_name":"nikkon","payer_id":"YQ27B4JJCW92J"}},"plan":{"type":"MERCHANT_INITIATED_BILLING","merchant_preferences":{"notify_url":"https://rmcgovernppl-tech.com/IPN/ipnListener.php","accepted_pymt_type":"INSTANT"}},"links":[{"href":"https://api.sandbox.paypal.com/v1/billing-agreements/agreements/B-2JE978506Y470001Y/cancel","rel":"cancel","method":"POST"},{"href":"https://api.sandbox.paypal.com/v1/billing-agreements/agreements/B-2JE978506Y470001Y","rel":"self","method":"GET"}],"merchant":{"payee_info":{"email":"mcgovernrtRestAPI@paypal.com"}},"shipping_address":{"recipient_name":"John Doe","line1":"1350 North First Street","city":"San Jose","state":"CA","postal_code":"95112","country_code":"US"},"create_time":"2020-04-29T19:23:21.000Z","update_time":"2020-04-29T19:23:21.000Z"}