java - PAYPAL - get token sandbox -


public void init(servletconfig servletconfig) throws servletexception {          try {              oauthtokencredential tokencredential = paypalresource.initconfig(new file(paypalservlet.class.getresource("sdk_config.properties").getpath()));             accesstoken = tokencredential.getaccesstoken();          } catch (paypalrestexception e) {              logger.fatal(e.getmessage());         }catch (exception e) {             logger.fatal(e.getmessage());         }     } 

i using above code getting access token. if enter paypal credentials works fine. if change credentials of sandbox test, access token null. have verified credentials sandbox right using curl. there might missing testing sandbox?

pls check our server error logs , looking ssl connection failures, looks underlying connection did not setup. (otherwise there should api error returned paypal)

paypal sandbox has been upgraded accept tlsv1.2 ssl connections protocol, make sure server environment components compliant. please see language specific checking instructions here


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -