PHPackages                             voxyfy/anadolupay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. voxyfy/anadolupay

ActiveLibrary[Payment Processing](/categories/payments)

voxyfy/anadolupay
=================

Unified Laravel 12 payment gateway abstraction for Turkish providers.

v0.1.0(5mo ago)04[2 PRs](https://github.com/Voxyfy/anadolupay/pulls)MITPHPPHP ^8.2CI passing

Since Jan 18Pushed 2mo agoCompare

[ Source](https://github.com/Voxyfy/anadolupay)[ Packagist](https://packagist.org/packages/voxyfy/anadolupay)[ Docs](https://github.com/Voxyfy/anadolupay)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/voxyfy-anadolupay/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (7)Versions (5)Used By (0)

AnadoluPay
==========

[](#anadolupay)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ef4fa0ff4d5739cf4bd638bce35b5fee5b63ffcd902a1c131d42204be003c1aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766f787966792f616e61646f6c757061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/voxyfy/anadolupay)[![GitHub Tests Action Status](https://camo.githubusercontent.com/fddd7e13058f0046c56c9075b1765a1f9dfa79f4c9f530962973c24c31b17c19/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f766f787966792f616e61646f6c757061792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/voxyfy/anadolupay/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/4c67ee18ff1c126143966e47925304b4e3d49d7fb6954f64edf8c2c920679fba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766f787966792f616e61646f6c757061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/voxyfy/anadolupay)

AnadoluPay is a Laravel payment abstraction layer for Turkish payment providers. It orchestrates payment flows and normalizes responses, while leaving UI rendering and final business decisions to the consuming application.

Gereksinimler
-------------

[](#gereksinimler)

- PHP 8.2 veya üzeri
- Laravel 12.x

Kurulum
-------

[](#kurulum)

```
composer require voxyfy/anadolupay
```

Laravel auto-discovery varsayılan olarak aktiftir; ek bir adım gerekmez.

Konfigürasyon dosyasını yayınlamak isterseniz:

```
php artisan vendor:publish --tag="anadolupay-config"
```

Yapılandırma
------------

[](#yapılandırma)

Iyzico 3DS için gerekli ortam değişkenleri:

```
IYZICO_API_KEY=xxx
IYZICO_SECRET_KEY=xxx
IYZICO_BASE_URL=https://sandbox-api.iyzipay.com
IYZICO_CALLBACK_URL=https://example.com/anadolupay/callback/iyzico
```

Notlar:

- `IYZICO_BASE_URL` sandbox veya production host olabilir.
- `IYZICO_CALLBACK_URL` dışarıdan erişilebilir olmalıdır.

3DS Ödeme Başlatma (iyzico)
---------------------------

[](#3ds-ödeme-başlatma-iyzico)

Akış özeti:

- Uygulama `createPayment(...)` ile 3DS başlatma isteği yapar.
- Iyzico `threeDSHtmlContent` döner (base64 HTML).
- Uygulama bu HTML'i decode edip kullanıcıya render eder.
- 3DS tamamlanınca callback URL'inize yönlendirme yapılır.

```
