Sha256: 452881bec028c7b4255f05b7896f5cc9ccc7e5ef3e9976becddee8dda62b39c6
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
module WirecardCheckoutPage class CheckedResponse include WirecardCheckoutPage::Utils def initialize(params) @params = stringify_keys(params).freeze end attr_reader :params def valid? WirecardCheckoutPage::ResponseChecksum.new(@params).valid? end def success? valid? && @params['paymentState'] == 'SUCCESS' end def message @params['message'] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wirecard_checkout_page-0.1.0 | lib/wirecard_checkout_page/checked_response.rb |
wirecard_checkout_page-0.0.1 | lib/wirecard_checkout_page/checked_response.rb |