当取消的贝宝用户重新订阅时,用户付款处于非活动状态,并且在取消时出现问题。最好的解决方案是什么? 例如: 用户加入了定期付款,并且在某个年中他/她在某个月后再次取消订阅,但他/她重新订阅,但是在其Paypal帐户上以非活动状态付款进行了付款,因此他们无法取消订阅。解决方案是什么它吗?
订阅创建代码:
$post_data_array = array(
'METHOD' => 'SetExpressCheckout',
'VERSION' => '98.0',
'RETURNURL' => $return_url,
'CANCELURL' => $cancel_url,
'NOSHIPPING' => 1,
'ALLOWNOTE' => 0,
'PAYMENTREQUEST_0_CURRENCYCODE' => $currencycode,
'PAYMENTREQUEST_0_CUSTOM' => $custom,
'USER' => $this->_apiUserName,
'PWD' => $this->_apiPassword,
'SIGNATURE' => $this->_apiAPISignature
);
$post_data_array = array_merge(
$post_data_array,
array(
'L_BILLINGTYPE0' => "RecurringPayments",
'L_BILLINGAGREEMENTDESCRIPTION0' => "Membership",
"L_PAYMENTREQUEST_0_DESC0" =>"Membership Fee",
'PAYMENTREQUEST_0_AMT' => $amount,
'L_PAYMENTREQUEST_0_AMT0' => $join_fee,
"L_PAYMENTREQUEST_0_DESC1" => "Renewal",
"L_PAYMENTREQUEST_0_AMT1" => $renewal_fee,
"L_PAYMENTREQUEST_0_DESC2" => "Donation",
"L_PAYMENTREQUEST_0_AMT2" => $donation
)
);
取消代码:
$post_data_array = array(
'METHOD' => 'ManageRecurringPaymentsProfileStatus',
'VERSION' => '98.0',
"PROFILEID" => $profile_id,
"ACTION" => "Cancel",
'USER' => $this->_apiUserName,
'PWD' => $this->_apiPassword,
'SIGNATURE' => $this->_apiAPISignature
);
第二次取消过程后,错误显示
“用于取消操作的个人资料状态无效;个人资料应处于活动状态或已暂停”