caboose-cms 0.5.81 → 0.5.82

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmUyOTgzMzk0YTA4ZTA5MmVmN2VkOTkxYThlZDAwYTcxNGJmMjljOQ==
4
+ N2ZhNDBiM2MwMzQxNzA0MGM0YzM2NmIwMzBlMWFhZjUyYjUwMWZmYg==
5
5
  data.tar.gz: !binary |-
6
- MDQzYzMxNDJmODcxM2I2NmYzNjFkZjAxZGE2NDg0N2FjYzI1YjdmMg==
6
+ NDk1NTgwNDFmNzJhNzliZjRmMjI0YjNiMDZlNjVlN2U0ZGE4NTgwYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWJiOGQ5NDdjOWYwYmFkMmM1NjFlYjczYTU4ZTQ1ZDA5YTlkMjRlMmM0NzA2
10
- OWEzOTY3ZDc2YjEwYjYxOWQ0YzgxODllNjA2MzI0MGJjMjcwYWIzMTA2NzRk
11
- ZjRiNmNiOGViYTU1NGIzYWZmMDEzNGYxMTlkNTU5MGE4NDFjMmU=
9
+ MmRkMzQ2YWUwYzQ4ZjZlMjc5YThmNmQxY2QzNWQ4Njk3ZmM1YjU0MmNlNGM0
10
+ YTQ5Zjk3NWQwMGY5YmU3NjcxY2Q2NDljMDE3ZDlhNjk0ZDQ2MjRhYzc5ZGVi
11
+ MDVlYWIwNzg1NzEzNmYyMWQ5NzI3MjY1NTE2NjlhODk0Y2RhYzE=
12
12
  data.tar.gz: !binary |-
13
- MWY5YjIzYTNiNTk2MGE2OTRkM2Q5YjRkOWRmNmUxNjY3ZTFmYzgwZTg3YzIy
14
- N2E0Yjc3Mzk0YjgyMWY3MTk5Nzg2NDBiNmJhYWE1MDdkY2IxOWVhYTkzZmZk
15
- ZTQ1OWU4NDQ4NDMxNDEyMzA4NTJlNDY0YTdhYzFiNjIwMTA0ODM=
13
+ NmExZjI2ZmM2NTI3YWMwOTFhMTc0N2VlYmY1NTQ3MjA1YzdhYjc0MjZhNDc3
14
+ MzllMTFmMjBlYjJlY2VkMjdhN2RkMTVmMzE4MmM5MDQzYzY5MGY1Zjc0YTUy
15
+ MDcyMDdkMmQ4MTk3ZDEzNWE3MTlkMjg0OWUwNTkxMDI5YWMxMGY=
@@ -83,7 +83,11 @@ module Caboose
83
83
  #:relay_url => "#{request.protocol}#{request.host_with_port}/checkout/authnet-relay/#{@order.id}",
84
84
  :relay_response => 'TRUE',
85
85
  :relay_url => "#{request.protocol}#{request.host_with_port}/checkout/authnet-relay",
86
- :transaction_type => 'AUTH_ONLY',
86
+ :transaction_type => 'AUTH_ONLY',
87
+ :billing_address => AuthorizeNet::Address.new(
88
+ :first_name => 'John',
89
+ :last_name => 'Doe'
90
+ )
87
91
  :test => sc.pp_testing
88
92
  )
89
93
  @request = request
@@ -7,8 +7,15 @@ store_config = @site.store_config
7
7
  <% if store_config.pp_name == 'authorize.net' %>
8
8
  <form id="payment" target="relay" action="https://secure.authorize.net/gateway/transact.dll" method="post">
9
9
  <%= sim_fields(@sim_transaction) %>
10
- <input id="x_invoice_num" name="x_invoice_num" type="hidden" value="<%= @order.id %>" />
11
- <input id="x_description" name="x_after_relay" type="hidden" value="<%= raw "#{@request.protocol}#{@request.host_with_port}/checkout/authnet-response/#{@order.id}" %>" />
10
+ <input type="hidden" id="x_invoice_num" name="x_invoice_num" value="<%= @order.id %>" />
11
+ <input type="hidden" id="x_description" name="x_after_relay" value="<%= raw "#{@request.protocol}#{@request.host_with_port}/checkout/authnet-response/#{@order.id}" %>" />
12
+ <input type="hidden" id="x_first_name" name="x_first_name" value="<%= raw @order.billing_address.first_name %>" />
13
+ <input type="hidden" id="x_last_name" name="x_last_name" value="<%= raw @order.billing_address.last_name %>" />
14
+ <input type="hidden" id="x_address" name="x_address" value="<%= raw @order.billing_address.address1 %>" />
15
+ <input type="hidden" id="x_city" name="x_city" value="<%= raw @order.billing_address.city %>" />
16
+ <input type="hidden" id="x_state" name="x_state" value="<%= raw @order.billing_address.state %>" />
17
+ <input type="hidden" id="x_zip" name="x_zip" value="<%= raw @order.billing_address.zip %>" />
18
+
12
19
  <p><input name="x_card_num" id='billing-cc-number' type="text" maxlength="16" placeholder="Card Number" /></p>
13
20
  <p>
14
21
  <input id="expiration" name="x_exp_date" type="hidden" />
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.81'
2
+ VERSION = '0.5.82'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.81
4
+ version: 0.5.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry