Skip to content

Installation

abheranj edited this page Aug 13, 2022 · 1 revision

Simply install the package through Composer.

  composer require abheranj/iyzipay

Service provider

config/app.php

'providers' => [
    ...
    Abheranj\Iyzipay\IyzipayServiceProvider::class,
];

Facades

config/app.php

'aliases' => [
    ...
    'Iyzipay' => Abheranj\Iyzipay\Facades\IyzipayService::class,
];

.env

.env

# IYZIPAY_PAYMENT_MODE for sanbox will be "test" and for live will be "live" 
IYZIPAY_PAYMENT_MODE="test"
SANDBOX_IYZIPAY_BASE_URL="https://sandbox-api.iyzipay.com"
SANDBOX_IYZIPAY_API_KEY="Sanbox Api Key"
SANDBOX_IYZIPAY_SECRET_KEY="Sanbox Secret Key"

LIVE_IYZIPAY_BASE_URL="Live url"
LIVE_IYZIPAY_API_KEY="Live Api Key"
LIVE_IYZIPAY_SECRET_KEY="Live Secret Key"

Clone this wiki locally