mangopay 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efb0b3e0cf693443b3c9e18d1553a029762cf2263d6ca10d72cd1e19a075de21
|
4
|
+
data.tar.gz: f3a81ab3ed039247efec2bc76f48fe2c28dafb097d6211fbae1d6394b49f8a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3132d0152e7c24690c347d761d3d41dfe1e264ae9a7918590cf792223ee7ba071919ef7339a29bfe21fc33a63297c147c5c5cf9d5a84274119acc052de37ad0
|
7
|
+
data.tar.gz: 1634c646e41c4948dae6abb69fa93319c28b1e7e1cd3ce4383aa966b2b058808fb94e5f4a8f1b448b746475e42c7a09aa4a5c1a4a84d0568bcccb77ed2f61d87
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,36 @@
|
|
1
|
+
## [3.2.0]
|
2
|
+
## Added
|
3
|
+
|
4
|
+
### On demand feature for 3DSv2
|
5
|
+
|
6
|
+
> **This on-demand feature is for testing purposes only and will not be available in production**
|
7
|
+
|
8
|
+
#### Request
|
9
|
+
|
10
|
+
We've added a new parameter `Requested3DSVersion` (not mandatory) that allows you to choose between versions of 3DS protocols (managed by the parameter `SecureMode`). Two values are available:
|
11
|
+
* `V1`
|
12
|
+
* `V2_1`
|
13
|
+
|
14
|
+
If nothing is sent, the flow will be 3DS V1.
|
15
|
+
|
16
|
+
The `Requested3DSVersion` may be included on all calls to the following endpoints:
|
17
|
+
* `/preauthorizations/card/direct`
|
18
|
+
* `/payins/card/direct`
|
19
|
+
|
20
|
+
#### Response
|
21
|
+
|
22
|
+
In the API response, the `Requested3DSVersion` will show the value you requested:
|
23
|
+
* `V1`
|
24
|
+
* `V2_1`
|
25
|
+
* `null` – indicates that nothing was requested
|
26
|
+
|
27
|
+
The parameter `Applied3DSVersion` shows you the version of the 3DS protocol used. Two values are possible:
|
28
|
+
* `V1`
|
29
|
+
* `V2_1`
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
1
34
|
## [3.1.0]
|
2
35
|
- 3DS2 integration with Shipping and Billing objects, including FirstName and LastName fields
|
3
36
|
The objects Billing and Shipping may be included on all calls to the following endpoints:
|
data/lib/mangopay/version.rb
CHANGED
@@ -11,7 +11,7 @@ describe MangoPay::PayIn::ApplePay::Direct, type: :feature do
|
|
11
11
|
|
12
12
|
describe 'CREATE' do
|
13
13
|
it 'creates a applepay direct payin' do
|
14
|
-
pending("no cards to test for")
|
14
|
+
#pending("no cards to test for")
|
15
15
|
created = new_payin_applepay_direct
|
16
16
|
expect(created['Id']).not_to be_nil
|
17
17
|
check_type_and_status(created)
|
@@ -19,6 +19,7 @@ describe MangoPay::PayIn::Card::Direct, type: :feature do
|
|
19
19
|
it 'creates a card direct payin' do
|
20
20
|
created = new_payin_card_direct
|
21
21
|
expect(created['Id']).not_to be_nil
|
22
|
+
expect(created['Requested3DSVersion']).not_to be_nil
|
22
23
|
check_type_and_status(created)
|
23
24
|
end
|
24
25
|
end
|
@@ -15,6 +15,7 @@ describe MangoPay::PreAuthorization do
|
|
15
15
|
expect(created['PaymentStatus']).to eq('WAITING')
|
16
16
|
expect(created['PaymentType']).to eq('CARD')
|
17
17
|
expect(created['ExecutionType']).to eq('DIRECT')
|
18
|
+
expect(created['Requested3DSVersion']).to eq('V1')
|
18
19
|
end
|
19
20
|
end
|
20
21
|
|
@@ -368,7 +368,8 @@ shared_context 'payins' do
|
|
368
368
|
CardType: 'CB_VISA_MASTERCARD',
|
369
369
|
CardId: cardreg['CardId'],
|
370
370
|
SecureModeReturnURL: 'http://test.com',
|
371
|
-
Tag: 'Test PayIn/Card/Direct'
|
371
|
+
Tag: 'Test PayIn/Card/Direct',
|
372
|
+
Requested3DSVersion: 'V1'
|
372
373
|
)
|
373
374
|
end
|
374
375
|
|
@@ -385,7 +386,8 @@ shared_context 'payins' do
|
|
385
386
|
CardId: cardreg['CardId'],
|
386
387
|
SecureMode: 'DEFAULT',
|
387
388
|
SecureModeReturnURL: 'http://test.com',
|
388
|
-
Tag: 'Test Card PreAuthorization'
|
389
|
+
Tag: 'Test Card PreAuthorization',
|
390
|
+
Requested3DSVersion: 'V1'
|
389
391
|
)
|
390
392
|
end
|
391
393
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangopay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoffroy Lorieux
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|