如何更新paypal快速结账定期付款的定期个人资料

时间:2013-12-02 20:46:56

标签: php paypal recurring-billing

在我的网站上,我使用paypal express checkout并创建定期配置文件。

我想更新定期配置文件的金额,并将updaterecurring函数调用为:

if($Post['update'] == 1) 
{
  $nvpstr="&PROFILEID=".$profileID;
  $nvpstr.="&AMT=1.2";
  $nvpstr.="&PROFILESTARTDATE=".urlencode("2014-03-01T0:0:0");
  $resArray=hash_call("UpdateRecurringPaymentsProfile",$nvpstr);
  $ack = strtoupper($resArray["ACK"]);
  return $resArray;
} 
else
{
  $resArray = CallShortcutExpressCheckout ($paymentAmount, $currencyCodeType, $paymentType, $returnURL, $cancelURL);
  $ack = strtoupper($resArray["ACK"]);
  if($ack=="SUCCESS" || $ack=="SUCCESSWITHWARNING")
  {
  // if SetExpressCheckout is returned with success, move to paypal site for payments.
  RedirectToPayPal ( $resArray["TOKEN"] );
  } 

}

更新定期配置文件在paypal沙盒页面上给我错误。在更新重复调用之前,我是否需要调用SetExpressCheckout?

我正在使用来自https://github.com/hrendoh/PayPal-Recurring-Payment-example

的paypal集成库

0 个答案:

没有答案
相关问题