Method: DirectPostMac.validate
- Defined in:
- lib/citypay_api_client/utils/direct_post_mac.rb
.validate(licence_key, nonce, amount, identifier, mac_to_validate) ⇒ Object
6 7 8 9 |
# File 'lib/citypay_api_client/utils/direct_post_mac.rb', line 6 def validate(licence_key, nonce, amount, identifier, mac_to_validate) mac = create(licence_key, nonce, amount, identifier) mac === mac_to_validate end |