Class: Facebook::Messenger::Incoming::Payment

Inherits:
Object
  • Object
show all
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

#messaging

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

#paymentObject



43
44
45
# File 'lib/facebook/messenger/incoming/payment.rb', line 43

def payment
  @payment ||= Payment.new(@messaging['payment'])
end