File tree 1 file changed +0
-4
lines changed
Demo/Demo/PayPalWebPayments/PayPalWebViewModel
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,6 @@ class PayPalWebViewModel: ObservableObject {
54
54
DispatchQueue . main. async {
55
55
self . state. createdOrderResponse = . loaded( order)
56
56
}
57
- // updateOrder(order)
58
- // updateState(.success)
59
57
print ( " ✅ fetched orderID: \( order. id) with status: \( order. status) " )
60
58
} catch {
61
59
DispatchQueue . main. async {
@@ -132,7 +130,6 @@ class PayPalWebViewModel: ObservableObject {
132
130
}
133
131
}
134
132
} else {
135
- // self.updateState(.success)
136
133
DispatchQueue . main. async {
137
134
self . state. createdOrderResponse = . loaded( Order ( id: orderID, status: " COMPLETED " ) )
138
135
self . checkoutResult = result
@@ -141,7 +138,6 @@ class PayPalWebViewModel: ObservableObject {
141
138
}
142
139
}
143
140
}
144
- // updateState(.success)
145
141
} catch {
146
142
print ( " Error starting PayPalWebCheckoutClient " )
147
143
self . state. createdOrderResponse = . error( message: error. localizedDescription)
You can’t perform that action at this time.
0 commit comments