2011-09-05 25 views
0

做一個網站,採用信用卡與貝寶定期付款。我現在想要讓用戶能夠使用PayPal帳戶來支付。我遵循指導和https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPRecurringPaymentspaypal與nvp api的定期付款版本65.1

但是,貝寶更新了他們的快速結帳api,所以我找不到api後面的文檔。我想知道如果有人有更多的最新文檔,我需要傳遞給貝寶的字段。

最好的問候

回答

0

在這裏你可以看到所需的nvps創建循環配置文件。 如果您沒有令牌(不是ExpressCheckout付款),則傳遞CC細節而不是底部的令牌(與您在DoDirect付款時一樣)。

var sb = new StringBuilder(); 
AppendPaypalAccountCreds(sb); 
sb.Append("&METHOD=CreateRecurringPaymentsProfile"); 
sb.Append("&AMT=" + transaction.MoneyValue.ToString().Replace(",", ".")); 
sb.Append("&PROFILESTARTDATE=" + DateTime.UtcNow.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss")); 
sb.Append("&BILLINGPERIOD=" + transaction.RecurringPeriod); 
sb.Append("&BILLINGFREQUENCY=" + GetRecurringFreq(transaction.RecurringPeriod)); 
sb.Append("&DESC=" + GetTransactionDesc(transaction)); 
sb.Append("&TOKEN=" + token);