Ana içeriğe geç
Bu sayfa henüz Türkçeye çevrilmedi; İngilizce sürümü gösteriliyor.
Versiyon: 8.0

Getting Started

Requirements​

  • .NET 8.0
  • An iyzico API key and secret key

1. Install the package​

Run the following command in the Package Manager Console:

Install-Package Milvasoft.Iyzipay

You can also get the source from GitHub.

2. Register the integration​

In your application's startup, register the iyzico integration with your credentials and the API base URL. The example uses the iyzico sandbox:

services.AddIyzicoIntegration(i =>
{
i.ApiKey = "your api key";
i.SecretKey = "your secret key";
i.BaseUrl = "https://sandbox-api.iyzipay.com";
i.RestHttpClientLifeTime = ServiceLifetime.Transient;
i.RestHttpClientV2LifeTime = ServiceLifetime.Transient;
});

RestHttpClientLifeTime and RestHttpClientV2LifeTime set the service lifetimes of the HTTP clients the library registers.

Keep your API key and secret key out of source control.

Continue with Usage.