purchaseFail

public boolean purchaseFail(String msg)

Ends the purchase moment and generates an error log message that indicates that the purchase failed.

This method should be called once the purchase order has been confirmed.

Return

True if the operation was successful; false otherwise.

Parameters

msg

A message that explains the reason for why this operation failed. This value is optional and, if provided, will associate the value as a property of the error log message.


public boolean purchaseFail(String msg, Map<String, Object> properties)

Ends the purchase moment and generates an error log message that indicates that the purchase failed.

This method should be called once the purchase order has been confirmed.

Return

True if the operation was successful; false otherwise.

Parameters

msg

A message that explains the reason for why this operation failed. This value is optional and, if provided, will associate the value as a property of the error log message.

properties

Custom properties to pass in as part of the purchase failure