Skip to content

Commit 4da01cb

Browse files
committed
Merge branch 'feature/SP-91-apple-pay-payment-readiness' into 'feature/sdk-version-5.0.1'
Apple pay payment readiness See merge request swedbank-pay/swedbank-pay-example-app-ios!13
2 parents 0f48fed + f3c4675 commit 4da01cb

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

Example-app.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@
10261026
repositoryURL = "https://github.com/SwedbankPay/swedbank-pay-sdk-ios.git";
10271027
requirement = {
10281028
kind = upToNextMajorVersion;
1029-
minimumVersion = 5.0.0;
1029+
minimumVersion = "5.0.1-rc.2";
10301030
};
10311031
};
10321032
/* End XCRemoteSwiftPackageReference section */

Example-app/Base.lproj/Localizable.strings

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@
3030
"stand_alone_url_payment_web" = "Get payment menu";
3131
"stand_alone_url_payment_web_restricted" = "Get payment menu\nRestricted to non native";
3232
"stand_alone_url_payment_apple_pay" = "ApplePay";
33+
"stand_alone_url_payment_apple_pay_can_make_payments %@" = "Can make payments: %@";
34+
"stand_alone_url_payment_apple_pay_using_networks_and_capabilities %@" = "...using networks and capabilities: %@";
3335
"stand_alone_url_payment_web_based" = "Web Based";

Example-app/Views/StandaloneUrlView.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,17 @@ struct StandaloneUrlView: View {
421421
.background(.black)
422422
.cornerRadius(30)
423423
.padding(.top, 10)
424-
case .applePay:
424+
case .applePay(let canMakePayments, let canMakePaymentsUsingNetworksAndCapabilities):
425+
VStack(spacing: 0) {
426+
Text("stand_alone_url_payment_apple_pay")
427+
Text("stand_alone_url_payment_apple_pay_can_make_payments \(String(canMakePayments))")
428+
Text("stand_alone_url_payment_apple_pay_using_networks_and_capabilities \(String(canMakePaymentsUsingNetworksAndCapabilities))")
429+
}
430+
.smallFont()
431+
.frame(maxWidth: .infinity)
432+
.accessibilityIdentifier("applePayPaymentReadinessLabel")
433+
.foregroundColor(.black)
434+
425435
Button {
426436
isFocused = false
427437

Example-app/en.lproj/Localizable.strings

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"stand_alone_url_payment_base_url" = "Base URL";
1212
"stand_alone_url_payment_complete_url" = "Complete URL";
1313
"stand_alone_url_payment_cancel_url" = "Cancel URL";
14-
"stand_alone_url_payment_checkout_v3" = "Use CheckoutV3";
14+
"stand_alone_url_payment_checkout_v3" = "Use Checkout V3";
1515
"stand_alone_url_payment_payment_url" = "Payment URL";
1616
"stand_alone_url_payment_payment_url_scheme" = "swedbankexample://";
1717
"stand_alone_url_payment_session_url" = "Session URL";
@@ -30,4 +30,6 @@
3030
"stand_alone_url_payment_web" = "Get payment menu";
3131
"stand_alone_url_payment_web_restricted" = "Get payment menu\nRestricted to non native";
3232
"stand_alone_url_payment_apple_pay" = "ApplePay";
33+
"stand_alone_url_payment_apple_pay_can_make_payments %@" = "Can make payments: %@";
34+
"stand_alone_url_payment_apple_pay_using_networks_and_capabilities %@" = "...using networks and capabilities: %@";
3335
"stand_alone_url_payment_web_based" = "Web Based";

0 commit comments

Comments
 (0)