-
Step 0: IOS Configuration
- PGSDK provided in the IOS plugin can be downloaded from here
- Add library to the project.
- Add System configuration framework.
-
Step 1: Merchant configuration
-
SDK identifies each Merchant by PGMerchantConfiguration object. You can configure this anywhere in the code before the first transaction with necessary parameters. It requires only one time configuration. Since it is singleton Class, you may utilize the same for any transaction within your application.
-
Objective – C
-
-
Step 2: Order Creation:
-
Create the order with the mandatory parameters, as given below in the code snippet. In addition to this, you may add other optional parameters as needed.
-
Objective – C
orderDict[@"CALLBACK_URL"] = @"https://securegw.paytm.in/theia/paytmCallback?ORDER_ID=<ORDER_ID>";
-
-
Step 3:
-
Choose the PG server. In your production build don’t call selectServerDialog. Just create an instance of the PGTransactionViewController and set the serverType to eServerTypeProduction
-
Objective – C
-
-
Step 4: Implement The PGTransactionDelegate protocol.
Note: kindly add the dependency in your project SystemConfiguration.framework
http://paywithpaytm.com/developer/paytm_sdk_doc/
http://paywithpaytm.com/developer/paytm_sdk_doc?target=how-paytm-sdk-works
http://paywithpaytm.com/developer/paytm_sdk_doc?target=steps-for-ios-integration
https://github.com/Paytm-Payments/Paytm_App_Checksum_Kit_PHP
https://github.com/Paytm-Payments/Paytm_App_Checksum_Kit_JAVA
https://github.com/Paytm-Payments/Paytm_App_Checksum_Kit_Python
https://github.com/Paytm-Payments/Paytm_App_Checksum_Kit_Ruby
https://github.com/Paytm-Payments/Paytm_App_Checksum_Kit_NodeJs
https://github.com/Paytm-Payments/Paytm_App_Checksum_Kit_DotNet
http://paywithpaytm.com/developer/paytm_api_doc?target=txn-status-api
- Pod init in the project Directory. It will create a Podfile.
- Add source 'https://github.com/Paytm-Payments/Paytm_iOS_App_Kit.git' source 'https://github.com/CocoaPods/Specs.git' at the top of the podfile
- Add pod 'Paytm-Payments' in the pod file.
- Save and run pod install in the terminal
- Open xcorkspace
- Go to App Target -> Build Phases -> Link Binaries with libraries and add SystemConfiguaration.framework
- Go to Pods Target -> Build Phases -> Link Binaries with libraries and add drag libPaymentsSDK.a there From Pods Resources