Skip to content

Installment Rate Inquiry (Taksit Sorgulama)

Tolga Can Günel edited this page Sep 11, 2021 · 1 revision

Create Paytr Gateway, set your merchant id, key and salt. You can get them from your Paytr panel.

Build your options, send with the method. getData method will return an object with all possible values.

Returns all the installment rates defined for your Paytr account.

$gateway = \Omnipay\Omnipay::create("Paytr");

$gateway->setMerchantId("000000");

$gateway->setMerchantKey("--------------");

$gateway->setMerchantSalt("---------------");

$gateway->setTestMode(true);

$options = [
    "requestId" => time(),
];

/** @var \Omnipay\Paytr\Message\InstallmentRateInquiryResponse $response */
$response = $gateway->installmentRates($options)->send();

if ($response->isSuccessful()) {

    /** @var \Omnipay\Paytr\Models\InstallmentRateInquiryResponseModel $data */
    $data = $response->getData();

}else {

    echo $response->getMessage();

}