Module: GoogleCheckout
- Included in:
- Cart
- Defined in:
- lib/google-checkout.rb,
lib/google-checkout/cart.rb,
lib/google-checkout/command.rb,
lib/google-checkout/version.rb,
lib/google-checkout/notification.rb,
lib/google-checkout/geography/area.rb,
lib/google-checkout/geography/world.rb,
lib/google-checkout/shipping/method.rb,
lib/google-checkout/shipping/pickup.rb,
lib/google-checkout/geography/postal.rb,
lib/google-checkout/geography/us_zip.rb,
lib/google-checkout/shipping/filters.rb,
lib/google-checkout/geography/us_state.rb,
lib/google-checkout/shipping/flat_rate.rb,
lib/google-checkout/geography/us_country.rb,
lib/google-checkout/merchant_calculation.rb,
lib/google-checkout/shipping/restrictions.rb,
lib/google-checkout/shipping/merchant_calculated.rb
Overview
TODO
* Use standard ssl certs
Defined Under Namespace
Modules: Geography, Shipping Classes: AddTrackingData, ApiError, AuthorizationAmountNotification, CancelledSubscriptionNotification, Cart, ChargeAmountNotification, ChargeOrder, ChargebackAmountNotification, CheckoutRedirect, Command, DeliverOrder, Error, MerchantCalculation, NewOrderNotification, Notification, OrderCommand, OrderStateChangeNotification, RefundAmountNotification, RefundOrder, RequestReceived, RiskInformationNotification, SendBuyerMessage
Constant Summary collapse
- ButtonSizes =
These are the only sizes allowed by Google. These shouldn’t be needed by most people; just specify the :size and :buy_or_checkout options to Cart#checkout_button and the sizes are filled in automatically.
{ :checkout => { :small => { :w => 160, :h => 43 }, :medium => { :w => 168, :h => 44 }, :large => { :w => 180, :h => 46 }, }, :buy_now => { :small => { :w => 117, :h => 48 }, :medium => { :w => 121, :h => 44 }, :large => { :w => 121, :h => 44 }, }, }
- VERSION =
'0.4.0'
- @@live_system =
true
Class Method Summary collapse
- .production? ⇒ Boolean
- .sandbox? ⇒ Boolean
-
.use_production ⇒ Object
The default.
-
.use_sandbox ⇒ Object
Submit commands to the Google Checkout test servers.
Class Method Details
.production? ⇒ Boolean
54 55 56 |
# File 'lib/google-checkout.rb', line 54 def self.production? @@live_system end |
.sandbox? ⇒ Boolean
50 51 52 |
# File 'lib/google-checkout.rb', line 50 def self.sandbox? !@@live_system end |
.use_production ⇒ Object
The default.
46 47 48 |
# File 'lib/google-checkout.rb', line 46 def self.use_production @@live_system = true end |
.use_sandbox ⇒ Object
Submit commands to the Google Checkout test servers.
39 40 41 |
# File 'lib/google-checkout.rb', line 39 def self.use_sandbox @@live_system = false end |