Paypal Api is not working for Tizen tv -


paypal rest api not working tizen tv while working fine on rest client. neither success nor failure function called in tizen tv.

changed url other paypal working fine. tried ajax no changes found.

here sample code it.

get:

var request = $http({     method : "get",     url : "https://api.sandbox.paypal.com/v1/payments/payment",     headers : {         "content-type" : "application/json",         "authorization": "bearer a101.fflkjomgx-80ju9h9acdqrm0-dsg5pvlusmnz2slsb9hbszsnqxq7c653uc0xeys.dd1d0romsbofyq_q7dih6keqg0o"     } }); request.then(function(response){ console.log(response);  },function(error){  console.log(error);  });  

post :

 var request = $http({     method : "post",     url : 'http://api.sandbox.paypal.com/v1/oauth2/token',     data : 'grant_type=client_credentials',     headers : {             'content-type': 'application/x-www-form-urlencoded',             'accept': 'application/x-www-form-urlencoded',              'accept-language': 'en_us',             "authorization": "basic qwvrwnpoanm5ugdrqvdyb1vkbjktz1lhcmnznuxst2hsn2qyn1vtltayb0lxny1pcmhymufkwxhldkpoy1q5y0jouxlxehjdzw5mv2jxqji6rur4q3pwbmrkrhbhsvi4sfo2tur6dzkxyjr6enzndxgwc1hdsfhfu0c5c0pmohfdnmg4nwd3s3cttktibw1obxntmfzpt0fqou84whrezfc="     } }); request.then(function(response){     console.log(response);    },function(error){  console.log(error);  }); 

this api guide in samsung d forum holds examples may query regarding paypal.

samsung d forum api guide : https://www.samsungdforum.com/tizenguide/tizen4791/index.html

if still face issues, may try posting in samsungdforum

samsungdforum tizen tv: https://www.samsungdforum.com/samsungdforum/forumdashboard

thank you.


Comments