Class: Facebook::Messenger::Incoming::Payment
- Inherits:
-
Object
- Object
- Facebook::Messenger::Incoming::Payment
- Includes:
- Common
- Defined in:
- lib/facebook/messenger/incoming/payment.rb
Overview
The Payment class represents a successful purchase using the Buy Button
developers.facebook.com/docs/messenger-platform/reference/webhook-events/payment
Defined Under Namespace
Classes: Payment
Instance Attribute Summary
Attributes included from Common
Instance Method Summary collapse
Methods included from Common
#access_token, #initialize, #mark_seen, #prior_message, #recipient, #reply, #sender, #sent_at, #typing_off, #typing_on
Instance Method Details
#payment ⇒ Object
43 44 45 |
# File 'lib/facebook/messenger/incoming/payment.rb', line 43 def payment @payment ||= Payment.new(@messaging['payment']) end |