Developer Center

Installment Options

In "Merchant" and "Tokenized" payment types, you can show installment options when entering credit card information.

If you want to offer installment option, your module class should have a function called "installment_rates".

The parameter passed to the function is an "array" and contains information about the card number entered.

Name Sample Explanation
country US,DE,FR,TR,BR etc… ISO 3166-1 alpha-2 country code
card_type debit veya credit Information on whether the card is a debit or credit card
schema VISA,MASTERCARD, etc… Cart type
bank_name Sample Bank Name of the bank
brand American Express etc… Brand of card, if any

The value to return from the function must be an "array". You must enter the number of installments in the key of the directory and the installment rate in its value.

Example Usage

public function installment_rates($card_info=[])
{
    if($card_info['brand'] == 'American Express')
        return [
            2 => 3.5,
            3 => 3.8,
            4 => 4.2,
            5 => 5.2,
            6 => 6.1,
        ];
    else
        return []; // it should be empty array if you don't want the option to exit.
}
Card No Verification (BIN Check) Refunds

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top

New Year's Special Discount

"Startup Lifetime" and "Professional Lifetime" licenses are 30% off!

Coupon Code:
HAPPYYEARS30 Copied!
Discount Rate 30%
Expiration Date December 31, 2024