{"_id":"@alpdeniz/iyzipay-js","_rev":"2-9f229daa605de3a6a47aac8ddf6cd17b","name":"@alpdeniz/iyzipay-js","dist-tags":{"alpha":"0.0.8-alpha","latest":"0.0.9"},"versions":{"0.0.8-alpha":{"name":"@alpdeniz/iyzipay-js","version":"0.0.8-alpha","keywords":["typescript","types","typesafe","iyzico","sdk","iyzipay"],"author":{"url":"https://github.com/codingwithmanny","name":"@codingwithmanny"},"license":"MIT","_id":"@alpdeniz/iyzipay-js@0.0.8-alpha","maintainers":[{"name":"alpdeniz","email":"alpdeniz@protonmail.com"}],"contributors":[{"name":"codingwithmanny"},{"name":"alpdeniz"}],"homepage":"https://github.com/alpdeniz/iyzipay-js/#readme","bugs":{"url":"https://github.com/alpdeniz/iyzipay-js/issues"},"dist":{"shasum":"7d59ba8bc7d6f3f73558183f0d0885158c10fbe6","tarball":"https://registry.npmjs.org/@alpdeniz/iyzipay-js/-/iyzipay-js-0.0.8-alpha.tgz","fileCount":110,"integrity":"sha512-aJt3iPrZ1+MrX89kQ7Ka2nnIu1OThWD7b+WUz9NWx4yppDBIp2FFkG7VravDcOfmT81UFyeyeCIbP4JV+NObaQ==","signatures":[{"sig":"MEUCIAwrdLvyHdLHM/VdWLlNoi//LfZnuzC3rtPxu/sAnpC8AiEAvbDAbr7X43CJxXa37GEIBisERteZMeDA84tDwb5EbOk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":319533},"main":"./_dist/_cjs/index.js","type":"module","types":"./_dist/types/index.js","export":{".":{"types":"./src/types/index.d.ts","import":"./src/_esm/index.js","default":"./src/_cjs/index.js"}},"module":"./_dist/_esm/index.js","engines":{"node":">=20"},"gitHead":"6deb7373f73628035db446993d52bc49783d4eed","scripts":{"dev":"ts-node test/example.ts","test":"vitest run src/requests/payments.iyzipos.test.ts","build":"bun build:cjs && bun build:esm && bun build:types","clean":"rimraf _dist","build:cjs":"rimraf _dist/_esm; ./node_modules/.bin/tsc --project ./tsconfig.build.json --module commonjs --outDir ./_dist/_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./_dist/_cjs/package.json","build:esm":"rimraf _dist/_esm; ./node_modules/.bin/tsc --project ./tsconfig.build.json --module es2015 --outDir ./_dist/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./_dist/_esm/package.json","changeset":"changeset","build:types":"rimraf _dist/types; ./node_modules/.bin/tsc --project ./tsconfig.build.json --module esnext --declarationDir ./_dist/types --emitDeclarationOnly --declaration --declarationMap","test:example":"ts-node test/example.ts","test:coverage":"vitest run --coverage src","changeset:publish":"changeset publish"},"_npmUser":{"name":"alpdeniz","email":"alpdeniz@protonmail.com"},"repository":{"url":"git+https://github.com/alpdeniz/iyzipay-js.git","type":"git"},"_npmVersion":"11.1.0","description":"Typescript Iyzico JS SDK","directories":{},"_nodeVersion":"20.17.0","dependencies":{"dotenv":"^16.4.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"bun":"^1.2.5","rimraf":"^5.0.5","vitest":"^1.6.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","changeset":"^0.2.6","typescript":"^5.4.5","@jest/types":"^29.6.3","tsconfig-paths":"^4.2.0","@changesets/cli":"^2.27.1","@tsconfig/node16":"^16.1.3","node-html-parser":"^6.1.13","@vitest/coverage-v8":"^1.6.0","@changesets/changelog-github":"^0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/iyzipay-js_0.0.8-alpha_1742970983062_0.880430904449433","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@alpdeniz/iyzipay-js","version":"0.0.9","type":"module","description":"Typescript Iyzico JS SDK","main":"./_dist/_cjs/index.js","module":"./_dist/_esm/index.js","types":"./_dist/types/index.js","contributors":[{"name":"codingwithmanny"},{"name":"alpdeniz"}],"author":{"name":"@codingwithmanny","url":"https://github.com/codingwithmanny"},"repository":{"type":"git","url":"git+https://github.com/alpdeniz/iyzipay-js.git"},"bugs":{"url":"https://github.com/alpdeniz/iyzipay-js/issues"},"homepage":"https://github.com/alpdeniz/iyzipay-js/#readme","license":"MIT","export":{".":{"types":"./src/types/index.d.ts","import":"./src/_esm/index.js","default":"./src/_cjs/index.js"}},"scripts":{"changeset":"changeset","changeset:publish":"changeset publish","build":"bun build:cjs && bun build:esm && bun build:types","build:cjs":"rimraf _dist/_esm; ./node_modules/.bin/tsc --project ./tsconfig.build.json --module commonjs --outDir ./_dist/_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./_dist/_cjs/package.json","build:esm":"rimraf _dist/_esm; ./node_modules/.bin/tsc --project ./tsconfig.build.json --module es2015 --outDir ./_dist/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./_dist/_esm/package.json","build:types":"rimraf _dist/types; ./node_modules/.bin/tsc --project ./tsconfig.build.json --module esnext --declarationDir ./_dist/types --emitDeclarationOnly --declaration --declarationMap","clean":"rimraf _dist","dev":"ts-node test/example.ts","test":"vitest run src/requests/payments.iyzipos.test.ts","test:coverage":"vitest run --coverage src","test:example":"ts-node test/example.ts"},"keywords":["typescript","types","typesafe","iyzico","sdk","iyzipay"],"devDependencies":{"@changesets/changelog-github":"^0.5.0","@changesets/cli":"^2.27.1","@jest/types":"^29.6.3","@tsconfig/node16":"^16.1.3","@vitest/coverage-v8":"^1.6.0","bun":"^1.2.5","changeset":"^0.2.6","node-html-parser":"^6.1.13","rimraf":"^5.0.5","ts-jest":"^29.1.2","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","typescript":"^5.4.5","vitest":"^1.6.0"},"dependencies":{"dotenv":"^16.4.5"},"engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@alpdeniz/iyzipay-js@0.0.9","gitHead":"6b025ce562a2bc64c040727212d8337b5679081a","_nodeVersion":"24.2.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-00iYiLPZwMMsNlTb/58/48PIdaXxzq4c0yy0yFkP92nD8ZVtEWkkQO7QCOfuiKOIhutl8FF/yAxWzHbNYpV5fA==","shasum":"6e58a57ec8f57346272abeff5f4f73081a9ed243","tarball":"https://registry.npmjs.org/@alpdeniz/iyzipay-js/-/iyzipay-js-0.0.9.tgz","fileCount":100,"unpackedSize":267211,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFT0EVLKH74Hcb/c1gaSSqN7OSxc9u+VmEgyT6kKaVuDAiB3nRkLWN1rOMVH+Oxim5RLuBWTv8jlTsSqrKKIomnpZQ=="}]},"_npmUser":{"name":"alpdeniz","email":"alpdeniz@protonmail.com"},"directories":{},"maintainers":[{"name":"alpdeniz","email":"alpdeniz@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/iyzipay-js_0.0.9_1757718965398_0.603732807843216"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-26T06:36:23.000Z","modified":"2025-09-12T23:16:05.737Z","0.0.8-alpha":"2025-03-26T06:36:23.257Z","0.0.9":"2025-09-12T23:16:05.569Z"},"bugs":{"url":"https://github.com/alpdeniz/iyzipay-js/issues"},"author":{"name":"@codingwithmanny","url":"https://github.com/codingwithmanny"},"license":"MIT","homepage":"https://github.com/alpdeniz/iyzipay-js/#readme","keywords":["typescript","types","typesafe","iyzico","sdk","iyzipay"],"repository":{"type":"git","url":"git+https://github.com/alpdeniz/iyzipay-js.git"},"description":"Typescript Iyzico JS SDK","contributors":[{"name":"codingwithmanny"},{"name":"alpdeniz"}],"maintainers":[{"name":"alpdeniz","email":"alpdeniz@protonmail.com"}],"readme":"# Iyzipay JS SDK\n\n> Türkçemi bağışlayın, bu metnin tamamı otomatik olarak çevrilmiştir.\n\nEN: An alternative TypeScript SDK for iyzico payment service.\nTR: iyzico ödeme servisi için alternatif bir TypeScript SDK.\n\n> NOTE EN: This project is not affiliated with iyzico. This is an unofficial SDK. This sdk is also still a work in progress.\n> NOT TR: Bu proje iyzico ile ilişkili değildir. Bu resmi olmayan bir SDK'dır. Bu sdk hala geliştirme aşamasındadır.\n\n**Goal EN:** Allow this SDK to work in other environments and frameworks like NextJS and potentially React Native.\n**Goal TR:** Bu SDK'nın NextJS ve potansiyel olarak React Native gibi diğer ortamlarda ve çerçevelerde çalışmasına izin vermek.\n\n## Requirements\n\n- NVM or Node.js `v20.12.2` or greater\n\n## Quick Setup\n\n### 1 - Install Depdenencies\n\n```bash\n# FROM: ./\n\npnpm install;\n```\n\n### 2 - Add Environment Variables\n\n```bash\n# FROM: ./\n\ncp .env.example .env;\n```\n\n**File:** `./.env`\n\n```bash\nIYZICO_API_KEY=\"<YOUR_IYZICO_API_KEY>\"\nIYZICO_SECRET_KEY=\"<YOUR_IYZICO_SECRET_KEY>\"\nIYZICO_BASE_URL=\"https://sandbox-api.iyzipay.com\" # Optional\n```\n\n### 3 - Example\n\n```typescript\nimport iyzico from '@alpdeniz/iyzipay-js';\n\nconst client = iyzico({\n    apiKey: process.env.IYZICO_API_KEY,\n    secretKey: process.env.IYZICO_SECRET_KEY,\n    uri: process.env.IYZICO_BASE_URL\n});\n\nasync function main() {\n    const response = await this.client.payments.binCheck({\n        locale: 'tr',\n        binNumber: bin as `${number}${number}${number}${number}${number}${number}`\n    })\n\n    // response.binNumber,\n    // response.cardType,\n    // response.cardBrand,\n    // response.cardAssociation,\n    // response.bankName,\n    // response.bankCode,\n    // response.commercial\n}\n\n\n\n\n\n### 4 - Run Tests\n\n#### Example Test\n\n```bash\n# FROM: ./\n\npnpm test:example;\n\n# [Expected Output]:\n# ...\n# {\n#   response: {\n#     status: \"success\",\n#     locale: \"tr\",\n#     systemTime: 1714445286140,\n#     conversationId: \"123456789\",\n#     token: \"<GENERATED_TOKEN>\",\n#     checkoutFormContent: \"<script type=\\\"text/javascript\\\">if (typeof iyziInit == 'undefined') {var iyziInit = {currency:\\\"TRY\\\",token:\\\"<GENERATED_TOKEN>\\\",price:1.20,locale:\\\"tr\\\",baseUrl:\\\"https://sandbox-api.iyzipay.com\\\", merchantGatewayBaseUrl:\\\"https://sandbox-merchantgw.iyzipay.com\\\", registerCardEnabled:false,bkmEnabled:true,bankTransferEnabled:false,bankTransferTimeLimit:{\\\"value\\\":5,\\\"type\\\":\\\"day\\\"},bankTransferRedirectUrl:\\\"https://www.merchant.com/callback\\\",bankTransferCustomUIProps:{},campaignEnabled:false,campaignMarketingUiDisplay:{},paymentSourceName:\\\"\\\",plusInstallmentResponseList:null,payWithIyzicoSingleTab:false,payWithIyzicoSingleTabV2:false,payWithIyzicoOneTab:false,newDesignEnabled:false,mixPaymentEnabled:true,creditCardEnabled:true,bankTransferAccounts:[],userCards:[],fundEnabled:false,memberCheckoutOtpData:{},force3Ds:false,isSandbox:true,storeNewCardEnabled:true,paymentWithNewCardEnabled:true,enabledApmTypes:[\\\"SOFORT\\\",\\\"IDEAL\\\",\\\"QIWI\\\",\\\"GIROPAY\\\"],payWithIyzicoUsed:false,payWithIyzicoEnabled:false,payWithIyzicoCustomUI:{},buyerName:\\\"John\\\",buyerSurname:\\\"Doe\\\",merchantInfo:\\\"\\\",merchantName:\\\"Sandbox Merchant Name - 60383\\\",cancelUrl:\\\"\\\",buyerProtectionEnabled:false,hide3DS:false,gsmNumber:\\\"\\\",email:\\\"email@email.com\\\",checkConsumerDetail:{},subscriptionPaymentEnabled:false,ucsEnabled:false,fingerprintEnabled:false,payWithIyzicoFirstTab:false,creditEnabled:false,payWithIyzicoLead:false,goBackUrl:\\\"\\\",metadata : {},createTag:function(){var iyziJSTag = document.createElement('script');iyziJSTag.setAttribute('src','https://sandbox-static.iyzipay.com/checkoutform/v2/bundle.js?v=1714445286139');document.head.appendChild(iyziJSTag);}};iyziInit.createTag();}</script>\",\n#     tokenExpireTime: 1800,\n#     paymentPageUrl: \"https://sandbox-cpp.iyzipay.com?token=<GENERATED_TOKEN>&lang=tr\"\n#   }\n# }\n# Script complete!\n```\n\n#### Tests\n\n```bash\n# FROM: ./\n\npnpm test;\n```\n\n## Building\n\n```bash\n# FROM: ./\n\npnpm build;\n\n# [Expected Output]:\n# ...\n```","readmeFilename":"README.md"}