CreateRecurringPaymentsProfile

CreateRecurringPaymentsProfile

在我的网站中,我们需要集成贝宝Recurring(CreateRecurringPaymentsProfile)
但是我们不想最终获取信用卡详细信息,我们需要将用户重定向到Paypal网站,他们将使用Paypal门户来填写信用卡信息,然后将创建CreateRecurringPaymentsProfile ...
我该如何实施?

最佳答案

要开始使用PayPal提取所有卡详细信息的定期付款,您可以使用Express Checkout定期付款。

要使用此功能,请(至少)使用以下参数调用以下API调用:

SetExpressCheckout

$nvps = array();
$nvps["VERSION"] = "80.0";

$nvps["METHOD"] = "SetExpressCheckout";

$nvps["PAYMENTREQUEST_0_PAYMENTACTION"] = "Sale";
$nvps["PAYMENTREQUEST_0_AMT"] = "1.00";
$nvps["PAYMENTREQUEST_0_CURRENCYCODE"] = "GBP";
$nvps["PAYMENTREQUEST_0_ITEMAMT"] = "1.00";

$nvps["L_BILLINGTYPE0"] = 'RecurringPayments';
$nvps["L_BILLINGAGREEMENTDESCRIPTION0"] = "the subscription";

$nvps["L_PAYMENTREQUEST_0_NUMBER0"] = 1;
$nvps["L_PAYMENTREQUEST_0_NAME0"]= "subscription";
$nvps["L_PAYMENTREQUEST_0_AMT0"]= 1.00;
$nvps["L_PAYMENTREQUEST_0_QTY0"]= 1;


CreateRecurringPaymentsProfile与:

$nvps["PROFILESTARTDATE"] = "2011-07-08T17:40:00Z";
$nvps["BILLINGPERIOD"] = "Month";
$nvps["BILLINGFREQUENCY"] = "1";
$nvps["AMT"] = "1.00";
$nvps["CURRENCYCODE"] = "GBP";
$nvps["DESC"] = "the subscription";

关于php - 如何实现 Paypal CreateRecurringPaymentsProfile,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9480070/

10-08 20:33