-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Validate PENDING in resume if showSuccessCheckoutOnPendingPaymen…
…t flag is true (#957) * Validate PENDING in resume if flag is true * Remove unused code * Added unit tests for CreateResumeService * Make new flag a bool * Added strings for fintechture * Remove redundant enum * Split out createresume into seperate protocol
- Loading branch information
Showing
12 changed files
with
436 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...erSDK/Classes/Services/Network/Protocols/PrimerAPIClientCreateResumePaymentProtocol.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// PrimerAPIClientCreateResumePaymentProtocol.swift | ||
// PrimerSDK | ||
// | ||
// Created by Niall Quinn on 05/08/24. | ||
// | ||
|
||
import Foundation | ||
|
||
|
||
protocol PrimerAPIClientCreateResumePaymentProtocol { | ||
func createPayment( | ||
clientToken: DecodedJWTToken, | ||
paymentRequestBody: Request.Body.Payment.Create, | ||
completion: @escaping APICompletion<Response.Body.Payment>) | ||
|
||
func resumePayment( | ||
clientToken: DecodedJWTToken, | ||
paymentId: String, | ||
paymentResumeRequest: Request.Body.Payment.Resume, | ||
completion: @escaping APICompletion<Response.Body.Payment>) | ||
} |
Binary file modified
BIN
+324 Bytes
(100%)
Sources/PrimerSDK/Resources/Localizable/en.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
+364 Bytes
(100%)
Sources/PrimerSDK/Resources/Localizable/es.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
+224 Bytes
(100%)
Sources/PrimerSDK/Resources/Localizable/fr.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
+340 Bytes
(100%)
Sources/PrimerSDK/Resources/Localizable/it.lproj/Localizable.strings
Binary file not shown.
Oops, something went wrong.