SQIPSecureRemoteCommerce
@interface SQIPSecureRemoteCommerce : NSObject
This class starts and handles a Secure Remote Commerce transaction.
@discussion A strong reference to the object must be maintained.
-
Starts the Secure Remote Commerce transaction. Calling this method will modally present the dialogs over the designated view controller.
@discussion If the request completes successfully the completion handler will pass in card details and no error. If there is an error, the error will be passed without card details. If the action is cancelled both the details and the error will be
nil
.Declaration
Objective-C
- (void)createPaymentRequest: (nonnull UIViewController *)presentingViewController secureRemoteCommerceParameters: (SQIPSecureRemoteCommerceParameters)secureRemoteCommerceParameters completionHandler: (nonnull SQIPSecureRemoteCommerceCompletionHandler) completionHandler;
Parameters
presentingViewController
The view controller over whose view the dialogs willappear.
secureRemoteCommerceParameters
The necessary parameters for conducting a Secure Remote Commerce Transaction. Currently just the amount in USD.
completionHandler
The completion handler to be called upon success or failure of the nonce request.