• The plugin does not correctly compute the security digest when installments are selected. The reason is that the Alpha Bank e-commerce API requires a specific order for the variables when calculating the digest. Specifically, extInstallmentoffset and extInstallmentperiod should be placed after trType but before confirmUrl. In the current version (2.0.4) of the plugin the 2 optional variables extInstallmentoffset and extInstallmentperiod are placed at the end of the buffer, thus making the digest incompatible with the API.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ageorgiadis

    (@ageorgiadis)

    The solution is to add the following 2 lines of code in the file classes/WC_AlphaBank_Gateway_Base.php:

                'extInstallmentoffset' => null,
                'extInstallmentperiod' => null,

    just after the line 'trType' => $trType, and just before the line 'confirmUrl' => get_site_url() . "/?wc-api=WC_alphabank_Gateway&result=success",.

    • This reply was modified 7 months, 2 weeks ago by ageorgiadis.

    @ageorgiadis you’re a star! Thanks…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Invalid Digest when paying with installments’ is closed to new replies.