ReceiptDeliveryMethodEvent¶
-
public class
ReceiptDeliveryMethodEvent
¶ Contains the selected delivery method and, if relevant, the input value when asking the customer to select from a list of receipt delivery options.
Fields¶
TYPE¶
Methods¶
generateTransactionEventResponse¶
-
public TransactionEventResponse
generateTransactionEventResponse
()¶ Generate transaction event response for the current event.
- Return:
empty response when a standard transaction event. Child classes may implement appropriate responses as needed.
getCustomerEmail¶
getCustomerPhoneNumber¶
getDeliveryMethod¶
-
public DeliveryMethod
getDeliveryMethod
()¶ Get the delivery method as selected by the customer. Refer to
Receipt
for more information.
getEventId¶
-
public String
getEventId
()¶ Returns the event ID associated with this event. Useful for matching the event received by the listener to the original status returned when issuing the call, for example, calling
com.verifone.commerce.payment.TransactionManager.reprintReceipt(Payment)
returns a CommerceEvent containing an event ID, which will match the event ID received by the CommerceListener when the receipt reprint is complete.
getInvoiceId¶
getMessage¶
getSessionId¶
getStatus¶
-
public int
getStatus
()¶ Get the status for this particular event. A status of 0 means success, any other status is a failure.
getTransaction¶
-
public Transaction
getTransaction
()¶ The transaction associated with this event.
getType¶
hasValueForType¶
-
public boolean
hasValueForType
()¶ Check for delivery method has value of type EMAIL/SMS.