Skip to content

Commit

Permalink
Fixing swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
GMALKHA committed Dec 6, 2024
1 parent 6df2558 commit 4fd409b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct PayPalApprovalResultView: View {
LeadingText("Status", weight: .bold)
LeadingText(status)
}
}
}
.frame(maxWidth: .infinity)
.padding()
.background(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ struct PayPalWebTransactionView: View {
.buttonStyle(RoundedBlueButtonStyle())
.padding()

if payPalWebViewModel.state.capturedOrderResponse == .loading || payPalWebViewModel.state.authorizedOrderResponse == .loading {
if payPalWebViewModel.state.capturedOrderResponse == .loading ||
payPalWebViewModel.state.authorizedOrderResponse == .loading {
CircularProgressView()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PayPalWebPayments
struct PayPalPaymentState: Equatable {

struct ApprovalResult: Decodable, Equatable {

let id: String
let status: String?
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ class PayPalWebViewModel: ObservableObject {
if shouldVault {
let attributes = Attributes(vault: Vault(storeInVault: "ON_SUCCESS", usageType: "MERCHANT", customerType: "CONSUMER"))
// The returnURL is not used in our mobile SDK, but a required field for create order with PayPal payment source. DTPPCPSDK-1492 to track this issue
let paypal = VaultPayPal(attributes: attributes, experienceContext: ExperienceContext(returnURL: "https://example.com/returnUrl", cancelURL: "https://example.com/cancelUrl"))
let paypal = VaultPayPal(
attributes: attributes,
experienceContext: ExperienceContext(
returnURL: "https://example.com/returnUrl",
cancelURL: "https://example.com/cancelUrl"
)
)
vaultPayPalPaymentSource = VaultPayPalPaymentSource(paypal: paypal)
}

Expand Down

0 comments on commit 4fd409b

Please sign in to comment.