Class: PayTrace::EmailReceiptRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/paytrace/email_receipt_request.rb

Overview

Methods to request an email receipt for a transaction

Constant Summary collapse

EMAIL_RECEIPT_METHOD =

:nodoc:

"EmailReceipt"

Class Method Summary collapse

Class Method Details

.create(params = {}) ⇒ Object

Send the request. Params: :email – the email address to send the receipt to :transaction_id – the transaction ID of the transaction to email :check_id – the check ID of the transaction to email Note: only use :transaction_id or :check_id – not both.



13
14
15
# File 'lib/paytrace/email_receipt_request.rb', line 13

def self.create(params = {})
  PayTrace::API::Gateway.send_request(EMAIL_RECEIPT_METHOD, params, [:email], [:check_id, :transaction_id])
end