PayPal执行协议计划

时间:2015-03-31 10:32:08

标签: php paypal paypal-subscriptions paypal-rest-sdk

您好,我之前参加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

0 个答案:

没有答案