Swiftpack.co - nhuson269/PVcbSdk-SwiftPackage as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by nhuson269.
nhuson269/PVcbSdk-SwiftPackage 0.0.1
PVcbSdk for PVcomBank by Swift Package
⭐️ 1
🕓 1 week ago
iOS
.package(url: "https://github.com/nhuson269/PVcbSdk-SwiftPackage.git", from: "0.0.1")

PVcbSdk

SDK for PVcomBank

Request

  • Minimum iOS Deployment Target: 11.0
  • Xcode 13 or newer
  • Swift 5

Installation

Manualy

Add PVcbSdk.xcframework to Frameworks folder alt text

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/nhuson269/PVcbSdk-SwiftPackage.git", .upToNextMajor(from: "0.0.2"))
]

Usage

   import PVcbSdk
   
   let clientId = "xxxxxx"
   let clientSecret = "xxxxxx"
   let appUnitId = "xxxxxx"
   PVcomBank.configure(clientId, clientSecret, appUnitId)
   PVcomBank.shared.onPayment = { status in
       print("PVCOMBANK-PAYMENT:", status)
   }

   let orderCode = "xxxxxx"
   let orderAmount = "xxxxxx"
   let orderContent = "xxxxxx"
   let partnerName = "xxxxxx"
   PVcomBank.shared.payment(orderCode, orderAmount, orderContent, partnerName)

GitHub

link
Stars: 1
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics