@@ -190,23 +190,6 @@ public void Payments3DS2Test()
190190 Assert . IsNotNull ( paymentResponse . Action . GetCheckoutThreeDS2Action ( ) . PaymentData ) ;
191191 }
192192
193- /// <summary>
194- /// Test 3ds success flow for
195- /// POST /payments/result
196- /// </summary>
197- [ TestMethod ]
198- public void PaymentsAuthorise3ds2ResultSuccessTest ( )
199- {
200- var paymentResultRequest = CreatePaymentVerificationRequest ( ) ;
201- var client = CreateMockTestClientApiKeyBasedRequestAsync ( "mocks/threedsecure2/authorise3ds2-success.json" ) ;
202- var checkout = new ClassicCheckoutSDKService ( client ) ;
203- var paymentResultResponse = checkout . VerifyPaymentResult ( paymentResultRequest ) ;
204- Assert . IsNotNull ( paymentResultResponse . AdditionalData ) ;
205- Assert . AreEqual ( paymentResultResponse . AdditionalData [ "cvcResult" ] , "1 Matches" ) ;
206- Assert . AreEqual ( paymentResultResponse . MerchantReference , "your_merchantReference" ) ;
207- Assert . AreEqual ( paymentResultResponse . ResultCode , PaymentVerificationResponse . ResultCodeEnum . Authorised ) ;
208- }
209-
210193 /// <summary>
211194 /// Test error flow for
212195 /// POST /payments
@@ -402,96 +385,6 @@ public void PaymentMethodsWithoutBrandsTest()
402385 Assert . AreEqual ( paymentMethodsResponse . PaymentMethods . Count , 50 ) ;
403386 }
404387
405-
406- /// <summary>
407- /// Test success flow for
408- /// POST /paymentSession
409- /// </summary>
410- [ TestMethod ]
411- public void PaymentSessionSuccessTest ( )
412- {
413- var paymentSessionRequest = CreatePaymentSetupRequest ( ) ;
414- var client = CreateMockTestClientApiKeyBasedRequestAsync ( "mocks/checkout/paymentsession-success.json" ) ;
415- var checkout = new ClassicCheckoutSDKService ( client ) ;
416- var paymentSessionResponse = checkout . PaymentSession ( paymentSessionRequest ) ;
417- Assert . IsNotNull ( paymentSessionResponse . PaymentSession ) ;
418- }
419-
420- /// <summary>
421- /// Test success flow for async
422- /// POST /paymentSession
423- /// </summary>
424- [ TestMethod ]
425- public async Task PaymentSessionAsyncSuccessTest ( )
426- {
427- var paymentSetupRequest = CreatePaymentSetupRequest ( ) ;
428- var client = CreateMockTestClientApiKeyBasedRequestAsync ( "mocks/checkout/paymentsession-success.json" ) ;
429- var checkout = new ClassicCheckoutSDKService ( client ) ;
430- var paymentSetupResponse = await checkout . PaymentSessionAsync ( paymentSetupRequest ) ;
431- Assert . IsNotNull ( paymentSetupResponse . PaymentSession ) ;
432- }
433-
434- /// <summary>
435- /// Test success flow for
436- /// POST /paymentSession
437- /// </summary>
438- [ TestMethod ]
439- public void PaymentSessionErrorTest ( )
440- {
441- var paymentSetupRequest = CreatePaymentSetupRequest ( ) ;
442- var client =
443- CreateMockTestClientApiKeyBasedRequestAsync (
444- "mocks/checkout/paymentsession-error-invalid-data-422.json" ) ;
445- var checkout = new ClassicCheckoutSDKService ( client ) ;
446- var paymentSetupResponse = checkout . PaymentSession ( paymentSetupRequest ) ;
447- Assert . IsNull ( paymentSetupResponse . PaymentSession ) ;
448- }
449-
450- /// <summary>
451- /// Test success flow for
452- /// POST /payments/result
453- /// </summary>
454- [ TestMethod ]
455- public void PaymentsResultSuccessTest ( )
456- {
457- var paymentResultRequest = CreatePaymentVerificationRequest ( ) ;
458- var client = CreateMockTestClientApiKeyBasedRequestAsync ( "mocks/checkout/paymentsresult-success.json" ) ;
459- var checkout = new ClassicCheckoutSDKService ( client ) ;
460- var paymentResultResponse = checkout . VerifyPaymentResult ( paymentResultRequest ) ;
461- Assert . AreEqual ( paymentResultResponse . ResultCode , PaymentVerificationResponse . ResultCodeEnum . Authorised ) ;
462- }
463-
464- /// <summary>
465- /// Test success flow for async
466- /// POST /payments/result
467- /// </summary>
468- [ TestMethod ]
469- public async Task PaymentsResultAsyncSuccessTest ( )
470- {
471- var paymentVerificationRequest = CreatePaymentVerificationRequest ( ) ;
472- var client = CreateMockTestClientApiKeyBasedRequestAsync ( "mocks/checkout/paymentsresult-success.json" ) ;
473- var checkout = new ClassicCheckoutSDKService ( client ) ;
474- var paymentVerificationResponse = await checkout . VerifyPaymentResultAsync ( paymentVerificationRequest ) ;
475- Assert . AreEqual ( paymentVerificationResponse . ResultCode ,
476- PaymentVerificationResponse . ResultCodeEnum . Authorised ) ;
477- }
478-
479- /// <summary>
480- /// Test success flow for
481- /// POST /payments/result
482- /// </summary>
483- [ TestMethod ]
484- public void PaymentsResultErrorTest ( )
485- {
486- var paymentResultRequest = CreatePaymentVerificationRequest ( ) ;
487- var client =
488- CreateMockTestClientApiKeyBasedRequestAsync (
489- "mocks/checkout/paymentsresult-error-invalid-data-payload-422.json" ) ;
490- var checkout = new ClassicCheckoutSDKService ( client ) ;
491- var paymentResultResponse = checkout . VerifyPaymentResult ( paymentResultRequest ) ;
492- Assert . IsNull ( paymentResultResponse . ResultCode ) ;
493- }
494-
495388 [ TestMethod ]
496389 public void ApplicationInfoTest ( )
497390 {
0 commit comments