I am also adding the response which I got Hi William, I tried to do a credit card with the rest app and this is the response I got --header "Authorization:Bearer A21AAHuTG-pu1W9GSou0nxAjuSSwA0TK8iDyrJFuuFLRuk2hPKGo9v_EJXBIWepMSGWMgrH8NSe_pRy4KiVsKJSEiyzdQa_mA" \ --header "User-Agent:PayPalSDK/ (v=1.8.0_171; vendor=Oracle Corporation; bit=64; os=Windows_10 10.0)" \ --header "PayPal-Request-Id:9d8ca027-e841-47c7-b3d1-37f714fd71df" \ --header "Accept:application/json" \ --header "Content-Type:application/json" \ --data '{ "name": "Orion Agreement", "description": "Plan creation Agreement", "start_date": "2019-08-01T00:00:01Z", "payer": { "payment_method": "credit_card", "funding_instruments": [ { "credit_card": { "number": "2221000000000009", "type": "mastercard",[Removed. Phone #s not permitted]p; "expire_year": 2021, "cvv2": "123", "first_name": "Red", "last_name": "John", "billing_address": { "line1": "Aplha street line 1", "line2": "Beta street line 2", "city": "Los Angeles", "country_code": "US", "postal_code": "90001", "state": "California" } } } ] }, "plan": { "id": "P-51X5509888001534KW7C3GMI" } }' "details":[{"field":"unauthorized_access","issue":"You don't have permission to access this resource."}],"message":"You don't have permission to access this resource.","information_link":"https://developer.paypal.com/docs/api/payments.billing-agreements#errors","debug_id":"89ae2ddd62ad9"} "field": "unauthorized_access", "issue": "You don\u0027t have permission to access this resource." }] debug-id: 89ae2ddd62ad9 information-link: https://developer.paypal.com/docs/api/payments.billing-agreements#errors response-code: 401 details: name: UNAUTHORIZED_ACCESS message: You don't have permission to access this resource. details: [{ "field": "unauthorized_access", "issue": "You don\u0027t have permission to access this resource." }] debug-id: 89ae2ddd62ad9 information-link: https://developer.paypal.com/docs/api/payments.billing-agreements#errors at com.paypal.base.rest.PayPalRESTException.createFromHttpErrorException(PayPalRESTException.java:72) at com.paypal.base.rest.PayPalResource.execute(PayPalResource.java:431) at com.paypal.base.rest.PayPalResource.configureAndExecute(PayPalResource.java:295) at com.paypal.base.rest.PayPalResource.configureAndExecute(PayPalResource.java:228) at com.paypal.api.payments.Agreement.create(Agreement.java:145) at com.infomatics.orion.web.controller.PayPalController.createAgreement(PayPalController.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:849) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:760) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
... View more