OrderProcessDelegate

public protocol OrderProcessDelegate : AnyObject

Notified of Order processing results

  • Called when the Order was processed successfully

    • order: Created Order
    • receipt: A Receipt as confirmation that the Order was processed

    Declaration

    Swift

    func order(_ order: Order, didSucceedWithReceipt receipt: Receipt)
  • Called when there was an error processing the order

    • error: The Error representing the reason for failure. No specific errors to look for here. Best course of action is to just display a generic error message.

    Declaration

    Swift

    func order(_ order: Order, didFailWithError error: Error)