Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong signature #4

Open
baka44 opened this issue May 23, 2018 · 0 comments
Open

wrong signature #4

baka44 opened this issue May 23, 2018 · 0 comments

Comments

@baka44
Copy link

baka44 commented May 23, 2018

sub cnb_signature { my ($self,$payment) = @_; my $signature; $payment->{public_key} = $self->{public_key}; my $data = encode_base64(encode_json($payment),''); $signature = encode_base64(sha1($self->{private_key}.$data.$self->{private_key}),''); return $signature; }
Возвращает не корректный ключ.
например, сигнатура сервера: ZdfHoYYbtQ6qswZzapYwRsm+q5I=
и если использовать этот медот то клиент генерирует: ZdfHoYYbtQ6qswZzapYwRsm+q5I
А вот так все как положено
return $signature."=";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant