secure_net_recurring 1.5.0 → 1.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b95f059abf4c4f5878bf2fd8a4f728d64659762
4
- data.tar.gz: a158f7cca1e71d3ebd482647f3d42487fcc5c91e
3
+ metadata.gz: f07009d2af86b6e25d15a8778ae02743a1cdc76b
4
+ data.tar.gz: 77b19d3ff0930ba1919cc0cc989df2a737a1b037
5
5
  SHA512:
6
- metadata.gz: f3e6421f41e35754f8df63f78bea28b3406e5862fdceacae24dad800ecfce4a07281ff7ecc86a98ce0ffd6972f3be0343e5be377f65b57c87d2db6f0d24d3d4f
7
- data.tar.gz: cac9f0e666faacf05f8a3e2ab18f3a3d19beffe9110f11908bf0ed72ecc953537b8e96d146045823f75eec960576d197cc1364348b267e8d1f755dcc94be4f43
6
+ metadata.gz: 7fca6691423ec2ec778403156ba46753682d6fcd61074af944ced3027b5376133f11688e7a0c9260eb4d524eb56b73c0f895cd7aa5097facf48d2a7ea1abcb2b
7
+ data.tar.gz: 71f4c740e4cea6964af2fca8a998dae9fa9d31f5f6b3fb080474f574050e5c570a028cf540accccf7b79e42a22ae9f613d4dbb9c8ef87fe8f91bcfe2067ba2f2
data/README CHANGED
@@ -1,4 +1,4 @@
1
- No more talk, just read SecureNet's document and follow it. Below is the information that extracted from "Gateway Implementation Guide v4 1 5 - 2013-01-07.pdf"
1
+ Below is the information that extracted from "Gateway Implementation Guide v4 1 5 - 2013-01-07.pdf". No special trick, just follow the document.
2
2
 
3
3
  MERCHANT_KEY
4
4
  GROUP_ID
@@ -6,8 +6,9 @@ module ActiveMerchant
6
6
 
7
7
  class_attribute :recurring_url
8
8
 
9
- #self.test_url = 'https://certify.securenet.com/API/gateway.svc/webHttp/ProcessTransaction'
10
- self.recurring_url = 'https://gateway.securenet.com/API/data/service.svc/webHttp/AddABAccount'
9
+ #self.test_url = 'https://gateway.securenet.com/api/Gateway.svc/webHttp/ProcessTransaction' this url works.
10
+ #self.test_url = 'https://gateway.securenet.com/API/Gateway.svc/webHttp/ProcessTransaction'
11
+ self.recurring_url = 'https://gateway.securenet.com/API/Gateway.svc/webHttp/AddABAccount'
11
12
 
12
13
  def recurring(money, creditcard, options = {})
13
14
  recurring_commit(build_recurring_plan_ab(creditcard, options, :recurring, money))
@@ -43,7 +44,6 @@ module ActiveMerchant
43
44
  xml = Builder::XmlMarkup.new
44
45
 
45
46
  xml.tag! 'CUSTOMERID', creditcard.number
46
- add_options(xml, creditcard)
47
47
  add_installment(xml, creditcard, money)
48
48
  add_merchant_key(xml, options)
49
49
  xml.tag! 'PAYMENTID', creditcard.number
@@ -65,6 +65,9 @@ module ActiveMerchant
65
65
 
66
66
  def add_installment(xml, creditcard, money)
67
67
  xml.tag!("INSTALLMENT") do
68
+ xml.tag! 'CYCLE', 'M'
69
+ xml.tag! 'DAY', 5 #Integer / 2
70
+ xml.tag! 'FREQUENCY', 1 #Integer / 2
68
71
  xml.tag! 'AMOUNT', amount(money)
69
72
  xml.tag! 'AUTOCALC_OPTION', 'A'
70
73
  xml.tag! 'BALLOON_AMOUNT', 0
@@ -76,6 +79,9 @@ module ActiveMerchant
76
79
 
77
80
  def add_recurring(xml, creditcard, money)
78
81
  xml.tag!("RECURRING") do
82
+ xml.tag! 'CYCLE', 'M'
83
+ xml.tag! 'DAY', 5 #Integer / 2
84
+ xml.tag! 'FREQUENCY', 1 #Integer / 2
79
85
  xml.tag! 'AMOUNT', amount(money)
80
86
  xml.tag! 'NOEND_FLAG', 1
81
87
  end
@@ -1,3 +1,3 @@
1
1
  module SecureNetRecurring
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.0"
3
3
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["wenbo"]
10
10
  s.email = ["yiyun6674@hotmail.com"]
11
11
  s.homepage = "http://rubygems.org/gems/secure_net_recurring"
12
- s.summary = "Standing on the shoulder of gem activemerchant,this gem implements SecureNet's AuthBill feature"
12
+ s.summary = "Standing on the shoulder of gem activemerchant,this gem implements SecureNet's AutoBill feature"
13
13
  s.description = s.summary
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secure_net_recurring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - wenbo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-02 00:00:00.000000000 Z
11
+ date: 2014-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.32.1
27
27
  description: Standing on the shoulder of gem activemerchant,this gem implements SecureNet's
28
- AuthBill feature
28
+ AutoBill feature
29
29
  email:
30
30
  - yiyun6674@hotmail.com
31
31
  executables: []
@@ -60,5 +60,5 @@ rubygems_version: 2.1.11
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Standing on the shoulder of gem activemerchant,this gem implements SecureNet's
63
- AuthBill feature
63
+ AutoBill feature
64
64
  test_files: []