Skip to content

PayU-EMEA/PayU-iOS-Swift

Repository files navigation

PUSDK

Allows to make payments in PayU ecosystem.

Requirements

  • iOS 12.0 or higher

Getting Started

PUSDK consists of:

Installation

To add a package dependency to your Xcode project, select File > Add Packages. You can also navigate to your target’s General pane, and in the Frameworks, Libraries, and Embedded Content section, click the + button, select Add Other, and choose Add Package Dependency.

  • Package URL: https://github.com/PayU-EMEA/PayU-iOS-Swift.git
  • Dependency Rule: Up To Next Major Version

Then choose Package Products you want to use:

  • PUSDK - when you want to use all Packages (PUApplePay, PUPaymentMethods, PUWebPayments, etc.)
  • {PackageName} - when you want to use single Package

CocoaPods

When you want to use all Packages (PUApplePay, PUPaymentMethods, PUWebPayments, etc.):

  • pod 'PUSDK', :git => 'https://github.com/PayU-EMEA/PayU-iOS-Swift.git', :tag => 'VERSION'

When you want to use single Package:

  • pod 'PUSDK/{PackageName}' , :git => 'https://github.com/PayU-EMEA/PayU-iOS-Swift.git', :tag => 'VERSION'

Example

The SDK contains the Example project, where you can find example of how to implement different feature, such as: PUApplePay, PUPaymentCard, PUPaymentMethods, etc.