PaymentParameters
public struct PaymentParameters
An object for customising the behaviour of the YocoSDK.
-
init(autoTransition:
receiptDelegate: userInfo: staffMember: receiptNumber: billId: note: pairingCompletionHandler: transactionCompleteNotifier: ) - autoTransition: 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 wantautoTransition
set totrue
. - receiptDelegate: A delegate object that will recieve call backs of button presses for different reciept types.
- userInfo: Store data you would like to recieve back on completion of the payment. This data only exists locally.
- receiptNumber: Provided
receiptNumber
is a unique string that can be used to track a transaction - billId: Transactions are associated with provided
billId
Note
A note string to be attached to this transaction- staffMember: A staff member object that can be used to assign staff member meta data to the transaction.
Declaration
Swift
public init(autoTransition: Bool = false, receiptDelegate: YocoReceiptDelegate?, userInfo: [AnyHashable: Any]? = nil, staffMember: YocoStaff? = nil, receiptNumber: String? = nil, billId: String? = nil, note: String? = nil, pairingCompletionHandler: YocoCompletionHandler<[String: Any]?>? = nil, transactionCompleteNotifier: YocoCompletionHandler<PaymentResult>? = nil)
- autoTransition: 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