CardRefund
@objcMembers
public class CardRefund : CardSale, PaymentRequestRefundable
Contains the data for performing a 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 }
-
init(paypointId:
type: value: merchantTransactionReference: originalMerchantCode: originalTransactionReference: originalGatewayTransactionReference: ) Initialise a CardRefund passing the proper parameters
Declaration
Swift
public init(paypointId: String? = nil, type: CardInteraction, 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.
type
The manner in which the payment is to be made (present, keyed or not present)
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 }