mangopay 3.11.0 → 3.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/mangopay/version.rb +1 -1
- data/spec/mangopay/preauthorization_spec.rb +1 -1
- data/spec/mangopay/shared_resources.rb +52 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b1c4ab5a218b4ccd0da9317cb444381509768780a2ff99d27b920ae48edbbec
|
4
|
+
data.tar.gz: 3c5af9a55982270cd08a57a02603f243c0c205f512a8560536ee5a370f0a6951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 515d50e9a5dcfcaab5fc81cf63609e80351ae955efaec23e7549c32ff345184e4af24ecf50367d482cfda1cd2e93d513271ebda859bee48379cf89ef5fa3769d
|
7
|
+
data.tar.gz: f6a6dace6284cbac4b6bb27a23092196fcfd8f325fccf850c3dfd47431fbedf280d1e2cd77cac1b3c65642b4992cd2ecfd906a0bfc533942274bf00e4c1bc81e
|
data/CHANGELOG.md
CHANGED
data/lib/mangopay/version.rb
CHANGED
@@ -15,7 +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('
|
18
|
+
expect(created['Requested3DSVersion']).to eq('V2_1')
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -221,13 +221,13 @@ shared_context 'payins' do
|
|
221
221
|
|
222
222
|
let(:new_payin_payconiq_web) do
|
223
223
|
MangoPay::PayIn::Payconiq::Web.create(
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
224
|
+
AuthorId: new_natural_user['Id'],
|
225
|
+
CreditedWalletId: new_wallet['Id'],
|
226
|
+
DebitedFunds: {Currency: 'EUR', Amount: 100},
|
227
|
+
Fees: {Currency: 'EUR', Amount: 0},
|
228
|
+
ReturnURL: MangoPay.configuration.root_url,
|
229
|
+
Country: "BE",
|
230
|
+
Tag: 'Custom Meta'
|
231
231
|
)
|
232
232
|
end
|
233
233
|
|
@@ -357,7 +357,7 @@ shared_context 'payins' do
|
|
357
357
|
data = {
|
358
358
|
data: cardreg['PreregistrationData'],
|
359
359
|
accessKeyRef: cardreg['AccessKey'],
|
360
|
-
cardNumber:
|
360
|
+
cardNumber: 4970105191923460,
|
361
361
|
cardExpirationDate: 1226,
|
362
362
|
cardCvx: 123}
|
363
363
|
|
@@ -377,11 +377,11 @@ shared_context 'payins' do
|
|
377
377
|
|
378
378
|
# 2nd step: tokenize by payline (fills-in RegistrationData)
|
379
379
|
data = {
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
380
|
+
data: cardreg['PreregistrationData'],
|
381
|
+
accessKeyRef: cardreg['AccessKey'],
|
382
|
+
cardNumber: 4970105191923460,
|
383
|
+
cardExpirationDate: 1224,
|
384
|
+
cardCvx: 123}
|
385
385
|
|
386
386
|
res = Net::HTTP.post_form(URI(cardreg['CardRegistrationURL']), data)
|
387
387
|
raise Exception, [res, res.body] unless res.is_a?(Net::HTTPOK) && res.body.start_with?('data=')
|
@@ -407,7 +407,19 @@ shared_context 'payins' do
|
|
407
407
|
CardId: cardreg['CardId'],
|
408
408
|
SecureModeReturnURL: 'http://test.com',
|
409
409
|
Tag: 'Test PayIn/Card/Direct',
|
410
|
-
Requested3DSVersion: '
|
410
|
+
Requested3DSVersion: 'V2_1',
|
411
|
+
BrowserInfo: {
|
412
|
+
AcceptHeader: "text/html, application/xhtml+xml, application/xml;q=0.9, /;q=0.8",
|
413
|
+
JavaEnabled: true,
|
414
|
+
Language: "FR-FR",
|
415
|
+
ColorDepth: 4,
|
416
|
+
ScreenHeight: 1800,
|
417
|
+
ScreenWidth: 400,
|
418
|
+
JavascriptEnabled: true,
|
419
|
+
TimeZoneOffset: "+60",
|
420
|
+
UserAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
|
421
|
+
},
|
422
|
+
IpAddress: "2001:0620:0000:0000:0211:24FF:FE80:C12C"
|
411
423
|
)
|
412
424
|
end
|
413
425
|
|
@@ -425,7 +437,19 @@ shared_context 'payins' do
|
|
425
437
|
SecureMode: 'DEFAULT',
|
426
438
|
SecureModeReturnURL: 'http://test.com',
|
427
439
|
Tag: 'Test Card PreAuthorization',
|
428
|
-
Requested3DSVersion: '
|
440
|
+
Requested3DSVersion: 'V2_1',
|
441
|
+
BrowserInfo: {
|
442
|
+
AcceptHeader: "text/html, application/xhtml+xml, application/xml;q=0.9, /;q=0.8",
|
443
|
+
JavaEnabled: true,
|
444
|
+
Language: "FR-FR",
|
445
|
+
ColorDepth: 4,
|
446
|
+
ScreenHeight: 1800,
|
447
|
+
ScreenWidth: 400,
|
448
|
+
JavascriptEnabled: true,
|
449
|
+
TimeZoneOffset: "+60",
|
450
|
+
UserAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
|
451
|
+
},
|
452
|
+
IpAddress: "2001:0620:0000:0000:0211:24FF:FE80:C12C"
|
429
453
|
)
|
430
454
|
end
|
431
455
|
|
@@ -440,7 +464,19 @@ shared_context 'payins' do
|
|
440
464
|
DebitedFunds: {Currency: 'EUR', Amount: amnt},
|
441
465
|
Fees: {Currency: 'EUR', Amount: 0},
|
442
466
|
PreauthorizationId: preauth['Id'],
|
443
|
-
Tag: 'Test PayIn/PreAuthorized/Direct'
|
467
|
+
Tag: 'Test PayIn/PreAuthorized/Direct',
|
468
|
+
BrowserInfo: {
|
469
|
+
AcceptHeader: "text/html, application/xhtml+xml, application/xml;q=0.9, /;q=0.8",
|
470
|
+
JavaEnabled: true,
|
471
|
+
Language: "FR-FR",
|
472
|
+
ColorDepth: 4,
|
473
|
+
ScreenHeight: 1800,
|
474
|
+
ScreenWidth: 400,
|
475
|
+
JavascriptEnabled: true,
|
476
|
+
TimeZoneOffset: "+60",
|
477
|
+
UserAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
|
478
|
+
},
|
479
|
+
IpAddress: "2001:0620:0000:0000:0211:24FF:FE80:C12C"
|
444
480
|
)
|
445
481
|
end
|
446
482
|
|
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.11.
|
4
|
+
version: 3.11.1
|
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: 2022-
|
12
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|