pagarme 1.9 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/pagarme.gemspec +1 -1
- data/test/pagarme/transaction.rb +15 -0
- 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: 1078b08d54df42f7a95ec5e163769b01e0699816
|
4
|
+
data.tar.gz: a0dcc06d0df81d49953f6fce519b2724582295f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4c3851242c61d78504f520dbd68f62a94b8ac1623b81cf28103fcc574b613b0f63707f8590d5a294083c19ceed9039b620f00c8587431dce85e48e682313b88
|
7
|
+
data.tar.gz: 921a1f600f8be2d8ca3824c96dca4461246b3eca60ed99334ce7d705e6447a840e7b17ea44250e9d71ff4cf056772b4550506872606fb075bdf3c8cb23289602
|
data/Gemfile.lock
CHANGED
data/pagarme.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "pagarme"
|
7
|
-
spec.version = 1.9
|
7
|
+
spec.version = '1.9.1'
|
8
8
|
spec.authors = ["Pedro Franceschi", "Henrique Dubugras"]
|
9
9
|
spec.email = ["pedrohfranceschi@gmail.com", "henrique@pagar.me"]
|
10
10
|
spec.description = %q{Pagar.me's ruby gem}
|
data/test/pagarme/transaction.rb
CHANGED
@@ -11,6 +11,21 @@ module PagarMe
|
|
11
11
|
test_transaction_response(transaction)
|
12
12
|
end
|
13
13
|
|
14
|
+
should 'be able to simulate a boleto payment' do
|
15
|
+
transaction = PagarMe::Transaction.new({
|
16
|
+
:payment_method => "boleto",
|
17
|
+
:amount => "1000"
|
18
|
+
})
|
19
|
+
transaction.charge
|
20
|
+
|
21
|
+
assert transaction.status == 'waiting_payment'
|
22
|
+
|
23
|
+
transaction.status = 'paid'
|
24
|
+
transaction.save
|
25
|
+
|
26
|
+
assert transaction.status == 'paid'
|
27
|
+
end
|
28
|
+
|
14
29
|
should 'be able to refund' do
|
15
30
|
transaction = test_transaction
|
16
31
|
transaction.charge
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagarme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Franceschi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|