Skip to content

Commit 5b30e7f

Browse files
committed
Move URL to WooConstants to indicate trust
1 parent 79382af commit 5b30e7f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

WooCommerce/Classes/System/WooConstants.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ extension WooConstants {
154154
#else
155155
case couponManagementFeedback = "https://automattic.survey.fm/woo-app-coupon-management-production"
156156
#endif
157+
/// URL for the Enable Cash on Delivery (or Pay in Person) onboarding step's learn more link.
158+
///
159+
case cashOnDeliveryLearnMoreUrl = "https://woocommerce.com/document/stripe/accept-in-person-payments-with-stripe/#section-8"
157160

158161
/// Returns the URL version of the receiver
159162
///

WooCommerce/Classes/ViewRelated/Dashboard/Settings/In-Person Payments/Onboarding Errors/InPersonPaymentsCashOnDeliveryPaymentGatewayNotSetUpView.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct InPersonPaymentsCashOnDeliveryPaymentGatewayNotSetUpView: View {
2727

2828
Spacer()
2929

30-
InPersonPaymentsLearnMore(url: Constants.cashOnDeliveryLearnMoreUrl,
30+
InPersonPaymentsLearnMore(url: WooConstants.URLs.cashOnDeliveryLearnMoreUrl.asURL(),
3131
formatText: Localization.cashOnDeliveryLearnMore)
3232
}
3333
}
@@ -70,6 +70,4 @@ private enum Localization {
7070

7171
private enum Constants {
7272
static let imageHeight: CGFloat = 140.0
73-
static let cashOnDeliveryLearnMoreUrl = URL(
74-
string: "https://woocommerce.com/document/stripe/accept-in-person-payments-with-stripe/#section-8")!
7573
}

WooCommerce/Classes/ViewRelated/Dashboard/Settings/In-Person Payments/Onboarding Errors/InPersonPaymentsCashOnDeliveryPaymentGatewayNotSetUpViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import Yosemite
33

4-
class InPersonPaymentsCashOnDeliveryPaymentGatewayNotSetUpViewModel: ObservableObject {
4+
final class InPersonPaymentsCashOnDeliveryPaymentGatewayNotSetUpViewModel: ObservableObject {
55
let completion: () -> ()
66
private let stores: StoresManager
77
private let noticePresenter: NoticePresenter

0 commit comments

Comments
 (0)