OrderCreateDelegate

public protocol OrderCreateDelegate : AnyObject

Notified of order creation results

  • Called when the Order was created successfully

    Declaration

    Swift

    func orderCreationDidSucceed(_ order: Order)
  • Called when there was an error creating 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 orderCreationDidFail(_ error: Error)