paytrace 0.0.3 → 0.0.4

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: 5c945b008a295eb178fcdf4eb6238a1e19d0540e
4
- data.tar.gz: 8283c88dd500af963b802e35cc124095afdca21f
3
+ metadata.gz: d0f4c097c551f541060d31c505b42cd02517f495
4
+ data.tar.gz: da442a4e5a8816759b4ef90e9d052c89c0b6f616
5
5
  SHA512:
6
- metadata.gz: 911f0086d4990b0948f0b062f75ed26e1722abae5f5fa71ee9a5bec55ca0103c870e6d162aa7162278d0adc3143f025d8e48f6a8dfa83f3ab128bc814035c365
7
- data.tar.gz: f783078d6185ed345a6936a35c0469df3a7667af3b7c230184d0c0e80c7b8bf54af0cd82a60241761802f69a91b168b7872646ad86a506c9a2a942d63418de5e
6
+ metadata.gz: e69acf89d801f7140e4cc85bb7885ac1d1b5a9b7245d377b6ea04329625bb8db9a0e8f9f80b78b718f4bffd50dca57a5f3d94e8767e5970c35c1b690f855fe3c
7
+ data.tar.gz: 16746312d84d238dad91bf55a361350353c4f5b5abbf4cf95b5cccec9906cbcc108c15517811d566beb7599c4c6baabe5944b3175606d9d1e86df3c72c003348
@@ -51,6 +51,9 @@ module PayTrace
51
51
  @params[:enable_partial_authentication] = o[:enable_partial_authentication] if o[:enable_partial_authentication]
52
52
  @params[:discretionary_data] = o[:discretionary_data] if o[:discretionary_data]
53
53
  @params[:custom_dba] = o[:custom_dba] if o[:custom_dba]
54
+ @params[:invoice] = o[:invoice] if o[:invoice]
55
+ @params[:transaction_id] = o[:transaction_id] if o[:transaction_id]
56
+ @params[:customer_reference_id] = o[:customer_reference_id] if o[:customer_reference_id]
54
57
  end
55
58
 
56
59
  def load_address(t)
@@ -1,3 +1,3 @@
1
1
  module PayTrace
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -135,4 +135,18 @@ describe PayTrace::API::Request do
135
135
 
136
136
 
137
137
  end
138
+
139
+ it "can do a reference sales request " do
140
+
141
+ t = PayTrace::Transaction.new(
142
+ amount: '1.00',
143
+ optional:{transaction_id: '1234'}
144
+ )
145
+
146
+ r = PayTrace::API::Request.new(transaction: t)
147
+ url = r.to_parms_string
148
+
149
+ url.must_match /\|AMOUNT~1.00\|/
150
+ url.must_match /\|TRANXID~1234|/
151
+ end
138
152
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paytrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trevor Redfern