The mobile SDK allows you to integrate directly into your mobile app, our payments collection functionality. We allow your customers to enjoy the same payment options and experiences that they do on our web channel.

We have developed SDKs for all the popular mobile development technologies. We have SDKs for the following platforms:

Android
iOS
Flutter

Process Flow

There are three steps you would have to complete to set up the SDK and perform a transaction.

  1. Install the SDK as a dependency
  2. Configure the SDK with Merchant Information
  3. Provide the appropriate callbacks for both a successful and failed transaction.
  4. Initiate payment with customer details
  5. The SDK will close and call the appropriate callback

Installation

### CocoaPods
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Mobpay into your Xcode project using CocoaPods, specify it in your Podfile:
To get the library to add the following dependency to your podfile:

```ruby
pod 'MobpayiOS'
```

Then run the following command
``` shell pod install
```

Don't forget to use the .xcworkspace file to open your project in Xcode, instead of the .xcodeproj file, from here on out.

In the future, to update to the latest version of the SDK, just run:

```shell pod update MobpayiOS
```