PayTabs SDK makes the integration with the PayTabs payment gateway very easy by providing a ready-made payment screen that handles the card entry, and billing & shipping information and completes the missing details.


This article is dedicated to walking you through how to initiate the payment/request payload using the configuration options and parameters that have already been clarified in the previous step, "Step 2 - Native IOS SDK | Configure the integration method".


Then after that, you can easily initiate your payment using one of the three categories supported in this SDK as listed below:

  1. Pay with Card
    1. Payment with Card
    2. Payment with SDK Saved Card
    3. Tokenized Card Payment (Recurring)
    4. Tokenized Card Payment (Requiring a CVV)
  2. Pay with Apple Pay
  3. Pay with Alternative Payment Methods (APMs)


Which you will need first to be aware of how to Manage Shipping and Billing details among any of the above categories. Also, you may want to perform some business checks as well before sending/starting your payment. To perform such, you will need to navigate to your "PaymentManagerDelegate" class and start building your business case as shown in the below example:


extension ViewController: PaymentManagerDelegate {
    func paymentManager(didStartPaymentTransaction rootViewController: UIViewController) {
                      // implement your code here according to your business needs
    }
}


Finally, you may use our SDK helper functions to cancel the current processing payment.




⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The Native IOS SDK Integration Manual" solution article. 

 And to navigate to the previous step in the integration process "Step 2 - Configure the integration method" kindly click here.

Or you can navigate to the next step in the integration process "Step 4 - Accepting the payment" kindly click here.