Check Mobile App
Read now

PayTabs Integration in Swift

Save

Hello Friends, in today’s blog we will discuss PayTab Integration in Swift. PayTab is a very secure and easy to use Payment Gateway. First of all let’s check about PayTab.

What is PayTab?

PayTabs is a simple payment gateway that can be quickly integrated with merchant and it enables fast deposit of payments to the merchant account.

Also, PayTabs is an award-winning, B2B payment solutions provider that processes payments simply and securely.

The PayTabs product targets SME’s primarily with a view to making online card acceptance more easily integrated with lower costs and more importantly minimal fraud.

Services provided include Secure Payment Gateway, Fraud Preventions systems with convenient payment options, and eCommerce platforms tailor-made for social media compatibility.

In short, PayTabs iOS SDK’s easy set-up and easy integration into the iOS applications you develop.

Lets discuss PayTab Integration in Swift

PayTabs iOS SDK

Download SDK Lite version

PayTab Integration in Swift

Step1: Firstly, extract the PayTabs iOS SDK.zip file which contains two folders, Framework, and Resources along with samples.

Step2: Then, add paytabs-iOS.framework into your workspace Frameworks folder by dragging and with Copy items if needed checked.

 

Step3: Similary, add Resources.bundle in the project.

 

Step4: Now, install below pods in your project.

 

Step5: Now, in your Bridging-Header file import PayTabs.

Step6: Then, add two flags, -all_load and -ObjC in Build Settings/Other linker flags.

Step7: Finally, initialiase the PayTabs View Controller.

 

Hence, the callback, didReceiveFinishTransactionCallback contains seven values in the response after the transaction is processed

Response Codes :

The Complete list of response codes can be found here

So, here is the code for PayTab Integration in Swift.

Please check PayTab Integration in Objective-C here

Moreover, You can check all officail PayTabs documentation for details here

Thank you for reading 🙂

Hope this article helps you.

For any queries, please feel free to add a comment in the comments section.

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • Keyur Akbari
    Hi,
    I like your blog. I use your code but I have one query. Can we do it without zip code? In Dubai, there is no concept of Zipcode so how can I implement it without zip code?
  • Shikha Melkani (Moderator)
    Hello Keyur Akbari,
    Thanks for reading the blog.
    Yes, you can implement it without zip code, send any static value or a blank string in place of zip code.
  • css.php

    Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!

    Deniel Kerr

    Owner and Founder. Opencart

    Talk to Sales
    Start a Project

      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home