Payment Plan Processor Process
This process bills the installments that are due on active payment plans. For each payment it takes it creates the invoice, notifies the author's users, and emails the customer a receipt when Email Customer On Installment is enabled on the customer's payment plan instance. When a payment is declined it applies the retry and final decline handling set on the customer's payment plan instance. These settings are copied from the payment plan when the customer orders it (see Payment Plan Ordering Details), so changing the payment plan later does not change them for existing customers. The process also deactivates any payment plan instance whose licenses are no longer in OK status, clearing its next payment date, and after a final decline, when the Declined Action is set to disable the license, it changes the status of the instance's licenses to CHK.
A payment that never reaches the payment gateway does not cost the customer a retry. With Authorize.NET, Network Merchants and PayPal Payflow Pro, this covers a connection to the gateway that fails before the payment is sent, for example when the gateway is down or the server cannot open a secure connection to it. A PayPal Payflow Pro timeout, where the gateway does not answer in time, is handled the same way. In either case the customer is not emailed, the payment plan instance and its licenses are left as they are, and the payment is attempted again on the next run. A declined order record is still written, and the author's users who receive payment plan decline notifications are told the payment will be retried. For payments that could not reach the gateway, the master users who receive error notifications get one message per run listing the affected payment plan instances, and the processing status report lists them too when an AdminEmail is set. With other payment gateways, a connection failure is still handled as a decline.
This process only bills authors that have Use NET Payment Plan Processor enabled in their account options. Installments for every other author continue to be billed by the SOLO Server Process Payment Plan Payments database job.
The Input Xml for this process contains the following elements:
Daily Process Input Xml Elements
- AdminEmail
- Optional email address to send the processing status report to. Note that multiple AdminEmail elements can be specified to send to multiple email addresses.
Only one Payment Plan Processor process should be active at a time. A second active process sweeps the same authors again right after the first. Installments the first run billed or declined have already moved on, but anything it left due is attempted again, so a payment that timed out at the gateway, or that was approved but could not be recorded, can be charged a second time. Two payment plan runs overlapping in time carry that risk for every due installment, including an overlap with the SOLO Server Process Payment Plan Payments database job over the same authors, because both select the same due installments before either one updates them. The two only select the same authors if an author's Use NET Payment Plan Processor setting is changed while either one is running, so do not change that setting during a payment plan run.