paytrace 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paytrace/transaction.rb +1 -0
- data/lib/paytrace/version.rb +1 -1
- data/test/scripts/run_attach_signature.rb +2 -2
- data/test/scripts/run_calculate_shipping_costs.rb +1 -1
- data/test/scripts/run_email_request.rb +1 -1
- data/test/scripts/run_export_customers.rb +1 -1
- data/test/scripts/run_export_transactions.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0594ca7187f8ba182f94fa8396b875dc7bccfa13
|
4
|
+
data.tar.gz: ca0be761ea3f92728838af69ed89434b02b9fe84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67091c357b8a5da6bf5ae535436a6f65e23c5b14ccc1f42e50cdd2cf8755852b51c8f55a7287b17397edea1aa02f6e64038b82a7ed68788ca6b2092a528ae8da
|
7
|
+
data.tar.gz: 963657ca71649d6873018182753dab987adce28cb8420a2ace1a1c7fc25b86b5c44f6a97fce00f6e0f2b87f89b861d00d6829a0a1d0ac3cc55e1b7e63d0a8b79
|
data/lib/paytrace/transaction.rb
CHANGED
@@ -142,6 +142,7 @@ module PayTrace
|
|
142
142
|
def self.attach_signature(params = {})
|
143
143
|
request = PayTrace::API::Request.new
|
144
144
|
request.set_param(:method, ATTACH_SIGNATURE_METHOD)
|
145
|
+
request.set_param(:transaction_id, params[:transaction_id])
|
145
146
|
request.set_param(:image_data, params[:image_data])
|
146
147
|
request.set_param(:image_type, params[:image_type])
|
147
148
|
if params.has_key?(:image_file)
|
data/lib/paytrace/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
$:<< "./lib" # uncomment this to run against a Git clone instead of an installed gem
|
1
|
+
# $:<< "./lib" # uncomment this to run against a Git clone instead of an installed gem
|
2
2
|
|
3
3
|
require "paytrace"
|
4
4
|
require "paytrace/debug"
|
@@ -8,5 +8,5 @@ PayTrace::Debug.configure_test
|
|
8
8
|
# see: http://help.paytrace.com/api-email-receipt for details
|
9
9
|
|
10
10
|
PayTrace::Debug.trace {
|
11
|
-
PayTrace::Transaction.attach_signature({image_file: File.expand_path('smiley_face.png', File.dirname(__FILE__)), image_type: "PNG"})
|
11
|
+
PayTrace::Transaction.attach_signature({transaction_id: 1143, image_file: File.expand_path('smiley_face.png', File.dirname(__FILE__)), image_type: "PNG"})
|
12
12
|
}
|
@@ -6,7 +6,7 @@ require "paytrace/debug"
|
|
6
6
|
PayTrace::Debug.configure_test
|
7
7
|
|
8
8
|
PayTrace::Debug.trace do
|
9
|
-
e = PayTrace::EmailReceiptRequest.new({email: "support@paytrace.com", check_id: "
|
9
|
+
e = PayTrace::EmailReceiptRequest.new({email: "support@paytrace.com", check_id: "62" })
|
10
10
|
r = e.send_request
|
11
11
|
end
|
12
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paytrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trevor Redfern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|