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

Сигнатура формируется в ловеркейсе, тогда как приходить в верхнем регистре. #4

Closed
wants to merge 1 commit into from

Conversation

SergeyKishenin
Copy link
Member

https://github.com/ZeroOneStudio/rubykassa/blob/master/lib/rubykassa/notification.rb#L18

    %w(result success).map do |kind|
      define_method "valid_#{kind}_signature?" do
        p @params["SignatureValue"]
        p generate_signature_for(kind.to_sym)
        @params["SignatureValue"] == generate_signature_for(kind.to_sym)
      end
    end

Результат:
"2EDA28FE398EA1C84FA2F6D86B5F35E9"
"2eda28fe398ea1c84fa2f6d86b5f35e9"

SergeyKishenin added a commit that referenced this pull request Nov 4, 2013
@SergeyKishenin
Copy link
Member

a5d8e9a

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

Successfully merging this pull request may close these issues.

None yet

1 participant