Class: Spree::Webhooks::Event
- Defined in:
- app/models/spree/webhooks/event.rb
Instance Method Summary collapse
-
#signature_for(payload) ⇒ String
Computes the base64-encoded HMAC SHA256 signature of the event for the given payload.
Instance Method Details
#signature_for(payload) ⇒ String
Computes the base64-encoded HMAC SHA256 signature of the event for the given payload.
15 16 17 |
# File 'app/models/spree/webhooks/event.rb', line 15 def signature_for(payload) EventSignature.new(self, payload).computed_signature end |