{"id":18543306,"url":"https://github.com/fastuptime/quickpos","last_synced_at":"2025-04-09T18:32:29.476Z","repository":{"id":247779640,"uuid":"826794070","full_name":"fastuptime/QuickPos","owner":"fastuptime","description":"QuickPos, farklı ödeme sağlayıcılarını destekleyen güçlü bir ödeme entegrasyon modülüdür.","archived":false,"fork":false,"pushed_at":"2024-09-09T22:23:34.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-10T03:01:07.311Z","etag":null,"topics":["payment-gateway","payment-gateways","paypal","paytr","quickpos","sanalpos","vallet","virtual-pos"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/quickpos","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastuptime.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-10T11:45:50.000Z","updated_at":"2024-09-09T22:23:37.000Z","dependencies_parsed_at":"2024-07-10T15:29:54.186Z","dependency_job_id":"37de6c24-8a0a-4e32-a3b2-75e8fa6c1766","html_url":"https://github.com/fastuptime/QuickPos","commit_stats":null,"previous_names":["fastuptime/quickpos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastuptime%2FQuickPos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastuptime%2FQuickPos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastuptime%2FQuickPos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastuptime%2FQuickPos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastuptime","download_url":"https://codeload.github.com/fastuptime/QuickPos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223407899,"owners_count":17140562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["payment-gateway","payment-gateways","paypal","paytr","quickpos","sanalpos","vallet","virtual-pos"],"created_at":"2024-11-06T20:13:23.868Z","updated_at":"2025-04-09T18:32:29.470Z","avatar_url":"https://github.com/fastuptime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💳 QuickPos 🚀\r\n\r\nQuickPos, farklı ödeme sağlayıcılarını destekleyen güçlü bir ödeme entegrasyon modülüdür. Şu anda PayTR, Shopier, Cryptomus, Payeer, Papara, Anypay, EsnekPos, İyzico, PayMaya, FedaPay sağlayıcısını desteklemektedir ve gelecekte birçok yeni sağlayıcı ile özellik eklemeyi planlamaktadır. Yol haritamıza göz atarak gelecek özellikleri keşfedebilirsiniz.\r\n\r\n\r\n- SpeedSMM.COM Tarafın'dan Geliştirilmektedir.\r\n\r\n---\r\n\r\n## ✨ Özellikler\r\n\r\n- 🔌 **Çoklu Ödeme Sağlayıcı Desteği**: Birden fazla ödeme sağlayıcı ile uyumlu.\r\n- 🛡️ **Güvenli Ödeme İşlemleri**: Güvenli ve sorunsuz ödeme işlemleri.\r\n- 🔄 **Kolay Entegrasyon**: Hızlı ve basit entegrasyon.\r\n- 📊 **Detaylı Ödeme Raporları**: Gelişmiş raporlama özellikleri.\r\n- 💼 **İşletmeler için Özelleştirilebilir Çözümler**: Özel ihtiyaçlara yönelik çözümler.\r\n\r\n---\r\n\r\n## 📦 Kurulum \r\n\r\n```bash\r\nnpm install quickpos\r\n```\r\n\r\n---\r\n\r\n## 🛠️ Kullanım\r\n\r\n### 1. Sunucu Kurulumu\r\n\r\n```javascript\r\nconst express = require('express');\r\nconst bodyParser = require('body-parser');\r\nconst QuickPos = require('quickpos');\r\n\r\nconst app = express();\r\napp.use(bodyParser.urlencoded({ extended: true }));\r\napp.use(bodyParser.json());\r\n\r\nconst quickPos = new QuickPos({\r\n  providers: {\r\n    paytr: {\r\n      merchantId: 'xXxxXxX',\r\n      merchantKey: 'xXxxXxX',\r\n      merchantSalt: 'xXxxXxX',\r\n      mode: 'test',\r\n    }\r\n  },\r\n});\r\n\r\n// QuickPos middleware'ini ekleyin\r\napp.use(quickPos.middleware());\r\n\r\n// Ödeme oluşturma formu\r\napp.get('/', (req, res) =\u003e {\r\n    res.send(`\r\n        \u003cform action=\"/payment/paytr\" method=\"post\"\u003e\r\n        \u003cinput type=\"text\" name=\"amount\" placeholder=\"Amount\" required\u003e\r\n        \u003cselect name=\"currency\" required\u003e\r\n            \u003coption value=\"TL\"\u003eTL\u003c/option\u003e\r\n            \u003coption value=\"USD\"\u003eUSD\u003c/option\u003e\r\n            \u003coption value=\"EUR\"\u003eEUR\u003c/option\u003e\r\n        \u003c/select\u003e\r\n        \u003cinput type=\"text\" name=\"orderId\" placeholder=\"Order ID\" required\u003e\r\n        \u003cbutton type=\"submit\"\u003ePay\u003c/button\u003e\r\n        \u003c/form\u003e\r\n    `);\r\n});\r\n\r\n// Ödeme oluşturma rotası\r\napp.post('/payment/:provider', async (req, res) =\u003e {\r\n  const { provider } = req.params;\r\n  \r\n  if (!req.quickPos[provider]) {\r\n    return res.status(400).json({ error: 'Invalid payment provider' });\r\n  }\r\n\r\n  try {\r\n    const result = await req.quickPos[provider].createPayment({\r\n      name: 'Test Product',\r\n      amount: req.body.amount,\r\n      currency: req.body.currency,\r\n      callback_link: `https://mylocalhostx.speedsmm.com/payment-callback/${provider}`,\r\n      callback_id: req.body.orderId,\r\n      maxInstallment: 1,\r\n      expiry_date: '2024-12-25 17:00:00',\r\n      email: 'test@gmail.com',\r\n    });\r\n\r\n    if (result.status === 'success') {\r\n      res.json({ redirectUrl: result.data.url });\r\n    } else {\r\n      res.status(400).json(result);\r\n    }\r\n  } catch (error) {\r\n    res.status(500).json({ error: error.message });\r\n  }\r\n});\r\n\r\n// Callback rotası\r\napp.post('/payment-callback/:provider', quickPos.handleCallback('paytr'), (req, res) =\u003e {\r\n  console.log('Payment result:', req.paymentResult);\r\n  \r\n  if (req.paymentResult.status === 'success') {\r\n    res.send('OK');\r\n  } else {\r\n    res.status(400).send('Payment failed');\r\n  }\r\n});\r\n\r\napp.listen(80, () =\u003e {\r\n  console.log('Server is running on port 80');\r\n});\r\n```\r\n\r\n### 2. Konfigürasyon\r\n\r\n`QuickPos` örneğini oluştururken ödeme sağlayıcılarını yapılandırın:\r\n\r\n```javascript\r\nconst quickPos = new QuickPos({\r\n  providers: {\r\n    paytr: {\r\n      merchantId: 'xXxxXxX',\r\n      merchantKey: 'xXxxXxX',\r\n      merchantSalt: 'xXxxXxX',\r\n      mode: 'test',\r\n    }\r\n  },\r\n});\r\n```\r\n\r\n---\r\n\r\n## Desteklenen Ödeme Sağlayıcıları 🏦\r\n\r\n- PayTR\r\n- Shopier\r\n- Cryptomus\r\n- Payeer\r\n- Papara\r\n\r\n---\r\n\r\n## Yol Haritası 🛣️\r\n\r\n### Gelecek Özellikler\r\n\r\n- 🏦 Yeni ödeme sağlayıcıları: Öneri'de Bulunun\r\n- 🌐 Çoklu dil desteği\r\n- 💸 Çoklu para birimi desteği\r\n- 📝 Gelişmiş dökümantasyon\r\n\r\n### İlerleme Durumu\r\n\r\n- [x] PayTR entegrasyonu\r\n- [x] Shopier entegrasyonu\r\n- [x] Cryptomus entegrasyonu\r\n- [x] Payeer entegrasyonu\r\n- [x] Papara entegrasyonu\r\n- [x] İyzico entegrasyonu\r\n- [x] Anypay entegrasyonu\r\n- [x] EsnekPos entegrasyonu\r\n- [x] PayMaya entegrasyonu\r\n- [x] FedaPay entegrasyonu\r\n\r\n---\r\n\r\n## Katkıda Bulunma 🤝\r\n\r\nKatkılarınızı bekliyoruz! Lütfen [katkı yönergelerimizi](CONTRIBUTING.md) okuyun.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastuptime%2Fquickpos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastuptime%2Fquickpos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastuptime%2Fquickpos/lists"}