Classes
The following classes are available globally.
-
Undocumented
See moreDeclaration
Objective-C
@interface MiaCheckoutController : UIViewController + (MiaCheckoutController *)makeWithPaymentID:(NSString *)paymentID paymentURL:(NSString *)paymentURL redirectURL:(NSString * _Nullable)redirectURL cancelURL:(NSString * _Nullable)cancelURL success:(void(^)(MiaCheckoutController *))success cancellation:(void(^)(MiaCheckoutController *))cancellation failure:(void(^)(MiaCheckoutController *, NSError *))failure; @end
Swift
class MiaCheckoutController : UIViewController
-
Undocumented
See moreDeclaration
Objective-C
@interface MiaSDK : NSObject /// Returns a view controller that hosts checkout web view. /// Pass a `redirectURL` iff Easy-hosted web view is presented. /// /// Merchant-hosted payment does not require a `redirectURL`. /// Pass `nil` `redirectURL` for merchant-hosted payment. /// /// @param paymentID Payment ID /// @param paymentURL Payment URL /// @param redirectURL The URL used to redirect from Easy hosted web view /// @param success Success /// @param cancellation Cancellation /// @param failure Failure /// + (MiaCheckoutController *)checkoutControllerForPaymentWithID:(NSString *)paymentID paymentURL:(NSString *)paymentURL isEasyHostedWithRedirectURL:(NSString * _Nullable)redirectURL success:(void(^)(MiaCheckoutController *))success cancellation:(void(^)(MiaCheckoutController *))cancellation failure:(void(^)(MiaCheckoutController *, NSError *))failure __deprecated_msg("Use checkoutControllerForPaymentWithID:paymentURL:isEasyHostedWithRedirectURL:cancelURL:success:cancellation:failure instead"); /// Returns a view controller that hosts checkout web view. /// Pass a `redirectURL` iff Easy-hosted web view is presented. /// /// Merchant-hosted payment does not require a `redirectURL`. /// Pass `nil` `redirectURL` for merchant-hosted payment. /// /// @param paymentID Payment ID /// @param paymentURL Payment URL /// @param redirectURL The URL used to redirect from Easy hosted web view /// @param cancelURL The URL used to redirect when user cancels the transaction /// @param success Success /// @param cancellation Cancellation /// @param failure Failure /// + (MiaCheckoutController *)checkoutControllerForPaymentWithID:(NSString *)paymentID paymentURL:(NSString *)paymentURL isEasyHostedWithRedirectURL:(NSString * _Nullable)redirectURL cancelURL:(NSString * _Nullable)cancelURL success:(void(^)(MiaCheckoutController *))success cancellation:(void(^)(MiaCheckoutController *))cancellation failure:(void(^)(MiaCheckoutController *, NSError *))failure; @end
Swift
class MiaSDK : NSObject