ondrakoupil / csob

PHP client for ČSOB payment gateway eAPI
MIT License
44 stars 18 forks source link

Proper signing of boolean values #22

Closed vvoody- closed 5 years ago

vvoody- commented 5 years ago

Currently method \OndraKoupil\Csob\Crypto::createSignatureBaseFromArray is returning "RETEZEC_ZPRAVY" with booleans converted to "0" and "1" (instead "false" and "true") which will result in incorrect signature and response code 400 from csob GW.

There is no boolean parameter except in "/payment/init" request ("closePayment") which is signed correctly by \OndraKoupil\Csob\Payment::signAndExport method. Now im implementing /applepay/init which is containing boolean parameter "closePayment" as well and Im using \OndraKoupil\Csob\Client::customRequest method for that.