MLPayResult Class Reference

Inherits from NSObject
Declared in MLPayResult.h

Overview

The representation of transaction result.

  error

The error occured in transaction.

@property (nullable, nonatomic, strong) NSError *error

Declared In

MLPayResult.h

  code

The transaction result code. MLPaySuccess indicate the transaction success, otherwise an error occurred.

@property (nonatomic) MLPayResultCode code

Declared In

MLPayResult.h

  infoDict

Detail result information returned by payment sdk.

@property (nullable, nonatomic, strong) NSDictionary *infoDict

Declared In

MLPayResult.h

  channel

Pay channel

@property (nonatomic) MLPayChannel channel

Declared In

MLPayResult.h

  payment

The payment object.

@property (readonly, nullable, nonatomic, strong) MLPayment *payment

Declared In

MLPayResult.h

+ resultWithPayment:

Create the result instance of the payment.

+ (instancetype)resultWithPayment:(nullable MLPayment *)payment

Parameters

payment

a payment.

Return Value

a new result instance for the payment.

Declared In

MLPayResult.h