{"_id":"@bishaldahal/react-native-khalti-checkout","_rev":"21-2fc6e074d0085c3bf5e7409efd42c20d","name":"@bishaldahal/react-native-khalti-checkout","dist-tags":{"beta":"0.2.0-beta.5","latest":"0.2.2"},"versions":{"0.2.0-beta.0":{"name":"@bishaldahal/react-native-khalti-checkout","version":"0.2.0-beta.0","keywords":["react-native","expo","khalti","payment","payment-gateway","nepal","mobile-payment","ebanking","khalti-payment","khalti-checkout","android","typescript"],"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","_id":"@bishaldahal/react-native-khalti-checkout@0.2.0-beta.0","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"dist":{"shasum":"cdfe633e163120bc46c665f23d748b1068c76243","tarball":"https://registry.npmjs.org/@bishaldahal/react-native-khalti-checkout/-/react-native-khalti-checkout-0.2.0-beta.0.tgz","fileCount":41,"integrity":"sha512-T0diix8ZtpQvKzt3Y7YyCRgJEEHXkgCN451V0CsmtMKUI1A35J7LTdVxRY3kMmy1nLqppktIQHyuImROHh0Cpw==","signatures":[{"sig":"MEQCIBAu+iZWRTJTN6TKV3sBt3zMXxtgG3jQrDreyItEfR6+AiBb68VBFGTd8z3N6giem1TqiKy3R+YeRMnv67jI3d0j/A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108061},"main":"build/index.js","types":"build/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=16"},"gitHead":"33874b6d7b0e852bd5bdfa3a661b03e8ea938e0b","scripts":{"lint":"expo-module lint","test":"expo-module jest --passWithNoTests --ci","build":"expo-module tsc","clean":"expo-module clean","setup":"chmod +x scripts/setup.sh && scripts/setup.sh","commit":"git-cz","prepare":"expo-module prepare","release":"npx standard-version","open:ios":"xed example/ios","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","test:watch":"expo-module test","build:watch":"expo-module build","expo-module":"expo-module","release:dry":"npx standard-version --dry-run","open:android":"open -a \"Android Studio\" example/android","release:beta":"npm run build && npx standard-version --release-as minor --prerelease beta","release:alpha":"npm run build && npx standard-version --release-as minor --prerelease alpha","release:first":"npx standard-version --first-release","release:major":"npm run build && npx standard-version --release-as major","release:minor":"npm run build && npx standard-version --release-as minor","release:patch":"npm run build && npx standard-version --release-as patch","prepublishOnly":"expo-module prepublishOnly","release:prerelease":"npm run build && npx standard-version --prerelease"},"_npmUser":{"name":"bishaldahal","actor":{"name":"bishaldahal","type":"user","email":"bishaldahal@duck.com"},"email":"bishaldahal@duck.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"deprecated":"Initial Release","repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"_npmVersion":"11.3.0","description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","directories":{},"lint-staged":{"*.{json,md}":["prettier --write"],"*.{js,ts,tsx}":["npm run lint"]},"_nodeVersion":"22.12.0","dependencies":{"expo-modules-core":"^2.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"expo":"~53.0.0","husky":"^9.0.0","commitizen":"^4.3.1","lint-staged":"^15.0.0","@types/react":"~19.0.0","react-native":"0.79.1","@commitlint/cli":"^19.0.0","standard-version":"^9.5.0","expo-module-scripts":"^4.1.6","cz-conventional-changelog":"^3.3.0","conventional-changelog-cli":"^5.0.0","@commitlint/config-conventional":"^19.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"nativeDependencies":{"khalti-android-sdk":"com.khalti:checkout-sdk-android:<latest-version>"},"_npmOperationalInternal":{"tmp":"tmp/react-native-khalti-checkout_0.2.0-beta.0_1752063268874_0.22911024640403643","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-beta.1":{"name":"@bishaldahal/react-native-khalti-checkout","version":"0.2.0-beta.1","keywords":["react-native","expo","khalti","payment","payment-gateway","nepal","mobile-payment","ebanking","khalti-payment","khalti-checkout","android","typescript"],"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","_id":"@bishaldahal/react-native-khalti-checkout@0.2.0-beta.1","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"dist":{"shasum":"feada1a5e86a23470ba6b3e89076c7234278b99d","tarball":"https://registry.npmjs.org/@bishaldahal/react-native-khalti-checkout/-/react-native-khalti-checkout-0.2.0-beta.1.tgz","fileCount":41,"integrity":"sha512-ntQInbvNcAgqMOoDK1YE8/R5RvtjA125TWYdDYeNsQC1myXWQ9/dSkQdYsnzA6ci0DzC44gIiGc4mjCB1NMVbg==","signatures":[{"sig":"MEUCIQCBcHRLNjTBCehUk4ljg8atizyMdZDwF7J+Wv+TJr0SaQIgHyXrgZUW9VGC6gGPjkwWDz37SOq8xuXCSksLePXk70Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108180},"main":"build/index.js","types":"build/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=16"},"gitHead":"ad95a8d626878217cc4554e685be1d31c61f437c","scripts":{"lint":"expo-module lint","test":"expo-module jest --passWithNoTests --ci","build":"expo-module tsc","clean":"expo-module clean","setup":"chmod +x scripts/setup.sh && scripts/setup.sh","commit":"git-cz","prepare":"expo-module prepare","release":"npx standard-version","open:ios":"xed example/ios","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","test:watch":"expo-module test","build:watch":"expo-module build","expo-module":"expo-module","release:dry":"npx standard-version --dry-run","open:android":"open -a \"Android Studio\" example/android","release:beta":"npm run build && npx standard-version --release-as minor --prerelease beta","release:alpha":"npm run build && npx standard-version --release-as minor --prerelease alpha","release:first":"npx standard-version --first-release","release:major":"npm run build && npx standard-version --release-as major","release:minor":"npm run build && npx standard-version --release-as minor","release:patch":"npm run build && npx standard-version --release-as patch","prepublishOnly":"expo-module prepublishOnly","release:prerelease":"npm run build && npx standard-version --prerelease"},"_npmUser":{"name":"bishaldahal","actor":{"name":"bishaldahal","type":"user","email":"bishaldahal@duck.com"},"email":"bishaldahal@duck.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"deprecated":"Initial Release","repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"_npmVersion":"11.3.0","description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","directories":{},"lint-staged":{"*.{json,md}":["prettier --write"],"*.{js,ts,tsx}":["npm run lint"]},"_nodeVersion":"22.12.0","dependencies":{"expo-modules-core":"^2.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"expo":"~53.0.0","husky":"^9.0.0","commitizen":"^4.3.1","lint-staged":"^15.0.0","@types/react":"~19.0.0","react-native":"0.79.1","@commitlint/cli":"^19.0.0","standard-version":"^9.5.0","expo-module-scripts":"^4.1.6","cz-conventional-changelog":"^3.3.0","conventional-changelog-cli":"^5.0.0","@commitlint/config-conventional":"^19.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"nativeDependencies":{"khalti-android-sdk":"com.khalti:checkout-sdk-android:<latest-version>"},"_npmOperationalInternal":{"tmp":"tmp/react-native-khalti-checkout_0.2.0-beta.1_1752064832889_0.23042073274660413","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-beta.2":{"name":"@bishaldahal/react-native-khalti-checkout","version":"0.2.0-beta.2","keywords":["react-native","expo","khalti","payment","payment-gateway","nepal","mobile-payment","ebanking","khalti-payment","khalti-checkout","android","typescript"],"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","_id":"@bishaldahal/react-native-khalti-checkout@0.2.0-beta.2","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"dist":{"shasum":"6979f3f5c94ac74a3a94f84c63c2dc66e9e0cb58","tarball":"https://registry.npmjs.org/@bishaldahal/react-native-khalti-checkout/-/react-native-khalti-checkout-0.2.0-beta.2.tgz","fileCount":41,"integrity":"sha512-DVeALI3s6wwkH9ZG1c3yITd6LKQNTMb4urSLDj47hEuFlUM4zFOr8rpVYGYubZKwHFjsHl8trT7uqSzqpp8RDw==","signatures":[{"sig":"MEYCIQCDS/THSa37/kSHWP0D6lKykvisQ5gMr1cEb0MRwjAj1gIhALJrZgfJUVUuKnVq7OhLW6uPX+osJzCCWtshvJOXavhX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":126369},"main":"build/index.js","types":"build/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=16"},"gitHead":"46d660b6c057e3b14f48ec0d75f1597b41359851","scripts":{"lint":"expo-module lint","test":"expo-module jest --passWithNoTests --ci","build":"expo-module tsc","clean":"expo-module clean","setup":"chmod +x scripts/setup.sh && scripts/setup.sh","commit":"git-cz","prepare":"expo-module prepare","release":"npx standard-version","open:ios":"xed example/ios","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","test:watch":"expo-module test","build:watch":"expo-module build","expo-module":"expo-module","release:dry":"npx standard-version --dry-run","open:android":"open -a \"Android Studio\" example/android","release:beta":"npm run build && npx standard-version --release-as minor --prerelease beta","release:alpha":"npm run build && npx standard-version --release-as minor --prerelease alpha","release:first":"npx standard-version --first-release","release:major":"npm run build && npx standard-version --release-as major","release:minor":"npm run build && npx standard-version --release-as minor","release:patch":"npm run build && npx standard-version --release-as patch","prepublishOnly":"expo-module prepublishOnly","release:prerelease":"npm run build && npx standard-version --prerelease"},"_npmUser":{"name":"bishaldahal","actor":{"name":"bishaldahal","type":"user","email":"bishaldahal@duck.com"},"email":"bishaldahal@duck.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"deprecated":"Initial Release","repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"_npmVersion":"11.3.0","description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","directories":{},"lint-staged":{"*.{json,md}":["prettier --write"],"*.{js,ts,tsx}":["npm run lint"]},"_nodeVersion":"22.12.0","dependencies":{"expo-modules-core":"^2.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"expo":"~53.0.0","husky":"^9.0.0","commitizen":"^4.3.1","lint-staged":"^15.0.0","@types/react":"~19.0.0","react-native":"0.79.1","@commitlint/cli":"^19.0.0","standard-version":"^9.5.0","expo-module-scripts":"^4.1.6","cz-conventional-changelog":"^3.3.0","conventional-changelog-cli":"^5.0.0","@commitlint/config-conventional":"^19.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"nativeDependencies":{"khalti-android-sdk":"com.khalti:checkout-sdk-android:<latest-version>"},"_npmOperationalInternal":{"tmp":"tmp/react-native-khalti-checkout_0.2.0-beta.2_1752122497739_0.7207883313696537","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-beta.3":{"name":"@bishaldahal/react-native-khalti-checkout","version":"0.2.0-beta.3","keywords":["react-native","expo","khalti","payment-gateway","nepal","mobile-payment","react-native","khalti","khalti-checkout","react-native-khalti","khalti-react-native","khalti-payment-gateway","khalti-checkout-react-native","react-native-khalti-checkout","khalti-sdk-react-native","react-native-khalti-integration","react-native-nepali-payment-gateway","khalti-plugin","khalti-npm-package","khalti-react-native-example","install-khalti-react-native","react-native-payment-gateway","nepalese-payment-integration","khalti-react-native-module","react-native-payment-plugin"],"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","_id":"@bishaldahal/react-native-khalti-checkout@0.2.0-beta.3","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"dist":{"shasum":"5719b3d5be70ef7ae32ea122bd5c9a66ced58d44","tarball":"https://registry.npmjs.org/@bishaldahal/react-native-khalti-checkout/-/react-native-khalti-checkout-0.2.0-beta.3.tgz","fileCount":39,"integrity":"sha512-YplGtNl3NjzEhm7f5QgVyTGa7lrldbQ16mWmX5tTlfdd1aEOsKEjUnFZR0j1tqHdExYYZe9Pwn1n+7JRMOf8xA==","signatures":[{"sig":"MEUCIEWR2CORn1j6ArWYqcQE7mkzkVEHGWUSGRk7UPBrJxTCAiEAkBxUfPlk3PykOF1XyrWbtOLE+49V/iRmKxdQGHcsaKI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":112342},"main":"build/index.js","types":"build/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=16"},"gitHead":"f2df08644662ff1cd23b44a175382b5591d84be2","scripts":{"lint":"expo-module lint","test":"expo-module jest --passWithNoTests --ci","build":"expo-module tsc","clean":"expo-module clean","setup":"chmod +x scripts/setup.sh && scripts/setup.sh","commit":"git-cz","prepare":"expo-module prepare","release":"npx standard-version","open:ios":"xed example/ios","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","test:watch":"expo-module test","build:watch":"expo-module build","expo-module":"expo-module","release:dry":"npx standard-version --dry-run","open:android":"open -a \"Android Studio\" example/android","release:beta":"npm run build && npx standard-version --release-as minor --prerelease beta","release:alpha":"npm run build && npx standard-version --release-as minor --prerelease alpha","release:first":"npx standard-version --first-release","release:major":"npm run build && npx standard-version --release-as major","release:minor":"npm run build && npx standard-version --release-as minor","release:patch":"npm run build && npx standard-version --release-as patch","prepublishOnly":"expo-module prepublishOnly","release:prerelease":"npm run build && npx standard-version --prerelease"},"_npmUser":{"name":"bishaldahal","actor":{"name":"bishaldahal","type":"user","email":"bishaldahal@duck.com"},"email":"bishaldahal@duck.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"deprecated":"Initial Release","repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"_npmVersion":"11.3.0","description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","directories":{},"lint-staged":{"*.{json,md}":["prettier --write"],"*.{js,ts,tsx}":["npm run lint"]},"_nodeVersion":"22.12.0","dependencies":{"expo-modules-core":"^2.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"expo":"~53.0.0","husky":"^9.0.0","commitizen":"^4.3.1","lint-staged":"^15.0.0","@types/react":"~19.0.0","react-native":"0.79.1","@commitlint/cli":"^19.0.0","standard-version":"^9.5.0","expo-module-scripts":"^4.1.6","cz-conventional-changelog":"^3.3.0","conventional-changelog-cli":"^5.0.0","@commitlint/config-conventional":"^19.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"nativeDependencies":{"khalti-android-sdk":"com.khalti:checkout-sdk-android:<latest-version>"},"_npmOperationalInternal":{"tmp":"tmp/react-native-khalti-checkout_0.2.0-beta.3_1752127577373_0.19716705542875235","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-beta.4":{"name":"@bishaldahal/react-native-khalti-checkout","version":"0.2.0-beta.4","keywords":["react-native","expo","khalti","payment-gateway","nepal","mobile-payment","react-native","khalti","android","ios","checkout","native-module","example"],"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","_id":"@bishaldahal/react-native-khalti-checkout@0.2.0-beta.4","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"dist":{"shasum":"e0144e50e501f57ebc2fcb2d1f751b2df3e20123","tarball":"https://registry.npmjs.org/@bishaldahal/react-native-khalti-checkout/-/react-native-khalti-checkout-0.2.0-beta.4.tgz","fileCount":38,"integrity":"sha512-PUKCdThdOYzfcqVahyx1Q6yiggtNaOYDnW55YZApq4H19xgsbsPdaWU7tlOd9WhxGTdyiMh4zLR/c+f4RdcF6Q==","signatures":[{"sig":"MEUCIDTX+wUSwy+pg5EZ7EpEHKpHmhXCpUePHUp1KE1HWmKhAiEA8mZqTI6cbdgpJGsTO1oWU6wJJgRHCX2FnFCAGsUtML4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":109994},"main":"build/index.js","types":"build/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=16"},"gitHead":"0506e1d2aa34477196c1420b79059a1f8a34e6f1","scripts":{"lint":"expo-module lint","test":"expo-module jest --passWithNoTests --ci","build":"expo-module tsc","clean":"expo-module clean","setup":"chmod +x scripts/setup.sh && scripts/setup.sh","commit":"git-cz","prepare":"expo-module prepare","release":"npx standard-version","open:ios":"xed example/ios","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","test:watch":"expo-module test","build:watch":"expo-module build","expo-module":"expo-module","release:dry":"npx standard-version --dry-run","open:android":"open -a \"Android Studio\" example/android","release:beta":"npm run build && npx standard-version --release-as minor --prerelease beta","release:alpha":"npm run build && npx standard-version --release-as minor --prerelease alpha","release:first":"npx standard-version --first-release","release:major":"npm run build && npx standard-version --release-as major","release:minor":"npm run build && npx standard-version --release-as minor","release:patch":"npm run build && npx standard-version --release-as patch","prepublishOnly":"expo-module prepublishOnly","release:prerelease":"npm run build && npx standard-version --prerelease"},"_npmUser":{"name":"bishaldahal","actor":{"name":"bishaldahal","type":"user","email":"bishaldahal@duck.com"},"email":"bishaldahal@duck.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"_npmVersion":"11.3.0","description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","directories":{},"lint-staged":{"*.{json,md}":["prettier --write"],"*.{js,ts,tsx}":["npm run lint"]},"_nodeVersion":"22.12.0","dependencies":{"expo-modules-core":"^2.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"expo":"~53.0.0","husky":"^9.0.0","commitizen":"^4.3.1","lint-staged":"^15.0.0","@types/react":"~19.0.0","react-native":"0.79.1","@commitlint/cli":"^19.0.0","standard-version":"^9.5.0","expo-module-scripts":"^4.1.6","cz-conventional-changelog":"^3.3.0","conventional-changelog-cli":"^5.0.0","@commitlint/config-conventional":"^19.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"nativeDependencies":{"khalti-android-sdk":"com.khalti:checkout-sdk-android:<latest-version>"},"_npmOperationalInternal":{"tmp":"tmp/react-native-khalti-checkout_0.2.0-beta.4_1752145115429_0.062112789630165866","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Initial Release"},"0.2.0-beta.5":{"name":"@bishaldahal/react-native-khalti-checkout","version":"0.2.0-beta.5","keywords":["react-native","expo","khalti","payment-gateway","nepal","mobile-payment","react-native","khalti","android","ios","checkout","native-module","example"],"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","_id":"@bishaldahal/react-native-khalti-checkout@0.2.0-beta.5","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"dist":{"shasum":"b28e519ede2b221aac002ad076efac9b9245af8b","tarball":"https://registry.npmjs.org/@bishaldahal/react-native-khalti-checkout/-/react-native-khalti-checkout-0.2.0-beta.5.tgz","fileCount":41,"integrity":"sha512-kfS3v17/BARdKylorRfGhxjxcxKi/3htHF40FF9hre+Kum/DIjJjpYY3uCMuE5oOi1nmT46bRdHgrIWIz4bzeg==","signatures":[{"sig":"MEUCIBzzkX74Wpb9l5SHhOAarFiLesHEykKzO8Y516m1i0auAiEA3hymrH/+0fh0kFOOsdxjF+9Hv2lFMf/wN8LHeTivAPc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125771},"main":"build/index.js","types":"build/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=16"},"gitHead":"d90b40e24193c493bef9bee44e839d74d6d1c4be","scripts":{"lint":"expo-module lint","test":"expo-module jest --passWithNoTests --ci","build":"expo-module tsc","clean":"expo-module clean","setup":"chmod +x scripts/setup.sh && scripts/setup.sh","commit":"git-cz","prepare":"expo-module prepare","release":"npx standard-version","open:ios":"xed example/ios","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","test:watch":"expo-module test","build:watch":"expo-module build","expo-module":"expo-module","release:dry":"npx standard-version --dry-run","open:android":"open -a \"Android Studio\" example/android","release:beta":"npm run build && npx standard-version --release-as minor --prerelease beta","release:alpha":"npm run build && npx standard-version --release-as minor --prerelease alpha","release:first":"npx standard-version --first-release","release:major":"npm run build && npx standard-version --release-as major","release:minor":"npm run build && npx standard-version --release-as minor","release:patch":"npm run build && npx standard-version --release-as patch","prepublishOnly":"expo-module prepublishOnly","release:prerelease":"npm run build && npx standard-version --prerelease"},"_npmUser":{"name":"bishaldahal","email":"bishaldahal@duck.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"_npmVersion":"11.3.0","description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","directories":{},"lint-staged":{"*.{json,md}":["prettier --write"],"*.{js,ts,tsx}":["npm run lint"]},"_nodeVersion":"22.12.0","dependencies":{"expo-modules-core":"^2.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"expo":"~53.0.0","husky":"^9.0.0","commitizen":"^4.3.1","lint-staged":"^15.0.0","@types/react":"~19.0.0","react-native":"0.79.1","@commitlint/cli":"^19.0.0","standard-version":"^9.5.0","expo-module-scripts":"^4.1.6","cz-conventional-changelog":"^3.3.0","conventional-changelog-cli":"^5.0.0","@commitlint/config-conventional":"^19.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"nativeDependencies":{"khalti-android-sdk":"com.khalti:checkout-sdk-android:<latest-version>"},"_npmOperationalInternal":{"tmp":"tmp/react-native-khalti-checkout_0.2.0-beta.5_1753706901017_0.270815066614537","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bishaldahal/react-native-khalti-checkout","version":"0.2.0","keywords":["react-native","expo","khalti","payment-gateway","nepal","mobile-payment","react-native","khalti","android","ios","checkout","native-module","example"],"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","_id":"@bishaldahal/react-native-khalti-checkout@0.2.0","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"dist":{"shasum":"c0a96a2a35878019bc57960c8263ebcc511b6849","tarball":"https://registry.npmjs.org/@bishaldahal/react-native-khalti-checkout/-/react-native-khalti-checkout-0.2.0.tgz","fileCount":41,"integrity":"sha512-pheN3+FUtNBJz8lOJTQWOADCosEqf0TwamAeytqrIj5u5AuCoEM0TKliIHaxA3dsWMenIIB9GDJN4DVgv3j6Ag==","signatures":[{"sig":"MEQCIESgqIRE6oBeaxxYAcjZGLFfAhIJFPV643+A69OeYClXAiAOALdD6FIiFON/lS2lWw234Gn4T145MiEfmyVTb4pWag==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125983},"main":"build/index.js","types":"build/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=16"},"gitHead":"efef9f071e024ce92fd0c7690ffdf87eff233630","scripts":{"lint":"expo-module lint","test":"expo-module jest --passWithNoTests --ci","build":"expo-module tsc","clean":"expo-module clean","setup":"chmod +x scripts/setup.sh && scripts/setup.sh","commit":"git-cz","prepare":"expo-module prepare","release":"npx standard-version","open:ios":"xed example/ios","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","test:watch":"expo-module test","build:watch":"expo-module build","expo-module":"expo-module","release:dry":"npx standard-version --dry-run","open:android":"open -a \"Android Studio\" example/android","release:beta":"npm run build && npx standard-version --release-as minor --prerelease beta","release:alpha":"npm run build && npx standard-version --release-as minor --prerelease alpha","release:first":"npx standard-version --first-release","release:major":"npm run build && npx standard-version --release-as major","release:minor":"npm run build && npx standard-version --release-as minor","release:patch":"npm run build && npx standard-version --release-as patch","prepublishOnly":"expo-module prepublishOnly","release:prerelease":"npm run build && npx standard-version --prerelease"},"_npmUser":{"name":"bishaldahal","email":"bishaldahal@duck.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"deprecated":"Initial Release","repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"_npmVersion":"11.3.0","description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","directories":{},"lint-staged":{"*.{json,md}":["prettier --write"],"*.{js,ts,tsx}":["npm run lint"]},"_nodeVersion":"22.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"expo":"~53.0.0","husky":"^9.0.0","@eslint/js":"^9.34.0","commitizen":"^4.3.1","lint-staged":"^15.0.0","@types/react":"~19.0.0","react-native":"0.79.1","@commitlint/cli":"^19.0.0","@eslint/eslintrc":"^3.3.1","standard-version":"^9.5.0","expo-module-scripts":"^4.1.6","cz-conventional-changelog":"^3.3.0","conventional-changelog-cli":"^5.0.0","@commitlint/config-conventional":"^19.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"nativeDependencies":{"khalti-android-sdk":"com.khalti:checkout-sdk-android:<latest-version>"},"_npmOperationalInternal":{"tmp":"tmp/react-native-khalti-checkout_0.2.0_1756805804458_0.9301783108484416","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@bishaldahal/react-native-khalti-checkout","version":"0.2.1","keywords":["react-native","expo","khalti","payment-gateway","nepal","mobile-payment","react-native","khalti","android","ios","checkout","native-module","example"],"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","_id":"@bishaldahal/react-native-khalti-checkout@0.2.1","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"dist":{"shasum":"23d145e5a288b1652c9aa02324819872ee7610f6","tarball":"https://registry.npmjs.org/@bishaldahal/react-native-khalti-checkout/-/react-native-khalti-checkout-0.2.1.tgz","fileCount":41,"integrity":"sha512-Py06P0kr8x4npNIKT+QpOln5iRVxrwQw70di45Kot5E56UOx41+4Xfr244Aqxb5Urg1LEgCpW2RTRa+oNKEPbQ==","signatures":[{"sig":"MEYCIQC5Zn/t2CjE9ds727F/dAYKeMtI5z2BCTo84Mmyaz82/wIhAPxHeHPHfGqZOJv2qi1QzBQrc6HfsgZ8dyABbLhsJ3bM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":114363},"main":"build/index.js","types":"build/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=16"},"gitHead":"a55f9c339284e681749dc4abf8339470f1c8fe02","scripts":{"lint":"expo-module lint","test":"expo-module jest --passWithNoTests --ci","build":"expo-module tsc","clean":"expo-module clean","setup":"chmod +x scripts/setup.sh && scripts/setup.sh","commit":"git-cz","prepare":"expo-module prepare","release":"npx standard-version","open:ios":"xed example/ios","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","test:watch":"expo-module test","build:watch":"expo-module build","expo-module":"expo-module","release:dry":"npx standard-version --dry-run","open:android":"open -a \"Android Studio\" example/android","release:beta":"npm run build && npx standard-version --release-as minor --prerelease beta","release:alpha":"npm run build && npx standard-version --release-as minor --prerelease alpha","release:first":"npx standard-version --first-release","release:major":"npm run build && npx standard-version --release-as major","release:minor":"npm run build && npx standard-version --release-as minor","release:patch":"npm run build && npx standard-version --release-as patch","prepublishOnly":"expo-module prepublishOnly","release:prerelease":"npm run build && npx standard-version --prerelease"},"_npmUser":{"name":"bishaldahal","email":"bishaldahal@duck.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"_npmVersion":"11.3.0","description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","directories":{},"lint-staged":{"*.{json,md}":["prettier --write"],"*.{js,ts,tsx}":["npm run lint"]},"_nodeVersion":"22.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"expo":"~53.0.0","husky":"^9.0.0","@eslint/js":"^9.34.0","commitizen":"^4.3.1","lint-staged":"^15.0.0","@types/react":"~19.0.0","react-native":"0.79.1","@commitlint/cli":"^19.0.0","@eslint/eslintrc":"^3.3.1","standard-version":"^9.5.0","expo-module-scripts":"^4.1.6","cz-conventional-changelog":"^3.3.0","conventional-changelog-cli":"^5.0.0","@commitlint/config-conventional":"^19.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"nativeDependencies":{"khalti-android-sdk":"com.khalti:checkout-sdk-android:<latest-version>"},"_npmOperationalInternal":{"tmp":"tmp/react-native-khalti-checkout_0.2.1_1757076407528_0.057728482962362326","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@bishaldahal/react-native-khalti-checkout","version":"0.2.2","keywords":["react-native","expo","khalti","payment-gateway","nepal","mobile-payment","react-native","khalti","android","ios","checkout","native-module","example"],"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","_id":"@bishaldahal/react-native-khalti-checkout@0.2.2","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"dist":{"shasum":"d1b5972cb83d0402c0af6803e3111a857697cb76","tarball":"https://registry.npmjs.org/@bishaldahal/react-native-khalti-checkout/-/react-native-khalti-checkout-0.2.2.tgz","fileCount":41,"integrity":"sha512-2MaZ4ZvmK1JOEzk7MiQBNP7v6FfmjQP4QG2TlC1E8gYRM2jtz/nEPkR1Kc2xSBZmnZz1KZg8DTvKZqZWFG0Q8Q==","signatures":[{"sig":"MEYCIQD1Ahm8RQ8b5wHGFgQB4XxF9gRFkKKgYAEoijxMH7GhAwIhAKa1h4w5bgILnCKpoXhFuvEcvoz5XUdweGvr0HY7tvwZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":114358},"main":"build/index.js","types":"build/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"engines":{"node":">=16"},"gitHead":"2991f5acce6444884f3c025432394b6d69e721e1","scripts":{"lint":"expo-module lint","test":"expo-module jest --passWithNoTests --ci","build":"expo-module tsc","clean":"expo-module clean","setup":"chmod +x scripts/setup.sh && scripts/setup.sh","commit":"git-cz","prepare":"expo-module prepare","release":"npx standard-version","open:ios":"xed example/ios","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","test:watch":"expo-module test","build:watch":"expo-module build","expo-module":"expo-module","release:dry":"npx standard-version --dry-run","open:android":"open -a \"Android Studio\" example/android","release:beta":"npm run build && npx standard-version --release-as minor --prerelease beta","release:alpha":"npm run build && npx standard-version --release-as minor --prerelease alpha","release:first":"npx standard-version --first-release","release:major":"npm run build && npx standard-version --release-as major","release:minor":"npm run build && npx standard-version --release-as minor","release:patch":"npm run build && npx standard-version --release-as patch","prepublishOnly":"expo-module prepublishOnly","release:prerelease":"npm run build && npx standard-version --prerelease"},"_npmUser":{"name":"bishaldahal","email":"bishaldahal@duck.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"_npmVersion":"11.3.0","description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","directories":{},"lint-staged":{"*.{json,md}":["prettier --write"],"*.{js,ts,tsx}":["npm run lint"]},"_nodeVersion":"22.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"expo":"~53.0.0","husky":"^9.0.0","@eslint/js":"^9.34.0","commitizen":"^4.3.1","lint-staged":"^15.0.0","@types/react":"~19.0.0","react-native":"0.79.1","@commitlint/cli":"^19.0.0","@eslint/eslintrc":"^3.3.1","standard-version":"^9.5.0","expo-module-scripts":"^4.1.6","cz-conventional-changelog":"^3.3.0","conventional-changelog-cli":"^5.0.0","@commitlint/config-conventional":"^19.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"nativeDependencies":{"khalti-android-sdk":"com.khalti:checkout-sdk-android:<latest-version>"},"_npmOperationalInternal":{"tmp":"tmp/react-native-khalti-checkout_0.2.2_1757302067520_0.5846141131646603","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-07-09T12:14:28.777Z","modified":"2025-11-23T01:53:55.396Z","0.2.0-beta.0":"2025-07-09T12:14:29.067Z","0.2.0-beta.1":"2025-07-09T12:40:33.073Z","0.2.0-beta.2":"2025-07-10T04:41:37.918Z","0.2.0-beta.3":"2025-07-10T06:06:17.545Z","0.2.0-beta.4":"2025-07-10T10:58:35.596Z","0.2.0-beta.5":"2025-07-28T12:48:21.258Z","0.2.0":"2025-09-02T09:36:44.635Z","0.2.1":"2025-09-05T12:46:47.708Z","0.2.2":"2025-09-08T03:27:47.710Z"},"bugs":{"url":"https://github.com/bishaldahal/react-native-khalti-checkout/issues"},"author":{"url":"https://github.com/bishaldahal","name":"Bishal Dahal","email":"bishaldahal@duck.com"},"license":"MIT","homepage":"https://github.com/bishaldahal/react-native-khalti-checkout#readme","keywords":["react-native","expo","khalti","payment-gateway","nepal","mobile-payment","react-native","khalti","android","ios","checkout","native-module","example"],"repository":{"url":"git+https://github.com/bishaldahal/react-native-khalti-checkout.git","type":"git"},"description":"React Native/Expo SDK for Khalti Payment Gateway. Accept payments from Khalti, eBanking, mobile banking, and cards in Nepal.","maintainers":[{"name":"bishaldahal","email":"bishaldahal@duck.com"}],"readme":"# React Native Khalti Checkout\n\n<div align=\"center\">\n\n[![npm version](https://badge.fury.io/js/@bishaldahal%2Freact-native-khalti-checkout.svg)](https://badge.fury.io/js/@bishaldahal%2Freact-native-khalti-checkout)\n[![npm downloads](https://img.shields.io/npm/dm/@bishaldahal/react-native-khalti-checkout.svg)](https://www.npmjs.com/package/@bishaldahal/react-native-khalti-checkout)\n![Platform](https://img.shields.io/badge/platform-android%20%7C%20ios-green.svg)\n[![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/bishaldahal/react-native-khalti-checkout/blob/main/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/bishaldahal/react-native-khalti-checkout/pulls)\n\n**React Native/Expo SDK for Khalti Payment Gateway**\n\n_Accept payments from Khalti wallet, eBanking, mobile banking, and cards in your Expo applications._\n\n[🚀 Quick Start](#-quick-start) • [📖 Usage](#usage) • [💡 Examples](#example-app) • [🐛 Issues](https://github.com/bishaldahal/react-native-khalti-checkout/issues)\n\n</div>\n\n## 🚀 Quick Start\n\nHere's how to get Khalti payments working in your Expo app:\n\n### 1. Installation\n\n```bash\nnpx expo install @bishaldahal/react-native-khalti-checkout\n```\n\n### 2. Build Development Client\n\n> **⚠️ Important**: This package requires native code and **does not work with Expo Go**.\n\n```bash\n# Create development build\neas build --profile development --platform android\n\n# Or build locally\nnpx expo run:android\n```\n\n### 3. Basic Usage\n\n```typescript\nimport KhaltiPaymentSdk from \"@bishaldahal/react-native-khalti-checkout\";\n\nconst handlePayment = async () => {\n  try {\n    const result = await KhaltiPaymentSdk.startPayment({\n      publicKey: \"your_khalti_public_key\",\n      pidx: \"payment_id_from_backend\", // Get this from your server\n      environment: \"TEST\", // Use \"PROD\" for production\n    });\n    console.log(\"Payment successful:\", result);\n  } catch (error) {\n    console.error(\"Payment failed:\", error);\n  }\n};\n```\n\nThat's the basic setup. [Jump to detailed setup](#setup-guide) or [see complete example](#usage).\n\n## ✨ Features\n\n- **🔧 Expo Compatible** - Fully tested with Expo SDK 52 & 53 (may work with others)\n- **🚀 Easy Integration** - Simple API with TypeScript support\n- **🔒 Secure & Reliable** - Built-in validation & error handling\n- **⚡ Real-time Events** - Listen to payment events instantly\n- **🌍 Multi-environment** - TEST and PROD environments\n- **📱 Native Performance** - Uses Khalti's official native SDKs\n- **💾 Memory Safe** - Automatic cleanup of event listeners\n\n## 📋 Prerequisites\n\n| Item               | Requirement                       | Link                                                                                       |\n| ------------------ | --------------------------------- | ------------------------------------------------------------------------------------------ |\n| **Platform**       | Expo SDK 52+ / React Native 0.72+ | [Expo Docs](https://docs.expo.dev)                                                         |\n| **OS Support**     | Android 5.0+ (API 21) & iOS 15.1+ | -                                                                                          |\n| **Node.js**        | Version 16 or higher              | [Download](https://nodejs.org)                                                             |\n| **Khalti Account** | Merchant account with API keys    | [Test](https://test-admin.khalti.com/#/join/merchant) \\| [Prod](https://admin.khalti.com/) |\n| **Development**    | Expo Development Build            | [Guide](#setup-guide)                                                                     |\n\n### Environment Variables\n\n| Variable            | Description                      | Example                 | Required     |\n| ------------------- | -------------------------------- | ----------------------- | ------------ |\n| `KHALTI_PUBLIC_KEY` | Public key from Khalti dashboard | `test_public_key_xxxxx` | ✅           |\n| `KHALTI_SECRET_KEY` | Secret key (backend only)        | `test_secret_key_xxxxx` | ✅ (Backend) |\n\n## Setup Guide\n\n> **⚠️ Important**: This SDK only works with **Expo Development Builds** (not Expo Go) and is fully tested with **Expo SDK 52 & 53**. Compatible with other versions but not guaranteed.\n\n### For New Projects\n\n```bash\n# Create new Expo project with latest SDK\nnpx create-expo-app@latest MyKhaltiApp --template blank-typescript\ncd MyKhaltiApp\n\n# Install Khalti SDK\nnpx expo install @bishaldahal/react-native-khalti-checkout\n\n# Install development build dependencies\nnpx expo install expo-dev-client\nnpm install -g @expo/eas-cli\n```\n\n### For Existing Projects\n\n```bash\n# Install Khalti SDK\nnpx expo install @bishaldahal/react-native-khalti-checkout\n\n# Install development build dependencies\nnpx expo install expo-dev-client\nnpm install -g @expo/eas-cli\n```\n\n### Configure Your Project\n\n**1. Update app.json/app.config.js:**\n\n```json\n{\n  \"expo\": {\n    \"name\": \"Your App Name\",\n    \"slug\": \"your-app-slug\",\n    \"version\": \"1.0.0\",\n    \"platforms\": [\"android\", \"ios\"],\n    \"android\": {\n      \"package\": \"com.yourcompany.yourapp\",\n      \"versionCode\": 1,\n      \"compileSdkVersion\": 34,\n      \"targetSdkVersion\": 34,\n      \"minSdkVersion\": 21\n    },\n    \"ios\": {\n      \"bundleIdentifier\": \"com.yourcompany.yourapp\"\n    },\n    \"plugins\": [\"expo-dev-client\"]\n  }\n}\n```\n\n**2. Create development build:**\n\n```bash\n# Setup EAS (first time only)\neas login\neas init\n\n# Build for Android (recommended for testing)\neas build --profile development --platform android\n\n# Install the APK on your device when build completes\n```\n\n**3. Start development:**\n\n```bash\n# Start development server\nnpx expo start --dev-client\n\n# Open on your device with the custom development build\n```\n\n## Usage\n\n### Complete Payment Implementation\n\nHere's a more complete example with event listeners and error handling:\n\n```typescript\nimport React, { useEffect, useState } from \"react\";\nimport { View, Button, Alert, Text } from \"react-native\";\nimport KhaltiPaymentSdk from \"@bishaldahal/react-native-khalti-checkout\";\n\nexport default function PaymentScreen() {\n  const [loading, setLoading] = useState(false);\n\n  useEffect(() => {\n    // Set up event listeners\n    const successSubscription = KhaltiPaymentSdk.onPaymentSuccess((payload) => {\n      console.log(\"Payment successful:\", payload);\n      Alert.alert(\"Success\", `Transaction ID: ${payload.txnId}`);\n      setLoading(false);\n    });\n\n    const errorSubscription = KhaltiPaymentSdk.onPaymentError((payload) => {\n      console.log(\"Payment failed:\", payload);\n      Alert.alert(\n        \"Payment Failed\",\n        payload.error_description || \"Unknown error\"\n      );\n      setLoading(false);\n    });\n\n    const cancelSubscription = KhaltiPaymentSdk.onPaymentCancel((payload) => {\n      console.log(\"Payment cancelled:\", payload);\n      Alert.alert(\"Payment Cancelled\", \"You cancelled the payment\");\n      setLoading(false);\n    });\n\n    // Cleanup subscriptions\n    return () => {\n      successSubscription.remove();\n      errorSubscription.remove();\n      cancelSubscription.remove();\n    };\n  }, []);\n\n  // WARNING: This should be done from your backend in production\n  const createPaymentInBackend = async (amount: number) => {\n    // In production, make this API call from your backend server\n    const response = await fetch(\"YOUR_BACKEND_URL/create-khalti-payment\", {\n      method: \"POST\",\n      headers: { \"Content-Type\": \"application/json\" },\n      body: JSON.stringify({\n        amount: amount,\n        orderId: `order-${Date.now()}`, // Unique order ID from the backend\n        customerInfo: {\n          name: \"John Doe\",\n          email: \"john@example.com\",\n          phone: \"9800000000\",\n        },\n      }),\n    });\n\n    const data = await response.json();\n    return data.pidx;\n  };\n\n  // Alternative: Frontend payment initiation (FOR DEMO/TESTING ONLY)\n  const createPaymentFromFrontend = async (amount: number) => {\n    try {\n      const response = await fetch(\n        \"https://a.khalti.com/api/v2/epayment/initiate/\",\n        {\n          method: \"POST\",\n          headers: {\n            Authorization: \"key test_secret_key_your_secret_key_here\", // NEVER do this in production\n            \"Content-Type\": \"application/json\",\n          },\n          body: JSON.stringify({\n            return_url: \"https://example.com/payment/\",\n            website_url: \"https://example.com/\",\n            amount: amount * 100, // Convert to paisa\n            purchase_order_id: `order-${Date.now()}`,\n            purchase_order_name: \"Test Product\",\n            customer_info: {\n              name: \"John Doe\",\n              email: \"john@example.com\",\n              phone: \"9800000000\",\n            },\n          }),\n        }\n      );\n\n      const data = await response.json();\n      if (!response.ok) {\n        throw new Error(data.detail || \"Payment initialization failed\");\n      }\n\n      return data.pidx;\n    } catch (error) {\n      throw new Error(`Failed to create payment: ${error.message}`);\n    }\n  };\n\n  const handlePayment = async () => {\n    setLoading(true);\n    try {\n      // Option 1: Get pidx from your backend (RECOMMENDED)\n      // const pidx = await createPaymentInBackend(100);\n\n      // Option 2: Frontend initiation (DEMO ONLY - NOT for production)\n      const pidx = await createPaymentFromFrontend(100);\n\n      // Start payment with Khalti SDK\n      await KhaltiPaymentSdk.startPayment({\n        publicKey: \"test_public_key_your_key_here\",\n        pidx: pidx,\n        environment: \"TEST\", // Use \"PROD\" for production\n      });\n    } catch (error) {\n      console.error(\"Payment error:\", error);\n      Alert.alert(\"Error\", error.message);\n      setLoading(false);\n    }\n  };\n\n  return (\n    <View\n      style={{\n        flex: 1,\n        justifyContent: \"center\",\n        alignItems: \"center\",\n        padding: 20,\n      }}\n    >\n      <Text style={{ fontSize: 18, marginBottom: 20 }}>\n        Khalti Payment Demo\n      </Text>\n\n      <Button\n        title={loading ? \"Processing...\" : \"Pay NPR 100\"}\n        onPress={handlePayment}\n        disabled={loading}\n      />\n\n      <Text\n        style={{\n          marginTop: 20,\n          fontSize: 12,\n          color: \"gray\",\n          textAlign: \"center\",\n        }}\n      >\n        Note: This demo includes frontend payment initiation for testing.{\"\\n\"}\n        In production, always create payments from your backend server.\n      </Text>\n    </View>\n  );\n}\n```\n\n### Configuration Options\n\n```typescript\ninterface PaymentArgs {\n  publicKey: string; // Your Khalti public key\n  pidx: string; // Payment identifier from backend\n  environment?: \"TEST\" | \"PROD\"; // Default: 'TEST'\n}\n```\n\n### Event Response Types\n\n```typescript\n// Success response\ninterface PaymentSuccessPayload {\n  pidx: string;\n  txnId: string;\n  amount: number;\n  mobile: string;\n  status: string;\n  timestamp: number;\n}\n\n// Error response\ninterface PaymentErrorPayload {\n  error_key: string;\n  error_description: string;\n  timestamp: number;\n}\n\n// Cancel response\ninterface PaymentCancelPayload {\n  reason?: string;\n  timestamp: number;\n}\n```\n\n## Testing\n\n### Test Credentials\n\nFor testing in the sandbox environment, use these:\n\n| Field         | Value                        | Notes                     |\n| ------------- | ---------------------------- | ------------------------- |\n| **Khalti ID** | `9800000000` to `9800000005` | Any of these test numbers |\n| **MPIN**      | `1111`                       | 4-digit PIN               |\n| **OTP**       | `987654`                     | 6-digit verification code |\n\n## Common Issues & Solutions\n\n**\"Module not found\" error**\n\nYou need to rebuild your development client after installing the package:\n\n```bash\n# Clear cache and rebuild\nnpx expo start --clear\neas build --profile development --platform android --clear-cache\n```\n\n**Payment not starting**\n\nCheck these common issues:\n\n- Verify your public key is correct\n- Make sure the PIDX is valid and from your backend\n- Check your network connection\n- Validate the environment setting (TEST vs PROD)\n\n## Security Best Practices\n\n### ✅ Do This\n\n- Use public keys only in mobile apps\n- Create payments from your backend server\n- Verify payments server-side\n- Use HTTPS for all API communications\n- Validate payment status in your backend\n\n### ❌ Don't Do This\n\n- Never put secret keys in mobile apps\n- Don't rely only on client-side payment verification\n- Don't store sensitive payment data locally\n\n## 📱 Platform Support\n\n| Platform    | Status          | SDK Version | Notes                       |\n| ----------- | --------------- | ----------- | --------------------------- |\n| **Android** | Fully Supported | API 21+     | Works best for testing      |\n| **iOS**     | Fully Supported | iOS 15.1+   | Full native SDK integration |\n\n### Compatibility Matrix\n\n| Expo SDK  | React Native | Node.js | Status              |\n| --------- | ------------ | ------- | ------------------- |\n| **52-53** | 0.72+        | 16+     | ✅ **Fully Tested** |\n| 49-51     | 0.70-0.71    | 16+     | ⚠️ May work         |\n| < 49      | < 0.70       | < 16    | ❌ Not supported    |\n\n## 📖 API Reference\n\n### Core Methods\n\n| Method                       | Parameters    | Returns                          | Description                      |\n| ---------------------------- | ------------- | -------------------------------- | -------------------------------- |\n| `startPayment(args)`         | `PaymentArgs` | `Promise<PaymentSuccessPayload>` | Initiates payment process        |\n| `onPaymentSuccess(callback)` | `Function`    | `Subscription`                   | Listen for successful payments   |\n| `onPaymentError(callback)`   | `Function`    | `Subscription`                   | Listen for payment errors        |\n| `onPaymentCancel(callback)`  | `Function`    | `Subscription`                   | Listen for payment cancellations |\n| `closePayment()`             | None          | `Promise<void>`                  | Closes current payment session   |\n\n### Utility Methods\n\n```typescript\n// Clean up all event listeners\nKhaltiPaymentSdk.removeAllListeners();\n\n// Check if SDK is ready\nconst isReady = KhaltiPaymentSdk.isReady();\n```\n\n## Example App\n\nCheck out the [example application](https://github.com/bishaldahal/react-native-khalti-checkout/tree/main/example) for a complete implementation with:\n\n- 🔧 Complete configuration setup\n- 💳 Payment flow implementation\n- 🚨 Error handling patterns\n- 🎨 UI integration examples\n\n### Run the Example\n\n```bash\ngit clone https://github.com/bishaldahal/react-native-khalti-checkout.git\ncd react-native-khalti-checkout/example\nnpm install\nnpx expo run:android\n```\n\n## 🤝 Contributing\n\nWe welcome contributions!\n\n### How to contribute\n\n```bash\n# Fork and clone the repository\ngit clone https://github.com/your-username/react-native-khalti-checkout.git\ncd react-native-khalti-checkout\nnpm install\n\n# Run example app\ncd example && npm install && npx expo run:android\n```\n\n### Guidelines\n\n- Follow existing code style\n- Add tests for new features\n- Update documentation when needed\n- Test on real devices when possible\n\nSee [Contributing Guide](CONTRIBUTING.md) for more details.\n\n## 📞 Support\n\nNeed help? Here are your options:\n\n| Resource             | Description          | Link                                                                                          |\n| -------------------- | -------------------- | --------------------------------------------------------------------------------------------- |\n| 📚 **Documentation** | Official Khalti docs | [docs.khalti.com](https://docs.khalti.com/)                                                   |\n| 🐛 **Bug Reports**   | Report issues        | [GitHub Issues](https://github.com/bishaldahal/react-native-khalti-checkout/issues)           |\n| 💬 **Discussions**   | Community support    | [GitHub Discussions](https://github.com/bishaldahal/react-native-khalti-checkout/discussions) |\n| **Email**            | Direct support       | support@khalti.com                                                                            |\n\n### Links\n\n- [Repository](https://github.com/bishaldahal/react-native-khalti-checkout)\n- [NPM Package](https://www.npmjs.com/package/@bishaldahal/react-native-khalti-checkout)\n- [License](LICENSE)\n\nIf you find this helpful, consider giving it a star on GitHub!\n\n## License\n\nThis project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.\n\n### 📋 Third-Party Notices\n\nThis package uses the official Khalti Android SDK. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for full license information.\n\n---\n\n<div align=\"center\">\n\n### 🇳🇵 Made with ❤️ for the Nepalese Developer Community\n\n**Found this helpful? Give it a ⭐ on GitHub!**\n\n[![GitHub stars](https://img.shields.io/github/stars/bishaldahal/react-native-khalti-checkout?style=social)](https://github.com/bishaldahal/react-native-khalti-checkout/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/bishaldahal/react-native-khalti-checkout?style=social)](https://github.com/bishaldahal/react-native-khalti-checkout/network/members)\n\n_Happy Coding! 🚀_\n\n</div>\n","readmeFilename":"README.md"}