๐Ÿ“ฆ juspay / hyperswitch-client-core

Hyperswitch Client Core is an SDK for integrating with Hyperswitch, providing essential functionalities for seamless payment processing. It offers a lightweight, efficient, and easy-to-use interface for developers to interact with Hyperswitch services.

โ˜… 23 stars โ‘‚ 25 forks ๐Ÿ‘ 23 watching โš–๏ธ Apache License 2.0
hacktoberfest
๐Ÿ“ฅ Clone https://github.com/juspay/hyperswitch-client-core.git
HTTPS git clone https://github.com/juspay/hyperswitch-client-core.git
SSH git clone git@github.com:juspay/hyperswitch-client-core.git
CLI gh repo clone juspay/hyperswitch-client-core
preetamrevankar preetamrevankar chore: added detox card validation test case (#410) 89a85b2 3 days ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ __tests__
๐Ÿ“ .bundle
๐Ÿ“ .github
๐Ÿ“ .husky
๐Ÿ“ .yarn
๐Ÿ“ detox-tests
๐Ÿ“ docs
๐Ÿ“ ota
๐Ÿ“ patches
๐Ÿ“ reactNativeWeb
๐Ÿ“ src
๐Ÿ“„ .detoxrc.js
๐Ÿ“„ .en
๐Ÿ“„ .eslintrc.js
๐Ÿ“„ .gitignore
๐Ÿ“„ .gitleaks.toml
๐Ÿ“„ .gitmodules
๐Ÿ“„ .prettierrc.js
๐Ÿ“„ .yarnrc.yml
๐Ÿ“„ android
๐Ÿ“„ App.js
๐Ÿ“„ app.json
๐Ÿ“„ babel.config.js
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ Gemfile
๐Ÿ“„ index.js
๐Ÿ“„ ios
๐Ÿ“„ lefthook.yml
๐Ÿ“„ LICENSE
๐Ÿ“„ metro.config.js
๐Ÿ“„ mockServer.js
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ rescript.json
๐Ÿ“„ SECURITY.md
๐Ÿ“„ shared-code
๐Ÿ“„ tsconfig.json
๐Ÿ“„ yarn.lock
๐Ÿ“„ README.md

Hyperswitch Client Core

This repository hosts the essential components of the Hyperswitch SDK, which supports various platforms. Directly cloning this repository allows immediate access to a web-compatible version of the SDK.

Important: The official Hyperswitch Web SDK is maintained separately. Visit this link for details.

The hyperswitch-client-core is designed to function within a git submodule framework, facilitating integration with iOS, Android, React Native, Flutter, and Web platforms.

Setting up the SDK

For Android or iOS integration, initialize the necessary submodules using:

git submodule update --init --recursive

Installing Dependencies

To install required dependencies:

yarn install

Setting Up Environment Variables

  • Rename the .en file to .env
  • Add the following environment variables to the .env file:
`` .env HYPERSWITCH_PRODUCTION_URL="" HYPERSWITCH_INTEG_URL="" HYPERSWITCH_SANDBOX_URL="" HYPERSWITCH_LOGS_PATH="/logs/sdk" PROD_ASSETS_END_POINT="" SANDBOX_ASSETS_END_POINT="" INTEG_ASSETS_END_POINT="" %%CODEBLOCK2%%sh yarn run server # This starts the mock server yarn run re:start # This initiates the Rescript compiler %%CODEBLOCK3%%sh yarn run start %%CODEBLOCK4%%shell plutil -replace HyperswitchSource -string "LocalBundle" Info.plist %%CODEBLOCK5%% <key>HyperswitchSource</key> <string>LocalHosted</string> ``

Integration

Get started with our ๐Ÿ“š integration guides

Licenses