Skip to main content

Installation

Composer Installation

  1. Require the package using Composer:

    composer require codenteq/iyzico-payment-gateway
  2. Run autoload:

    composer dump-autoload
  3. Add your Iyzico credentials to your .env file:

    IYZICO_API_KEY=
    IYZICO_SECRET_KEY=
    IYZICO_BASE_URL=
  4. Optimize your Laravel project:

    php artisan optimize

Installation Without Composer

  1. Unzip the extension and merge the packages and storage folders into your Laravel project's root directory.

  2. In config/app.php, add the following to the providers array:

    Webkul\Iyzico\Providers\IyzicoServiceProvider::class,
  3. In composer.json, add the following under the autoload.psr-4 section:

    "Webkul\\Iyzico\\": "packages/Webkul/Iyzico/src"
  4. Run the following command:

    composer dump-autoload
  5. Update your .env file with Iyzico credentials:

    IYZICO_API_KEY=
    IYZICO_SECRET_KEY=
    IYZICO_BASE_URL=
  6. Optimize the project:

    php artisan optimize