Skip to content

Commit 0f48fed

Browse files
authored
Merge pull request #25 from SwedbankPay/feature/native-payments
SDK version 5 with Native Payments
2 parents 05c195f + 77f7bf2 commit 0f48fed

File tree

24 files changed

+1352
-59
lines changed

24 files changed

+1352
-59
lines changed

.github/workflows/deploy_new_version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77

88
jobs:
99
deploy:
10-
runs-on: macos-latest
10+
runs-on: macos-13
1111
steps:
1212
- uses: actions/checkout@v3
1313
- uses: maxim-lobanov/setup-xcode@v1
1414
with:
15-
xcode-version: "14.2"
15+
xcode-version: "15.0.1"
1616
- run: swift run
1717
working-directory: ./deploy_new_version
1818
env:

Example-app.xcodeproj/project.pbxproj

Lines changed: 92 additions & 15 deletions
Large diffs are not rendered by default.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//General
2+
"general_checkout" = "Checkout";
3+
"general_ok" = "OK";
4+
"general_retry" = "Retry";
5+
6+
// Stand-alone URL View Controller
7+
"stand_alone_url_payment_successful" = "Payment completed";
8+
"stand_alone_url_payment_cancelled" = "Payment cancelled";
9+
10+
"stand_alone_url_payment_view_checkout_url" = "View checkout URL";
11+
"stand_alone_url_payment_base_url" = "Base URL";
12+
"stand_alone_url_payment_complete_url" = "Complete URL";
13+
"stand_alone_url_payment_cancel_url" = "Cancel URL";
14+
"stand_alone_url_payment_checkout_v3" = "Use Checkout V3";
15+
"stand_alone_url_payment_payment_url" = "Payment URL";
16+
"stand_alone_url_payment_payment_url_scheme" = "swedbankexample://";
17+
"stand_alone_url_payment_session_url" = "Session URL";
18+
"stand_alone_url_payment_get_session" = "Get Session";
19+
"stand_alone_url_payment_swish_number" = "Swish number";
20+
"stand_alone_url_payment_swish" = "Swish";
21+
"stand_alone_url_payment_swish_device" = "Swish using this device";
22+
"stand_alone_url_payment_swish_prefill %@" = "Swish: %@";
23+
"stand_alone_url_payment_credit_card_prefill %@" = "Credit Card: %@";
24+
"stand_alone_url_payment_new_credit_card" = "New Credit Card";
25+
"stand_alone_url_payment_abort" = "Abort";
26+
"stand_alone_url_payment_session_end_state_reached" = "Something went wrong with the payment";
27+
"stand_alone_internal_inconsistency_error" = "Something was called it the wrong order";
28+
"stand_alone_generic_error_title" = "Something went wrong";
29+
"stand_alone_url_seamless_title" = "Seamless View";
30+
"stand_alone_url_payment_web" = "Get payment menu";
31+
"stand_alone_url_payment_web_restricted" = "Get payment menu\nRestricted to non native";
32+
"stand_alone_url_payment_apple_pay" = "ApplePay";
33+
"stand_alone_url_payment_web_based" = "Web Based";

Example-app/Base.lproj/Main.storyboard

Lines changed: 109 additions & 36 deletions
Large diffs are not rendered by default.

Example-app/Example-app.entitlements

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99
<string>applinks:pp-dot-payex-merchant-samples.ey.r.appspot.com</string>
1010
<string>applinks:payex-merchant-samples-prod.appspot.com</string>
1111
</array>
12+
<key>com.apple.developer.in-app-payments</key>
13+
<array>
14+
<string>merchant.com.swedbankpay.exampleapp</string>
15+
<string>merchant.com.swedbankpay.charity</string>
16+
</array>
1217
</dict>
1318
</plist>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Foundation
2+
3+
extension String {
4+
var localize: String {
5+
return NSLocalizedString(self, comment: "")
6+
}
7+
8+
func localize(_ arguments: CVarArg...) -> String {
9+
return String(format: self.localize, arguments: arguments)
10+
}
11+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"info" : {
3-
"version" : 1,
4-
"author" : "xcode"
3+
"author" : "xcode",
4+
"version" : 1
55
}
6-
}
6+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "download-2.png",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"template-rendering-intent" : "original"
14+
}
15+
}
8.49 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "download.png",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"template-rendering-intent" : "original"
14+
}
15+
}

0 commit comments

Comments
 (0)