RequiredPayment
Use this component to verify that the payment authorization code exists in the order form (is not NULL).
Intended use: Order Processing pipeline, Payment stage.
Configuration Values
None.
Values Read
The RequiredPayment component reads the following values from the indicated dictionaries.
Key | Dictionary | Description |
_payment_auth_code | Order | The payment authorization code for the order form. |
MessageManager | Context | A reference to a MessageManager objectthat is used to retrieve the bad payment constant (pur _bad _payment ) in case of an error. |
Values Written
The RequiredPayment component writes the following values to the Order dictionary.
Key | Description |
_Purchase_Errors |
Error messages are written to this SimpleList object. |
Errors
This component writes an error message to the _Purchase
_Errors
collection. The component uses a MessageManager object to retrieve user warning message text.
Constant | Condition |
pur_badpayment |
The payment authorization code is missing from the order form. |
Remarks
If the payment authorization code does not exist (is equal to NULL), the RequiredPayment component retrieves the error for the pur
_badpayment
constant from the MessageManager object, and writes this error to the _Purchase
_Errors
collection of the OrderForm object.