From a583834f9277224ffe59126fee39b5ce114f3552 Mon Sep 17 00:00:00 2001 From: vamsii777 Date: Sun, 17 Nov 2024 14:18:15 +0530 Subject: [PATCH] docs: fix README --- README.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 09ea4fb..0b67c5e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Swift Versions](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvamsii777%2Fjuspay-kit%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/vamsii777/juspay-kit) [![Platforms](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvamsii777%2Fjuspay-kit%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/vamsii777/juspay-kit) -JuspayKit is a Swift package that simplifies integrating with Juspay's payment processing APIs, offering robust interfaces for customers, orders, payment methods, sessions, and refunds. It is designed for asynchronous and concurrent use cases, leveraging Swift's modern concurrency model. +Juspay Kit is a Swift package designed to facilitate seamless integration with Juspay’s payment processing APIs. > ⚠️ Note: This library is under active development, and features may be subject to change. Feedback, bug reports, and contributions are appreciated! @@ -31,23 +31,18 @@ dependencies: [ Then add `JuspayKit` as a dependency to your target: ```swift -.target(name: "JuspayKit", dependencies: ["juspay-kit"]), +.product(name: "JuspayKit", package: "juspay-kit") ``` ## Getting Started -### Importing the Library - -```swift -import JuspayKit -import AsyncHTTPClient -``` - ### Client Initialization The main entry point for interacting with Juspay APIs is `JuspayClient`. Initialize the client by providing an HTTP client, API key, merchant ID, and environment setting. ```swift +import JuspayKit + let client = JuspayClient( httpClient: HTTPClient.shared, apiKey: "your_api_key",