· 7 years ago · Dec 10, 2017, 11:00 PM
1$mp = new MP("TEST-1638810707895512-111913-d3dde942495aa41fa5b71f41f1348225__LD_LC
2__-228899152");
3
4$request = array(
5 "uri" => "/oauth/token",
6 "data" => array(
7 "client_secret" => $mp->get_access_token(),
8 "grant_type" => "authorization_code",
9 "code" => "AUTHORIZATION_CODE",
10 "redirect_uri" => "REDIRECT_URI"
11 ),
12 "headers" => array(
13 "content-type" => "application/x-www-form-urlencoded"
14 ),
15 "authenticate" => false
16 );
17$mp->post($request);