SCPProcessRefundError

Objective-C


@interface SCPProcessRefundError : NSError

Swift

class ProcessRefundError : NSError

An error from -[SCPTerminal processRefund:completion:].

  • If processRefund failed after the refund was created, this property contains the failing refund.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) SCPRefund *refund;

    Swift

    var refund: SCPRefund? { get }
  • If processRefund failed because the underlying network request errored, this property contains additional details about the error.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSError *requestError;

    Swift

    var requestError: Error? { get }
  • If processRefund failed because the payment method was declined, this property contains the decline code.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *failureReason;

    Swift

    var failureReason: String? { get }
  • Unavailable

    You cannot directly instantiate this class.

    Declaration

    Objective-C

    + (nonnull instancetype)init;
  • Unavailable

    You cannot directly instantiate this class.

    Declaration

    Objective-C

    + (nonnull instancetype)new;