spree_bitcoin_checkout 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ CheckoutController.class_eval do
27
27
  user = order.payments.first.payment_method.preferred_user
28
28
  password = order.payments.first.payment_method.preferred_password
29
29
 
30
- uri = URI.parse("https://bitcoin-central.net/invoices")
30
+ uri = URI.parse(order.payments.first.payment_method.preferred_api_url)
31
31
  http = Net::HTTP.new(uri.host, uri.port)
32
32
  http.use_ssl = true
33
33
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
@@ -1,5 +1,5 @@
1
1
  class Billing::BitcoinCheckout < BillingIntegration
2
- preference :account, :string
3
- preference :api_key, :string
2
+ preference :user, :string
3
+ preference :password, :string
4
4
  preference :api_url, :string
5
5
  end
data/config/routes.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  Rails.application.routes.draw do
2
- resources :bitcoin_checkout_notification,
2
+ resource :bitcoin_checkout_notification,
3
3
  :only => :create
4
4
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'spree_bitcoin_checkout'
4
- s.version = '0.1'
4
+ s.version = '0.1.1'
5
5
  s.summary = "Automatically integrate bitcoin-central.net's API"
6
6
  s.description = 'Leverages the invoicing API in order to seamlessly accept bitcoin denominated payments'
7
7
  s.required_ruby_version = '>= 1.8.7'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_bitcoin_checkout
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- version: "0.1"
9
+ - 1
10
+ version: 0.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - David FRANCOIS