Sha256: 92ddd70359a4a9f771e53c200a6f79807ba60f78a65bc6bb1641806e3d54180a
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
require 'abtain_billing/billing/integrations/paypal/helper.rb' require 'abtain_billing/billing/integrations/paypal/notification.rb' require 'abtain_billing/billing/integrations/paypal/return.rb' module AbtainBilling #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Paypal # Overwrite this if you want to change the Paypal test url mattr_accessor :test_url self.test_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr' # Overwrite this if you want to change the Paypal production url mattr_accessor :production_url self.production_url = 'https://www.paypal.com/cgi-bin/webscr' def self.service_url mode = AbtainBilling::Billing::Base.integration_mode case mode when :production self.production_url when :test self.test_url else raise StandardError, "Integration mode set to an invalid value: #{mode}" end end def self.notification(post) Notification.new(post) end def self.return(query_string) Return.new(query_string) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
abtain_billing-1.03 | lib/abtain_billing/billing/integrations/paypal.rb |
abtain_billing-1.02 | lib/abtain_billing/billing/integrations/paypal.rb |