SDK for PVcomBank
Add PVcbSdk.xcframework to Frameworks folder
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"))
]
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)
link |
Stars: 1 |
Last commit: 1 week ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics