TokenisedCardRefund

@objcMembers
public class TokenisedCardRefund : TokenisedCardSale, PaymentRequestRefundable

Contains the data for performing a tokenised Card refund.

  • Provide the merchant code used in the original sale being refunded.

    Declaration

    Swift

    public private(set) var originalMerchantCode: String? { get }
  • Provide the transaction reference from the original sale being refunded.

    Declaration

    Swift

    public private(set) var originalTransactionReference: String? { get }
  • For refunding card sales, optionally provide the Payment Gateway Transaction Reference of the original sale being refunded.

    Declaration

    Swift

    public private(set) var originalGatewayTransactionReference: String? { get }
  • Initialise a TokenisedCardRefund passing the proper parameters

    Declaration

    Swift

    public init(paypointId: String? = nil,
                tokenId: String,
                value: Int,
                merchantTransactionReference: String,
                originalMerchantCode: String? = nil,
                originalTransactionReference: String? = nil,
                originalGatewayTransactionReference: String? = nil)

    Parameters

    paypointId

    Identifier for the paypoint on which the action should or has been performed on.

    tokenId

    The card token to be used for the payment.

    value

    The value of the payment in minor units.

    merchantTransactionReference

    The transaction reference defined by the merchant to uniquely identify the payment.

    originalMerchantCode

    Provide the merchant code used in the original sale being refunded.

    originalTransactionReference

    Provide the transaction reference from the original sale being refunded.

    originalGatewayTransactionReference

    For refunding card sales, optionally provide the Payment Gateway Transaction Reference of the original sale being refunded.

  • Used to print the debug content of the object

    Declaration

    Swift

    override public var debugDescription: String { get }