payjp 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +0 -0
- data/.gitignore +0 -0
- data/.rubocop.yml +0 -0
- data/.rubocop_todo.yml +0 -0
- data/CONTRIBUTORS +0 -0
- data/Gemfile +0 -0
- data/History.txt +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/lib/payjp/account.rb +0 -0
- data/lib/payjp/api_operations/create.rb +0 -0
- data/lib/payjp/api_operations/delete.rb +0 -0
- data/lib/payjp/api_operations/list.rb +0 -0
- data/lib/payjp/api_operations/request.rb +0 -0
- data/lib/payjp/api_operations/update.rb +0 -0
- data/lib/payjp/api_resource.rb +0 -0
- data/lib/payjp/card.rb +0 -0
- data/lib/payjp/charge.rb +9 -0
- data/lib/payjp/customer.rb +0 -0
- data/lib/payjp/errors/api_connection_error.rb +0 -0
- data/lib/payjp/errors/api_error.rb +0 -0
- data/lib/payjp/errors/authentication_error.rb +0 -0
- data/lib/payjp/errors/card_error.rb +0 -0
- data/lib/payjp/errors/invalid_request_error.rb +0 -0
- data/lib/payjp/errors/payjp_error.rb +0 -0
- data/lib/payjp/event.rb +0 -0
- data/lib/payjp/list_object.rb +0 -0
- data/lib/payjp/payjp_object.rb +0 -0
- data/lib/payjp/plan.rb +0 -0
- data/lib/payjp/subscription.rb +0 -0
- data/lib/payjp/tenant.rb +0 -0
- data/lib/payjp/token.rb +0 -0
- data/lib/payjp/transfer.rb +0 -0
- data/lib/payjp/util.rb +0 -0
- data/lib/payjp/version.rb +1 -1
- data/lib/payjp.rb +0 -0
- data/payjp.gemspec +0 -0
- data/test/payjp/account_test.rb +0 -0
- data/test/payjp/api_resource_test.rb +0 -0
- data/test/payjp/charge_test.rb +12 -0
- data/test/payjp/customer_card_test.rb +0 -0
- data/test/payjp/customer_test.rb +0 -0
- data/test/payjp/event_test.rb +0 -0
- data/test/payjp/list_object_test.rb +0 -0
- data/test/payjp/metadata_test.rb +0 -0
- data/test/payjp/payjp_object_test.rb +0 -0
- data/test/payjp/plan_test.rb +0 -0
- data/test/payjp/subscription_test.rb +0 -0
- data/test/payjp/tenant_test.rb +0 -0
- data/test/payjp/token_test.rb +0 -0
- data/test/payjp/transfer_test.rb +0 -0
- data/test/payjp/util_test.rb +0 -0
- data/test/test_data.rb +0 -0
- data/test/test_helper.rb +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea73b4ff6c1c71f4c571eca0fe6b9ecc907e71b4fc1914a10438eacf7eb50b6c
|
4
|
+
data.tar.gz: 5212a4b8341623b164dbb4869a13a4c423454b7bbfbad2ec43b09f78bdce177f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e6f7dd0643142735d9929e6f8c5b9bf08ea7239597e26ed88f43a32fd082ab524f4b3ce13c35647458b53a283a23bea409e0d2e04e5d78a8470acd25eb804cd
|
7
|
+
data.tar.gz: 3239795693202e338eea11b1b88c61ea5ffdd7fac72d1545580276700b2d37b0949651e0bf7239eefd4c328af7695fb1275f22d3f37d710c60705eb53e2e88ac
|
data/.github/workflows/test.yml
CHANGED
File without changes
|
data/.gitignore
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/.rubocop_todo.yml
CHANGED
File without changes
|
data/CONTRIBUTORS
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/History.txt
CHANGED
File without changes
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/lib/payjp/account.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/payjp/api_resource.rb
CHANGED
File without changes
|
data/lib/payjp/card.rb
CHANGED
File without changes
|
data/lib/payjp/charge.rb
CHANGED
@@ -19,6 +19,11 @@ module Payjp
|
|
19
19
|
refresh_from(response, opts)
|
20
20
|
end
|
21
21
|
|
22
|
+
def tds_finish(params = {}, opts = {})
|
23
|
+
response, opts = request(:post, tds_finish_url, params, opts)
|
24
|
+
refresh_from(response, opts)
|
25
|
+
end
|
26
|
+
|
22
27
|
private
|
23
28
|
|
24
29
|
def refund_url
|
@@ -32,5 +37,9 @@ module Payjp
|
|
32
37
|
def reauth_url
|
33
38
|
url + '/reauth'
|
34
39
|
end
|
40
|
+
|
41
|
+
def tds_finish_url
|
42
|
+
url + '/tds_finish'
|
43
|
+
end
|
35
44
|
end
|
36
45
|
end
|
data/lib/payjp/customer.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/payjp/event.rb
CHANGED
File without changes
|
data/lib/payjp/list_object.rb
CHANGED
File without changes
|
data/lib/payjp/payjp_object.rb
CHANGED
File without changes
|
data/lib/payjp/plan.rb
CHANGED
File without changes
|
data/lib/payjp/subscription.rb
CHANGED
File without changes
|
data/lib/payjp/tenant.rb
CHANGED
File without changes
|
data/lib/payjp/token.rb
CHANGED
File without changes
|
data/lib/payjp/transfer.rb
CHANGED
File without changes
|
data/lib/payjp/util.rb
CHANGED
File without changes
|
data/lib/payjp/version.rb
CHANGED
data/lib/payjp.rb
CHANGED
File without changes
|
data/payjp.gemspec
CHANGED
File without changes
|
data/test/payjp/account_test.rb
CHANGED
File without changes
|
File without changes
|
data/test/payjp/charge_test.rb
CHANGED
@@ -91,5 +91,17 @@ module Payjp
|
|
91
91
|
c.reauth
|
92
92
|
assert_equal expired_at.to_i, c.expired_at
|
93
93
|
end
|
94
|
+
|
95
|
+
should "charges should be three_d_secure finishable" do
|
96
|
+
@mock.expects(:get).never
|
97
|
+
@mock.expects(:post).with do |url, api_key, params|
|
98
|
+
url == "#{Payjp.api_base}/v1/charges/test_charge/tds_finish" && api_key.nil? && CGI.parse(params) == {}
|
99
|
+
end.once.returns(test_response({ :id => "test_charge", :paid => true, :captured => true }))
|
100
|
+
|
101
|
+
c = Payjp::Charge.new("test_charge")
|
102
|
+
c.tds_finish
|
103
|
+
assert c.paid
|
104
|
+
assert c.captured
|
105
|
+
end
|
94
106
|
end
|
95
107
|
end
|
File without changes
|
data/test/payjp/customer_test.rb
CHANGED
File without changes
|
data/test/payjp/event_test.rb
CHANGED
File without changes
|
File without changes
|
data/test/payjp/metadata_test.rb
CHANGED
File without changes
|
File without changes
|
data/test/payjp/plan_test.rb
CHANGED
File without changes
|
File without changes
|
data/test/payjp/tenant_test.rb
CHANGED
File without changes
|
data/test/payjp/token_test.rb
CHANGED
File without changes
|
data/test/payjp/transfer_test.rb
CHANGED
File without changes
|
data/test/payjp/util_test.rb
CHANGED
File without changes
|
data/test/test_data.rb
CHANGED
File without changes
|
data/test/test_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payjp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PAY.JP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
185
|
-
rubygems_version: 3.1.
|
185
|
+
rubygems_version: 3.1.2
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Ruby bindings for the Payjp API
|