mangopay 3.11.0 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1fdfc923ff995412c8aaf53d8bb4684f35dbae82937532bb5c5682e54888462
4
- data.tar.gz: 2c7930a03a8e10a5ed13e35bb9bd3834fa1a738ca45232546b81935b5ec29dcb
3
+ metadata.gz: 1b1c4ab5a218b4ccd0da9317cb444381509768780a2ff99d27b920ae48edbbec
4
+ data.tar.gz: 3c5af9a55982270cd08a57a02603f243c0c205f512a8560536ee5a370f0a6951
5
5
  SHA512:
6
- metadata.gz: 76ec1a6e0bbeca5e530f1e994501eed2471a4e2af1f6761e538ce9639873172b8a4a0d6278ecd45e146ae7e2b0a459828cb4a2958374e36b369fa756422bf210
7
- data.tar.gz: bfac13d78271a3dc3466f4f8bba3f3287baef8786528b7794a5af204f5bf7e6d4154a960f3b1dac41ebe4f60a735b4398d91ecdd1f67f22d0cb72b2d97de14f0
6
+ metadata.gz: 515d50e9a5dcfcaab5fc81cf63609e80351ae955efaec23e7549c32ff345184e4af24ecf50367d482cfda1cd2e93d513271ebda859bee48379cf89ef5fa3769d
7
+ data.tar.gz: f6a6dace6284cbac4b6bb27a23092196fcfd8f325fccf850c3dfd47431fbedf280d1e2cd77cac1b3c65642b4992cd2ecfd906a0bfc533942274bf00e4c1bc81e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [3.11.1] - 2022-10-18
2
+ ### Fixed
3
+
4
+ Tests has been fixed due to API evolution.
5
+
1
6
  ## [3.11.0] - 2022-09-08
2
7
  ##Added
3
8
  **New country authorizations endpoints**
@@ -1,3 +1,3 @@
1
1
  module MangoPay
2
- VERSION = '3.11.0'
2
+ VERSION = '3.11.1'
3
3
  end
@@ -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('V1')
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
- 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'
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: 4970100000000154,
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
- data: cardreg['PreregistrationData'],
381
- accessKeyRef: cardreg['AccessKey'],
382
- cardNumber: 4970105191923460,
383
- cardExpirationDate: 1224,
384
- cardCvx: 123}
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: 'V1'
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: 'V1'
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.0
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-09-08 00:00:00.000000000 Z
12
+ date: 2022-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json