Skip to content

Commit 9e06ea0

Browse files
author
Steffen Lund Andersen
committed
Add the shopsystem when creating a payment
1 parent 9e20b8b commit 9e06ea0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Sources/QuickPaySDK/Networking/QuickPay API/QuickPay Link/Models/QPPayment.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ public class QPPayment: Codable {
4040
public var shipping: QPShipping?
4141
public var metadata: QPMetadata?
4242
public var link: QPPaymentLink?
43+
public var shopsystem: QPShopSystem?
4344

4445
}

Sources/QuickPaySDK/Networking/QuickPay API/QuickPay Link/Payments/QPCreatePaymentRequest.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,18 @@ public class QPCreatePaymentParameters: Codable {
5555
public var shipping: QPShipping?
5656
public var invoice_address: QPAddress?
5757
public var shipping_address:QPAddress?
58+
public var shopSystem:QPShopSystem?
5859

5960

6061
// MARK: Init
6162

6263
public init(currency: String, order_id: String) {
6364
self.currency = currency
6465
self.order_id = order_id
66+
67+
self.shopSystem = QPShopSystem()
68+
self.shopSystem?.name = "iOS-SDK"
69+
self.shopSystem?.version = "2.0.0"
6570
}
6671

6772
}

0 commit comments

Comments
 (0)