PayMayaSDK Class Reference
Inherits from | NSObject |
---|---|
Declared in | PayMayaSDK.h |
– setCheckoutAPIKey:forEnvironment:
Method to initialize the PayMaya Checkout SDK with the user’s API key and environment. Refer to PayMayaEnvironment for the different environments that can be used.
- (void)setCheckoutAPIKey:(NSString *)apiKey forEnvironment:(PayMayaEnvironment)environment
Parameters
environment |
The environment to be used by the Checkout SDK application |
---|---|
APIKey |
The public-facing API key given to you for the specified environment |
Declared In
PayMayaSDK.h
– setPaymentsAPIKey:forEnvironment:
Method to initialize the PayMaya Payments SDK with the user’s API key and environment. Refer to PayMayaEnvironment for the different environments that can be used.
- (void)setPaymentsAPIKey:(NSString *)apiKey forEnvironment:(PayMayaEnvironment)environment
Parameters
environment |
The environment to be used by the Payments SDK application |
---|---|
APIKey |
The public-facing API key given to you for the specified environment |
Declared In
PayMayaSDK.h
– checkout:delegate:
This method will present a view controller where the customer can complete the whole checkout process. The delegate methods as defined in the PayMayaCheckoutDelegate protocol allows an object to receive information regarding the success or failure of a checkout transaction.
- (void)checkout:(PMSDKCheckoutInformation *)checkoutInfo delegate:(id<PayMayaCheckoutDelegate>)delegate
Parameters
checkoutInfo |
The checkout information details to be processed |
---|---|
result |
The delegate for checkout completion |
Declared In
PayMayaSDK.h
– checkout:result:
This method will present a view controller where the customer can complete the whole checkout process. The completion block will be called upon checkout completion.
- (void)checkout:(PMSDKCheckoutInformation *)checkoutInfo result:(PayMayaCheckoutResultBlock)result
Parameters
checkoutInfo |
The checkout information details to be processed |
---|---|
result |
A block that will be called upon checkout completion |
Declared In
PayMayaSDK.h
– createPaymentTokenFromCard:delegate:
This method allows you to generate a payment token given a customer’s credit card information. This payment token should then be passed to your servers for payment execution. The delegate methods as defined in the PayMayaPaymentsDelegate protocol allows an object to receive information regarding the success or failure of payment token generation.
- (void)createPaymentTokenFromCard:(PMSDKCard *)card delegate:(id<PayMayaPaymentsDelegate>)delegate
Parameters
card |
Customer’s card information (i.e. card number, expiry month, expiry year, cvv) |
---|---|
result |
The delegate for payment token generation completion |
Declared In
PayMayaSDK.h
– createPaymentTokenFromCard:result:
This method allows you to generate a payment token given a customer’s credit card information. This payment token should then be passed to your servers for payment execution. The completion block will be called upon payment token generation completion.
- (void)createPaymentTokenFromCard:(PMSDKCard *)card result:(PayMayaPaymentTokenResultBlock)result
Parameters
card |
Customer’s card information (i.e. card number, expiry month, expiry year, cvv) |
---|---|
result |
A block that will be called upon payment token generation completion |
Declared In
PayMayaSDK.h