1
根據文檔約"Testing Recurring Payments"如何通過PayPal的merchant-sdk-java縮短結算週期的運行時間?
當指定日,帳單週期發生在 沙盒,其中,n表示頻率每n分鐘;
所以這就是我所做的:除了這個問題(對我來說最大的問題),它並沒有加快這一進程
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss:'000Z'");
df.setTimeZone(TimeZone.getTimeZone("GMT"));
RecurringPaymentsProfileDetailsType profileDetails = new RecurringPaymentsProfileDetailsType(df.format(new Date()));
BillingPeriodDetailsType trialPeriod = new BillingPeriodDetailsType(BillingPeriodType.DAY, 1, new BasicAmountType(CurrencyCodeType.USD, "40"));
trialPeriod.setTotalBillingCycles(1);
ScheduleDetailsType scheduleDetails = new ScheduleDetailsType();
scheduleDetails.setPaymentPeriod(new BillingPeriodDetailsType(BillingPeriodType.DAY, 1, new BasicAmountType(CurrencyCodeType.USD, "40")));
scheduleDetails.setDescription(agreementDescription);
scheduleDetails.setTrialPeriod(trialPeriod);
CreateRecurringPaymentsProfileRequestDetailsType reqDetails = new CreateRecurringPaymentsProfileRequestDetailsType(profileDetails, scheduleDetails);
reqDetails.setToken(token);
CreateRecurringPaymentsProfileRequestType reqType = new CreateRecurringPaymentsProfileRequestType();
reqType.setCreateRecurringPaymentsProfileRequestDetails(reqDetails);
CreateRecurringPaymentsProfileReq req = new CreateRecurringPaymentsProfileReq();
req.setCreateRecurringPaymentsProfileRequest(reqType);
return service.createRecurringPaymentsProfile(req);
此代碼的偉大工程。沒有它,它是不可能的測試IPN定期付款。
根據此other forum post我可能需要爲我的沙箱企業帳戶啓用「測試模式」,但我無法在新的沙箱網站中找到該選項。
我錯過了什麼?
哦,這太遺憾了!但感謝您的答案。 – ascandroli 2013-03-13 09:55:06