activemerchant 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data.tar.gz.sig
ADDED
Binary file
|
data/CHANGELOG
CHANGED
@@ -35,8 +35,9 @@ module ActiveMerchant #:nodoc:
|
|
35
35
|
|
36
36
|
private
|
37
37
|
def build_sale_or_authorization_request(action, money, credit_card, options)
|
38
|
+
shipping_address = options[:shipping_address] || options[:address]
|
39
|
+
|
38
40
|
xml = Builder::XmlMarkup.new :indent => 2
|
39
|
-
|
40
41
|
xml.tag! 'DoDirectPaymentReq', 'xmlns' => 'urn:ebay:api:PayPalAPI' do
|
41
42
|
xml.tag! 'DoDirectPaymentRequest', 'xmlns:n2' => 'urn:ebay:apis:eBLBaseComponents' do
|
42
43
|
xml.tag! 'n2:Version', '2.0'
|
@@ -45,8 +46,12 @@ module ActiveMerchant #:nodoc:
|
|
45
46
|
xml.tag! 'n2:PaymentDetails' do
|
46
47
|
xml.tag! 'n2:OrderTotal', amount(money), 'currencyID' => currency(money)
|
47
48
|
xml.tag! 'n2:NotifyURL', options[:notify_url]
|
49
|
+
xml.tag! 'n2:OrderDescription', options[:description]
|
50
|
+
xml.tag! 'n2:InvoiceID', options[:order_id]
|
51
|
+
|
52
|
+
add_address(xml, 'n2:ShipToAddress', shipping_address)
|
48
53
|
end
|
49
|
-
add_credit_card(xml, credit_card, options[:billing_address] || options
|
54
|
+
add_credit_card(xml, credit_card, options[:billing_address] || shipping_address, options)
|
50
55
|
xml.tag! 'n2:IPAddress', options[:ip]
|
51
56
|
end
|
52
57
|
end
|
@@ -55,7 +60,7 @@ module ActiveMerchant #:nodoc:
|
|
55
60
|
xml.target!
|
56
61
|
end
|
57
62
|
|
58
|
-
def add_credit_card(xml, credit_card, address)
|
63
|
+
def add_credit_card(xml, credit_card, address, options)
|
59
64
|
xml.tag! 'n2:CreditCard' do
|
60
65
|
xml.tag! 'n2:CreditCardType', credit_card_type(credit_card.type)
|
61
66
|
xml.tag! 'n2:CreditCardNumber', credit_card.number
|
@@ -68,7 +73,9 @@ module ActiveMerchant #:nodoc:
|
|
68
73
|
xml.tag! 'n2:FirstName', credit_card.first_name
|
69
74
|
xml.tag! 'n2:LastName', credit_card.last_name
|
70
75
|
end
|
71
|
-
|
76
|
+
|
77
|
+
xml.tag! 'n2:Payer', options[:email]
|
78
|
+
add_address(xml, 'n2:Address', address)
|
72
79
|
end
|
73
80
|
end
|
74
81
|
end
|
@@ -184,9 +184,9 @@ module ActiveMerchant #:nodoc:
|
|
184
184
|
end
|
185
185
|
end
|
186
186
|
|
187
|
-
def add_address(xml, address)
|
187
|
+
def add_address(xml, element, address)
|
188
188
|
return if address.nil?
|
189
|
-
xml.tag!
|
189
|
+
xml.tag! element do
|
190
190
|
xml.tag! 'n2:Name', address[:name]
|
191
191
|
xml.tag! 'n2:Street1', address[:address1]
|
192
192
|
xml.tag! 'n2:Street2', address[:address2]
|
@@ -87,7 +87,7 @@ module ActiveMerchant #:nodoc:
|
|
87
87
|
xml.tag! 'n2:PaymentAction', action
|
88
88
|
xml.tag! 'n2:OrderTotal', amount(money), 'currencyID' => currency(money)
|
89
89
|
xml.tag! 'n2:MaxAmount', amount(options[:max_amount]), 'currencyID' => currency(options[:max_amount]) if options[:max_amount]
|
90
|
-
add_address(xml, options[:billing_address] || options[:address])
|
90
|
+
add_address(xml, 'n2:Address', options[:billing_address] || options[:address])
|
91
91
|
#xml.tag! 'n2:AddressOverride', 1
|
92
92
|
#xml.tag! 'n2:NoShipping', 1
|
93
93
|
xml.tag! 'n2:PageStyle', options[:page_style] unless options[:page_style].blank?
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: activemerchant
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2007-02-
|
6
|
+
version: 1.0.2
|
7
|
+
date: 2007-02-22 00:00:00 -05:00
|
8
8
|
summary: Framework and tools for dealing with credit card transactions.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -25,6 +25,28 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
25
|
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
+
- |
|
29
|
+
-----BEGIN CERTIFICATE-----
|
30
|
+
MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRMwEQYDVQQDDApjb2R5
|
31
|
+
ZmF1c2VyMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNj
|
32
|
+
b20wHhcNMDcwMjIyMTcyMTI3WhcNMDgwMjIyMTcyMTI3WjBBMRMwEQYDVQQDDApj
|
33
|
+
b2R5ZmF1c2VyMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
|
34
|
+
FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6T4Iqt5iWvAlU
|
35
|
+
iXI6L8UO0URQhIC65X/gJ9hL/x4lwSl/ckVm/R/bPrJGmifT+YooFv824N3y/TIX
|
36
|
+
25o/lZtRj1TUZJK4OCb0aVzosQVxBHSe6rLmxO8cItNTMOM9wn3thaITFrTa1DOQ
|
37
|
+
O3wqEjvW2L6VMozVfK1MfjL9IGgy0rCnl+2g4Gh4jDDpkLfnMG5CWI6cTCf3C1ye
|
38
|
+
ytOpWgi0XpOEy8nQWcFmt/KCQ/kFfzBo4QxqJi54b80842EyvzWT9OB7Oew/CXZG
|
39
|
+
F2yIHtiYxonz6N09vvSzq4CvEuisoUFLKZnktndxMEBKwJU3XeSHAbuS7ix40OKO
|
40
|
+
WKuI54fHAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
41
|
+
BBR9QQpefI3oDCAxiqJW/3Gg6jI6qjANBgkqhkiG9w0BAQUFAAOCAQEAs0lX26O+
|
42
|
+
HpyMp7WL+SgZuM8k76AjfOHuKajl2GEn3S8pWYGpsa0xu07HtehJhKLiavrfUYeE
|
43
|
+
qlFtyYMUyOh6/1S2vfkH6VqjX7mWjoi7XKHW/99fkMS40B5SbN+ypAUst+6c5R84
|
44
|
+
w390mjtLHpdDE6WQYhS6bFvBN53vK6jG3DLyCJc0K9uMQ7gdHWoxq7RnG92ncQpT
|
45
|
+
ThpRA+fky5Xt2Q63YJDnJpkYAz79QIama1enSnd4jslKzSl89JS2luq/zioPe/Us
|
46
|
+
hbyalWR1+HrhgPoSPq7nk+s2FQUBJ9UZFK1lgMzho/4fZgzJwbu+cO8SNuaLS/bj
|
47
|
+
hPaSTyVU0yCSnw==
|
48
|
+
-----END CERTIFICATE-----
|
49
|
+
|
28
50
|
post_install_message:
|
29
51
|
authors:
|
30
52
|
- Tobias Luetke
|
metadata.gz.sig
ADDED
Binary file
|