CardKeyedRefundRecovery

@objcMembers
public class CardKeyedRefundRecovery : PaymentRequest, PaymentRequestRefundable

Contains the data for performing a Card keyed refund recovery.

  • 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 CardRefund passing the proper parameters

    Declaration

    Swift

    public init(paypointId: String? = nil,
                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.

    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

  • Used to print the debug content of the object

    Declaration

    Swift

    override public var debugDescription: String { get }