Skip to content

Add Capitec Pay and QR (Scan to Pay) charge flows - #132

Merged
peter-paystack merged 10 commits into
mainfrom
feature/Capitec-and-Scan-to-Pay
Sep 8, 2026
Merged

Add Capitec Pay and QR (Scan to Pay) charge flows#132
peter-paystack merged 10 commits into
mainfrom
feature/Capitec-and-Scan-to-Pay

Decode the QR Pusher envelope and fall back to checkPending

36fcf57
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Sep 8, 2026 in 23s

Quality Gate failed

Annotations

Check failure on line 120 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayAwaitingApprovalView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S40cfJTHlCHPTR3z&open=AaB8S40cfJTHlCHPTR3z&pullRequest=132

Check failure on line 127 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayAwaitingApprovalView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S40cfJTHlCHPTR31&open=AaB8S40cfJTHlCHPTR31&pullRequest=132

Check failure on line 142 in Sources/PaystackUI/Charge/QR/Views/QRDisplayView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S41rfJTHlCHPTR4J&open=AaB8S41rfJTHlCHPTR4J&pullRequest=132

Check failure on line 133 in Sources/PaystackUI/Charge/QR/Views/QRDisplayView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S41rfJTHlCHPTR4H&open=AaB8S41rfJTHlCHPTR4H&pullRequest=132

Check warning on line 131 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayIdentifierEntryView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "deviceId" or name it "_".

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S403fJTHlCHPTR39&open=AaB8S403fJTHlCHPTR39&pullRequest=132

Check warning on line 18 in Sources/PaystackSDK/API/Charge/CapitecPayService.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor your code to get this URI from a customizable parameter.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S42lfJTHlCHPTR4L&open=AaB8S42lfJTHlCHPTR4L&pullRequest=132

Check failure on line 119 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayAwaitingApprovalView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S40cfJTHlCHPTR3y&open=AaB8S40cfJTHlCHPTR3y&pullRequest=132

Check warning on line 16 in Sources/PaystackSDK/API/Charge/QRService.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor your code to get this URI from a customizable parameter.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S42efJTHlCHPTR4K&open=AaB8S42efJTHlCHPTR4K&pullRequest=132

Check failure on line 113 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayAwaitingApprovalView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S40cfJTHlCHPTR3x&open=AaB8S40cfJTHlCHPTR3x&pullRequest=132

Check warning on line 123 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayIdentifierEntryView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "details" or name it "_".

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S403fJTHlCHPTR34&open=AaB8S403fJTHlCHPTR34&pullRequest=132

Check failure on line 132 in Sources/PaystackUI/Charge/QR/Views/QRDisplayView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S41rfJTHlCHPTR4G&open=AaB8S41rfJTHlCHPTR4G&pullRequest=132

Check warning on line 164 in Sources/PaystackUI/Charge/QR/Viewmodels/QRViewModel.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "details" or name it "_".

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaCA_Yr_IR4TQaA_47vb&open=AaCA_Yr_IR4TQaA_47vb&pullRequest=132

Check failure on line 112 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayAwaitingApprovalView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S40cfJTHlCHPTR3w&open=AaB8S40cfJTHlCHPTR3w&pullRequest=132

Check warning on line 33 in Sources/PaystackSDK/Core/Models/Models/Charge/QRPusherResponse.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Initializer has 8 parameters, which is greater than the 7 authorized.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaCA_YtEIR4TQaA_47vc&open=AaCA_YtEIR4TQaA_47vc&pullRequest=132

Check failure on line 141 in Sources/PaystackUI/Charge/QR/Views/QRDisplayView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S41rfJTHlCHPTR4I&open=AaB8S41rfJTHlCHPTR4I&pullRequest=132

Check failure on line 123 in Sources/PaystackUI/Charge/QR/Views/QRDisplayView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S41rfJTHlCHPTR4E&open=AaB8S41rfJTHlCHPTR4E&pullRequest=132

Check failure on line 123 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayIdentifierEntryView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this function is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S403fJTHlCHPTR33&open=AaB8S403fJTHlCHPTR33&pullRequest=132

Check warning on line 138 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayIdentifierEntryView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "channelName" or name it "_".

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S403fJTHlCHPTR4A&open=AaB8S403fJTHlCHPTR4A&pullRequest=132

Check failure on line 126 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayAwaitingApprovalView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this closure is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S40cfJTHlCHPTR30&open=AaB8S40cfJTHlCHPTR30&pullRequest=132

Check warning on line 26 in Sources/PaystackUI/Charge/QR/Models/QRDetails.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor your code to get this URI from a customizable parameter.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S41ifJTHlCHPTR4C&open=AaB8S41ifJTHlCHPTR4C&pullRequest=132

Check warning on line 135 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayIdentifierEntryView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "transactionReference" or name it "_".

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S403fJTHlCHPTR3_&open=AaB8S403fJTHlCHPTR3_&pullRequest=132

Check warning on line 130 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayIdentifierEntryView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "transactionId" or name it "_".

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S403fJTHlCHPTR38&open=AaB8S403fJTHlCHPTR38&pullRequest=132

Check warning on line 129 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayIdentifierEntryView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "value" or name it "_".

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S403fJTHlCHPTR37&open=AaB8S403fJTHlCHPTR37&pullRequest=132

Check warning on line 128 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayIdentifierEntryView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "identifier" or name it "_".

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S403fJTHlCHPTR36&open=AaB8S403fJTHlCHPTR36&pullRequest=132

Check failure on line 124 in Sources/PaystackUI/Charge/CapitecPay/Views/CapitecPayIdentifierEntryView.swift

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this function is empty, or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=PaystackHQ_paystack-sdk-ios&issues=AaB8S403fJTHlCHPTR35&open=AaB8S403fJTHlCHPTR35&pullRequest=132