The steps involved in invoice creation and processing are:
A user asks for an invoice to be generated upon checkout and provides a purchase order number. An
invoiceRequest
payment group is created and attached to the order. See the Invoices in Checkout section. At this time, processors in the commerce pipeline validate theinvoiceRequest
, allowing checkout to proceed. For more information on these processors, see the Configuring Purchase Process Services chapter in this manual.When the order is fulfilled, the
PaymentManager
debits its payment groups. For invoices, thePaymentManager
performs a debit by calling on theInvoiceManager
to generate a newInvoice
object, just as with credit cards thePaymentManager
performs a debit by contacting a billing service to bill the credit card.The
Invoice
is created and stored in the Invoice repository.JMS messages are generated informing the Dynamo Scenario Manager and any other modules you designate that an invoice has been created.
The rest of this chapter explains the pieces involved in invoice processing, in the order they are mentioned above.