Sha256: 59df6f72e2925cca3095bb6fcca8df1a332d82a7b5ca4361e353adb01758b127
Contents?: true
Size: 1005 Bytes
Versions: 2
Compression:
Stored size: 1005 Bytes
Contents
require 'ruby-freshbooks' module Skr::Handlers module CreditCardGateway class << self def get Lanes::API::RequestWrapper.with_authenticated_user( role: 'administrator', with_transaction: false ) do |user, req| settings = Lanes::SystemSettings.for_ext('skr-ccgateway') req.std_api_reply :get, (settings['credit_card_gateway'] || {}) end end def update Lanes::API::RequestWrapper.with_authenticated_user( role: 'administrator', with_transaction: false ) do |user, req| settings = Lanes::SystemSettings.for_ext('skr-ccgateway') settings['credit_card_gateway'] = req.data settings.persist! req.std_api_reply :save, (settings['credit_card_gateway'] || {}) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.5.0 | lib/skr/handlers/credit_card_gateway.rb |
stockor-0.4.0 | lib/skr/handlers/credit_card_gateway.rb |