gpt4 book ai didi

php - 如何实现paypal CreateRecurringPaymentsProfile

转载 作者:太空宇宙 更新时间:2023-11-03 16:20:14 24 4
gpt4 key购买 nike

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

最佳答案

要开始使用定期付款(PayPal 获取所有银行卡详细信息),您可以使用 Express Checkout 定期付款。

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

设置ExpressCheckout:

$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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com