贝宝定期付款与快速结帐在c#
我使用以下代码创建定期付款配置文件贝宝定期付款与快速结帐在c#,c#,paypal,C#,Paypal,我使用以下代码创建定期付款配置文件 CreateRecurringPaymentsProfileReq RPPR = new CreateRecurringPaymentsProfileReq() { CreateRecurringPaymentsProfileRequest = new CreateRecurringPaymentsProfileRequestType() { Version = UtilPayPalAPI.Version, C
CreateRecurringPaymentsProfileReq RPPR = new CreateRecurringPaymentsProfileReq()
{
CreateRecurringPaymentsProfileRequest = new CreateRecurringPaymentsProfileRequestType()
{
Version = UtilPayPalAPI.Version,
CreateRecurringPaymentsProfileRequestDetails = new CreateRecurringPaymentsProfileRequestDetailsType()
{
Token = resp.GetExpressCheckoutDetailsResponseDetails.Token,
RecurringPaymentsProfileDetails = new RecurringPaymentsProfileDetailsType()
{
BillingStartDate =Convert.ToDateTime("1/15/2012 11:10:28 AM"),
SubscriberName = "Shubhangi"
},
ScheduleDetails = new ScheduleDetailsType()
{
PaymentPeriod = new BillingPeriodDetailsType()
{
Amount = new BasicAmountType()
{
currencyID = CurrencyCodeType.USD,
Value = "10.00"
},
BillingFrequency=2,
BillingPeriod=BillingPeriodType.Day
},
ActivationDetails = new ActivationDetailsType()
{
InitialAmount = new BasicAmountType()
{
currencyID=CurrencyCodeType.USD,
Value="10.00"
}
},
}
}
}
};
CreateRecurringPaymentsProfileResponseType dorecurringPaymentResponse = UtilPayPalAPI.BuildPayPalWebservice().CreateRecurringPaymentsProfile(RPPR);
UtilPayPalAPI.HandleError(dorecurringPaymentResponse);
调用doexpress签出api后,我调用了CreateRecurrentialProfile api。在本例中,doexpress签出响应返回“成功”,但在此之后,当我调用create recurringprofile时,其响应为“失败”。错误为“令牌无效”
有人能建议对我的代码进行更正吗?既然有错误,doexpress能告诉您错误在哪里吗?或者您的编译器可以这样做吗?不..doexpress返回状态为“成功”,但当我调用createRecurringProfile api时,它返回状态为“faluire”,错误为“Token is missing”。。太糟糕了。。。你能在不同的编译器中试试吗?