Comments (3)
Selamlar,
Bunun aslında birçok yolu var. Ancak, dilerseniz en çok önerdiğimiz CF anlatmak isterim size.
Haydi başlayalım;
1. Adım;
İlk olarak https://sandbox-merchant.iyzipay.com/auth/register adresine giderek bir Sandbox hesabı açıyoruz, tüm test operasyonları için burayı kullanmanızı tavsiye ederiz.
Sandbox hesaplarına giriş yapabilmek için gerekli OTP statik olarak 123456’dır.
Ve son olarak, hesabımızı açtığımıza göre artık iyzico API KEY ve SECRET KEY ulaşabiliriz, sol menü Ayarlar > Firma Ayarları.
2. Adım;
Şimdi sıra CF entegrasyonunuzu kolayca yapabilmekte.
CF temelde 2(iki) sorgudan oluşmakta, bunlar sırasıyla ödeme formu başlatmak ve sonucunu öğrenmek.
Ek olarak, CF için örnek Postman API sorguları https://github.com/ShopskaSalad/iyzipay-postman adresinden bulunabilir, oradan da ayrıntılı olarak inceleyebilirsiniz.
Ödeme Formu Başlatmak
İlgili linkte anlatıldığı üzere; https://dev.iyzipay.com/tr/odeme-formu/odeme-formu-baslatma
Bu servis adresine; https://sandbox-api.iyzipay.com/payment/iyzipos/checkoutform/initialize/auth/ecom
Gönderilmesi gereken parametrelerle; https://dev.iyzipay.com/tr/odeme-formu/odeme-formu-baslatma#request
Bir HTTP isteğinde bulunmanız gerekmektedir.
Eğer alttaki ekran gibi bir cevap alıyorsanız, neredeyse tamamlamış sayılırız;
Dönen cevaptaki paymentPageUrl’den gelen örnek CF ekran görüntüsü;
Ödeme Formu Sonucu
İlgili linkte anlatıldığı üzere; https://dev.iyzipay.com/tr/odeme-formu/odeme-formu-sonucu
Bu servis adresine; https://sandbox-api.iyzipay.com/payment/iyzipos/checkoutform/auth/ecom/detail
Gönderilmesi gereken parametrelerle; https://dev.iyzipay.com/tr/odeme-formu/odeme-formu-sonucu#request
Bir HTTP isteğinde bulunmanız gerekmektedir. Sonuçta size detaylı bir cevap gelecektir; https://dev.iyzipay.com/tr/odeme-formu/odeme-formu-sonucu#response
Eğer cevabı alıyorsanız CF entegrasyonunu tamamlamış bulunmaktasınız!
Burada mdStatus 1 dönen tüm durumlarda ödeme başarılı olmuş demektir.
Özetlemek gerekirse, Ödeme Formu Başlatma adımında vereceğiniz callbackUrl adresine gelen response içerisindeki token alınarak, aynı token ile Ödeme Formu Sonucu için istek atmak gerekiyor.
Çeşitli hata senaryolarının önüne geçmek adına, webhook yöntemi de kullanılabilir; https://dev.iyzipay.com/tr/webhooks.
Tüm bunları iframe, responsive, redirectUrl etc. olarak kullanmak ise ihtiyacınıza göre sizin vereceğiniz bir cevap.
Kolaylıklar!
from iyzipay-node.
from iyzipay-node.
Rica ederiz. Kolaylıklar 👊 🎉
from iyzipay-node.
Related Issues (20)
- AWS de path hatası HOT 4
- iyzipay.payment.create(request) sırasında errorcode: 1000, "Geçersiz imza" hatası HOT 1
- Module not found: Error: Can't resolve 'fs' in 'C:\Users\algan\OneDrive\Masaüstü\abc\theProject\React\react\node_modules\iyzipay\lib' HOT 6
- Nextjs "Uncaught TypeError: fs.readdirSync is not a function" hatası. HOT 6
- request gelmiyor
- serverless-bundle cannot figure iyzico HOT 1
- refundToBalance Syntax Hatası HOT 2
- React Native ile WebView üzerinde açılmama sorunu. HOT 1
- Edge runtime desteği: Can't resolve 'fs'
- Iyzipay Next.js Entegrasyonu: Sorunlar ve Çözüm Önerileri
- Depreciation Warnings, and Vulnerabilities HOT 1
- TypeScript? HOT 3
- TypeScript Declaration Dosya Desteği Ekleme Önerisi - PR Review İsteği
- Missing package-lock.json
- Vulnerable Coveralls dependency
- Release step should depends on a tag creation
- Authorization Header içeriğinin oluşturulması
- Subscription Product Create [errorCode: '100001'] HOT 1
- errorMessage: 'Authorization header string gönderilmesi zorunludur' HOT 4
- Alternative TypeScript SDK HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iyzipay-node.