module PayDesign::ConvenienceStore::Callbacks
Public Class Methods
payment_canceled(params)
click to toggle source
# File lib/pay_design/convenience_store/callbacks.rb, line 43 def self.payment_canceled(params) { notification_id: params["SEQ"], cancel_date: Date.parse(params["DATE"]), ip_code: params["IP"], deal_id: params["SID"], amount: params["KINGAKU"], remarks: PayDesign.encode_to_utf8(params["FUKA"]), } end
payment_completed(params)
click to toggle source
# File lib/pay_design/convenience_store/callbacks.rb, line 29 def self.payment_completed(params) datetime_string = params["DATE"] + " " + params["TIME"] { notification_id: params["SEQ"], paid_at: DateTime.parse(datetime_string), ip_code: params["IP"], deal_id: params["SID"], amount: params["KINGAKU"], store_type: params["CVS"], store_code: params["SCODE"], remarks: PayDesign.encode_to_utf8(params["FUKA"]), } end
payment_registered(params)
click to toggle source
Whilst they are named “Callbacks”, they will just format parameters. How actual HTTP-level behaves depends on what the library user is.
# File lib/pay_design/convenience_store/callbacks.rb, line 7 def self.payment_registered(params) { deal_id: params["SID"], remarks: PayDesign.encode_to_utf8(params["FUKA"]), } end
payment_registering_completed(params)
click to toggle source
# File lib/pay_design/convenience_store/callbacks.rb, line 14 def self.payment_registering_completed(params) datetime_string = params["DATE"] + " " + params["TIME"] { paid_at: DateTime.parse(datetime_string), ip_code: params["IP"], deal_id: params["SID"], amount: params["KINGAKU"], store_type: params["CVS"], payment_number: params["SHNO"], remarks: PayDesign.encode_to_utf8(params["FUKA"]), url: params["FURL"], fee: params["FEE"], } end