class OffsitePayments::Integrations::Newebpay::Notification
The Notification
object from NewebPay
@since 0.1.0
Public Instance Methods
currency()
click to toggle source
The Newebpay
use TWD as currency
@return [String]
@since 0.1.0
# File lib/offsite_payments/integrations/newebpay/notification.rb, line 31 def currency :TWD end
gross()
click to toggle source
@return [Number]
@since 0.1.0
# File lib/offsite_payments/integrations/newebpay/notification.rb, line 22 def gross trade_info.dig('Result', 'Amt')&.to_i end
status()
click to toggle source
@return [String]
@since 0.1.0
# File lib/offsite_payments/integrations/newebpay/notification.rb, line 15 def status trade_info['Status'] end