CreatePaymentSessionRequest

public protocol CreatePaymentSessionRequest

Request containing the details of the PaymentSession

  • The location of the payment session (used to group payment sessions).

    Declaration

    Swift

    var location: String { get }
  • Payload used to pass merchant information to the customer.

    Declaration

    Swift

    var merchantInfo: DynamicPayload { get }
  • Flag indicating whether a QR code should be created and returned in the response.

    Declaration

    Swift

    var generateQR: Bool { get }

    Return Value

    false by default

  • The time in seconds that the payment request should remain valid

    Default value is 0 which indicates that the code will not expire until it is deleted

    Declaration

    Swift

    var timeToLivePaymentSession: Int { get }

    Return Value

    0 by default

  • The time in seconds that the QR code should remain valid.

    Default value is 0 which indicates that the code will not expire until it is deleted

    Declaration

    Swift

    var timeToLiveQR: Int { get }

    Return Value

    0 by default