XPay Payment Kit for Swift is an embedded payment system that allows you to collect payments directly from users within your iOS Swift applications. This package is highly customizable, enabling you to tailor the appearance and functionalities of the payment form to align seamlessly with your app's style and theme.

<aside> 💡 Please be advised that this SDK is compatible only with iOS 15 or later versions. Ensure that your development and testing environments meet this requirement for optimal performance.

</aside>

Features

Seamless Payment Integration

Easily integrate payment functionalities into your IOS app without redirecting users to external applications or pages.

Embedded Authentication

Perform OTP authentication within your app, ensuring a smooth and secure user experience.

Custom Styling

Style the payment form according to your app's theme with customizable labels, placeholders, and more.

Event Handling

Utilize built-in events such as onBinDiscount and onReady to manage changes and validate inputs dynamically.

Getting started

To incorporate the XPay embedded payment system into your IOS application, start by adding the following package dependency to your app:

// For production,, use latest released version 

 [<https://github.com/XStakCommerce/XPay-Swift-SDK>](<https://github.com/XStakCommerce/XPay-Swift-SDK>)

// For staging, please change from version to branch type using the branch name **stage.**

E2E Integration Sample Repo

https://github.com/XStakCommerce/XPay-Element-Swift-Demo

Usage

To use the XPay SDK in your app, follow these steps:

Import the Package