public struct PaymentParameters

An object for customising the behaviour of the YocoSDK.

  • Declaration


    public init (autoTransition: Bool = false,
                 receiptDelegate: YocoReceiptDelegate? = nil,
                 userInfo: [AnyHashable: Any]? = nil,
                 staffMember: YocoStaff? = nil,
                 receiptNumber: String? = nil,
                 billId: String? = nil,
                 note: String? = nil,
                 transactionCompleteNotifier: YocoCompletionHandler? = nil)



    Will make the payment complete screen automatically hide after a short time before dismissing the Yoco payment flow. Has no effect if you are implementing the YocoReceiptDelegate. This will allow the payment complete screen to show to the merchant and will have to tap to dismiss it so as to make sure they have seen the payment success screen. If you want to auto transition to your own receipt view or something similar, then you probably want autoTransition set to true.


    A delegate object that will recieve call backs of button presses for different reciept types.


    Store data you would like to recieve back on completion of the payment. This data only exists locally.


    Provided receiptNumber is a unique string that can be used to track a transaction


    Transactions are associated with provided billId


    A note string to be attached to this transaction


    A staff member object that can be used to assign staff member meta data to the transaction.