0
我在我的Wordpress项目中使用了Authorized.Net API,我在我的网站上销售订阅,一些订阅持续6个月,一些持续了12个月,一些持续了24个月,对于这些情况,我设置了“setTotalOccurrences”值如下:在“Authorize.Net”中为永不结束订阅传递“setTotalOccurrences”的值是多少?
$paymentSchedule->setTotalOccurrences("6"); // for 6 months
$paymentSchedule->setTotalOccurrences("12"); // for 12 months
$paymentSchedule->setTotalOccurrences("24"); // for 24 months
一切顺利到现在,但我被困了从未结束订阅,我试图通过“setTotalOccurrences”值= 0针对这种情况,但它抛出一个错误,即0是无效的。
请让我知道在“setTotalOccurrences”中传递永不结束订阅的价值。
Authorize.Net,这里是它的GitHub的网址:https://github.com/AuthorizeNet/sample-code-php –