문제

I create recurring payment profile with regular payments. But I want to create profile with one-off payment which will occurs immediately after profile created. How I can do it?

I create profile in follow way:

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")
                        }
                };
도움이 되었습니까?

해결책

You need to include the INITAMT parameter in your CreateRecurringPaymentsProfile request. You can find more details about it in PayPal's CreateRecurringPaymentsProfile API reference.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top