class ShieldPay::Transaction
Attributes
status_id[RW]
Public Class Methods
change_status(input_params)
click to toggle source
Webhook
Params Parameter Optional? Description customer_id no The customer id of either the sender or the
receiver of this transaction
transaction_id no The transaction id to change status status_id
no The status to change to
# File lib/shieldpay/transaction.rb, line 25 def self.change_status(input_params) stringify_keys!(input_params) input_params["transaction_status_id"] = input_params.delete("status_id") response = Request.new.post("/Transaction/ChangePaymentStatus", input_params) response.dig("coreRes", "status") == 1 end
get_status(input_params={})
click to toggle source
Webhook
Params Parameter Optional? Description customer_id no The customer id of either the sender or the
receiver of this transaction
transaction_id no The transaction id to look up
# File lib/shieldpay/transaction.rb, line 13 def self.get_status(input_params={}) stringify_keys!(input_params) response = Request.new.post("/Transaction/GetPaymentStatus", input_params) response.dig("Data", "StatusId") end