Open eFlavian opened 4 months ago
Having the same issue
Hi, we have the same issue, but in PHP, we use MobilPay code on PHP 8.2 https://github.com/mobilpay/PHP_CARD
The signature is included, but the system display the same error... Did you resolved the issue?
@eFlavian you need all 4 variables in hidden inputs (iv, env_key, data, cipher).
In encrypt function change the return to:
return {
iv: iv.toString('base64'),
env_key: envKey.toString('base64'),
data: encrypted,
cipher: algorithm
};
Thanks very much, now it's working :)
I get an
Mobilpay_Payment_Request_Sms::loadFromQueryString failed: signature is missing
error.my order.js:
how i build it in index.js:
and this is how i do the form in front:
Am i missing something ? The signature is clearly inside data (from getPayment).
P.S. I've also tried to change my signature to a random value and gives me the same error.
Thanks.