我定期付款创建定期付款资料。但我想创建一次性付款的配置文件,这将在创建配置文件后立即发生。我怎么能这样做?
我按照以下方式创建个人资料:
var currency = CurrencyCodeType.USD;
var startBillingDate = DateTime.Now;
var rpProfileDetails =
new RecurringPaymentsProfileDetailsType(startBillingDate.ToString("yyyy-MM-ddThh:mm:ss"))
{
SubscriberName = "John Smith"
};
var scheduleDetails = new ScheduleDetailsType
{
Description = "Application Licenses",
AutoBillOutstandingAmount = AutoBillType.ADDTONEXTBILLING,
PaymentPeriod = new BillingPeriodDetailsType(BillingPeriodType.MONTH, pLicence.BillingPeriodAmount,
new BasicAmountType(currency,
"10.00"))
{
TotalBillingCycles = 12,
TaxAmount = new BasicAmountType(currency, "2.00")
}
};
答案 0 :(得分:0)
您需要在CreateRecurringPaymentsProfile请求中包含INITAMT参数。您可以在PayPal's CreateRecurringPaymentsProfile API reference中找到有关它的更多详细信息。