0.1.0
PhonePeKit Release (Version 0.1.0)
PhonePeKit is a Swift package designed for Server Side Swift Apps, enabling seamless interaction with the PhonePe API. Elevating Server Side Swift with PhonePe API Integration.
📦 Installation
Include PhonePeKit in your project:
.package(url: "https://github.com/vamsii777/phonepe-kit.git", from: "0.1.0")
🚀 What's New?
PG Custom Checkout API
- Advancements in development for PAY, Check Status, and Refund features, enhancing custom payment handling.
Recurring Payments Enhanced
- Expanded capabilities for recurring payments management.
- Implemented features:
- PAY
- Check Status
- Refund
- Create User Subscription
- User Subscription Status
- Fetch All Subscriptions
- Verify VPA
- Ongoing development:
- Submit Auth Request
- Auth Request Status
- Recurring INIT
- Recurring Debit Execute
- Related status checks
Additional Functionalities
- VPA Validate: Seamless validation of VPAs.
- Payment Options: Easy retrieval of available payment options.
- Health Status: Real-time monitoring of the PhonePe PG service's health.
📝 Example Usage
import PhonePeKit
// Initialize PhonePeClient
let httpClient = HTTPClient(..)
let phonePeClient = PhonePeClient(httpClient: httpClient, saltKey: "your_salt_key", saltIndex: "your_salt_index", environment: .sandbox)
// Fetching all subscriptions
do {
let response = try await phonePeClient.subscriptions.fetchAllSubscriptions(merchantId: "PGTESTPAYUAT", merchantUserId: "MU123456789")
print("Fetched all subscriptions. Response: \(response)")
} catch {
print("Error fetching subscriptions: \(error)")
}
This snippet showcases fetching all subscriptions using PhonePeKit.
Acknowledgments
Sincere gratitude is extended to the StripeKit open-source community and its key contributor @Andrewangeta. Their invaluable insights and contributions to the framework and design principles have been a cornerstone of inspiration in shaping the development of PhonePeKit for the Swift ecosystem.