简体   繁体   English

使用nvp api版本65.1进行贝宝定期付款

[英]paypal recurring payments with nvp api version 65.1

Done a site which take recurring payments with paypal using a credit card. 完成了使用信用卡通过Paypal进行定期付款的网站。 I now want to offer the user to the ability to use a paypal account to pay. 我现在想为用户提供使用贝宝帐户付款的能力。 I followed a guide and https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPRecurringPayments 我遵循了指南和https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_WPRecurringPayments

However paypal have updated their express checkout api so i cant find documentation which follows the api. 但是贝宝已经更新了他们的快速结帐API,所以我找不到遵循该API的文档。 I am wondering if some one has more up to date documentation on which fields i need to pass to paypal. 我想知道是否有人需要我将哪些字段传递给Paypal的最新文档。

Best Regards 最好的祝福

Here you can see required nvps to create recurring profile. 在这里,您可以看到创建循环配置文件所需的nvps。 If you dont have a token (not a ExpressCheckout payment) then pass in CC details instead of token at bottom (as you do in DoDirect payment). 如果您没有令牌(不是ExpressCheckout付款),则传递抄送详细信息,而不是在底部传递令牌(就像在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);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM