您好,我之前参加EC-id表格协议订阅计划现在我将执行计划
$activate_bil_execut = " http://api.paypal.com/v1/payments/billing-agreements/EC-0TS06959WU774942K/agreement-execute";
$header_new_execting = array(
'Content-Type'=>'application/json',
'Authorization'=> " Bearer $access_token",
);
$activate_plan_execting = '{}';
$pay_result_exuting_ammount = wp_remote_request($activate_bil_execut, array( 'method' => 'POST', 'timeout' => 20 ,'headers' =>$header_new_execting,'body'=>$activate_plan_execting ));
var_export($pay_result_exuting_ammount);
回复在这里:
WP_Error :: __ set_state(array('errors'=> array('http_request_failed'=> array(0 =>'连接到api.paypal.com:80失败;正在进行操作'), ),'error_data'=> array(),))false