Create PhonePeSDK instance


Description: This method is used to create an instance of PhonePe. This method runs asynchronously and it is very fast. This instance is used for any calls to PhonePe's bridges.

Response Parameter



Parameter NameTypeDescription
speciesstringDescribes if the merchant is using the sdk for web or react native.
Can be either Constants.Species.native or Constants.Species.web
operatingSystemstringThe operatingSystem that the SDK is running on.
Can be either Constants.OS.ios or


import {PhonePe, Constants} from 'phonepesdk'
let operatingSystem = Constants.OS.ios //or
let sdk = await, operatingSystem)