skip to Main Content

Paypal api – Paypal Rest Api returns 401 Unauthorized when i try to get OAuth2 token using php file_get_contents() in localhost with sandbox , but works in ajax

Paypal Rest Api returns 401 Unauthorized when i try to get OAuth2 token using php file_get_contents() in localhost with sandbox $client_id = env('PAYBAL_CLIENT'); $client_secret = env('PAYPAL_SECRET'); $opts = array('http' => array( 'method' => 'POST', "headers" => [ "Content-Type" => "application/x-www-form-urlencoded",…

VIEW QUESTION
Back To Top
Search