google_checkout 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/google-checkout.rb +6 -5
  2. metadata +2 -2
@@ -100,13 +100,14 @@ module GoogleCheckout
100
100
  @contents.size
101
101
  end
102
102
 
103
- def submit_domain
104
- (@live_system ? 'checkout' : 'sandbox') + ".google.com"
103
+ def submit_prefix
104
+ (@live_system ? 'checkout.google.com' :
105
+ 'sandbox.google.com/checkout')
105
106
  end
106
107
 
107
108
  # This method returns the URL to which the form should be submitted.
108
109
  def submit_url
109
- ["https://#{submit_domain}/cws/v2/Merchant",
110
+ ["https://#{submit_prefix}/cws/v2/Merchant",
110
111
  @merchant_id,
111
112
  'checkout'
112
113
  ].join('/')
@@ -180,7 +181,7 @@ module GoogleCheckout
180
181
  xml.tag!('merchant-checkout-flow-support') {
181
182
  xml.tag!('shipping-methods') {
182
183
  xml.tag!('flat-rate-shipping', :name =>'Shipping') {
183
- shipping_cost_xml
184
+ xml.text! shipping_cost_xml
184
185
  }
185
186
  }
186
187
  }
@@ -275,7 +276,7 @@ module GoogleCheckout
275
276
 
276
277
  path = opts.map { |k,v| "#{k}=#{v}" }.join('&')
277
278
 
278
- "http://#{submit_domain}/buttons/#{bname}?#{path}"
279
+ "http://#{submit_prefix}/buttons/#{bname}?#{path}"
279
280
  end
280
281
  end
281
282
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.8
3
3
  specification_version: 1
4
4
  name: google_checkout
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2006-12-18
6
+ version: 0.1.2
7
+ date: 2007-07-14
8
8
  summary: An interface to the Google Checkout API.
9
9
  require_paths:
10
10
  - lib