This reverts commit d0617bef64
.
This commit is contained in:
parent
7811fd8fd1
commit
52e9b64c0f
|
@ -214,6 +214,7 @@ class PlaygroundController: ObservableObject {
|
||||||
init(settings: PaymentSheetTestPlaygroundSettings) {
|
init(settings: PaymentSheetTestPlaygroundSettings) {
|
||||||
// Enable experimental payment methods.
|
// Enable experimental payment methods.
|
||||||
// PaymentSheet.supportedPaymentMethods += [.link]
|
// PaymentSheet.supportedPaymentMethods += [.link]
|
||||||
|
PaymentSheet.enableACHV2InDeferredFlow = true // TODO(https://jira.corp.stripe.com/browse/BANKCON-6731) Remove this.
|
||||||
|
|
||||||
// Hack to ensure we don't force the native flow unless we're in a UI test
|
// Hack to ensure we don't force the native flow unless we're in a UI test
|
||||||
if ProcessInfo.processInfo.environment["UITesting"] == nil {
|
if ProcessInfo.processInfo.environment["UITesting"] == nil {
|
||||||
|
|
|
@ -249,6 +249,11 @@ extension PaymentSheet {
|
||||||
intent: Intent,
|
intent: Intent,
|
||||||
supportedPaymentMethods: [STPPaymentMethodType] = PaymentSheet.supportedPaymentMethods
|
supportedPaymentMethods: [STPPaymentMethodType] = PaymentSheet.supportedPaymentMethods
|
||||||
) -> PaymentMethodAvailabilityStatus {
|
) -> PaymentMethodAvailabilityStatus {
|
||||||
|
if paymentMethod == .USBankAccount, case .deferredIntent = intent, !PaymentSheet.enableACHV2InDeferredFlow {
|
||||||
|
// TODO(DeferredIntent): Remove this code when https://jira.corp.stripe.com/browse/BANKCON-6731 is complete
|
||||||
|
return .notSupported
|
||||||
|
}
|
||||||
|
|
||||||
guard let stpPaymentMethodType = paymentMethod.stpPaymentMethodType else {
|
guard let stpPaymentMethodType = paymentMethod.stpPaymentMethodType else {
|
||||||
// if the payment method cannot be represented as a `STPPaymentMethodType` attempt to read it
|
// if the payment method cannot be represented as a `STPPaymentMethodType` attempt to read it
|
||||||
// as a dynamic payment method
|
// as a dynamic payment method
|
||||||
|
|
|
@ -27,6 +27,8 @@ extension PaymentSheet {
|
||||||
.UPI,
|
.UPI,
|
||||||
.cashApp,
|
.cashApp,
|
||||||
]
|
]
|
||||||
|
/// Whether to enable ACHv2 in the deferred flow. To be deleted when https://jira.corp.stripe.com/browse/BANKCON-6731 is completed.
|
||||||
|
@_spi(STP) public static var enableACHV2InDeferredFlow: Bool = false
|
||||||
|
|
||||||
/// An unordered list of paymentMethodtypes that can be used with Link in PaymentSheet
|
/// An unordered list of paymentMethodtypes that can be used with Link in PaymentSheet
|
||||||
/// - Note: This is a var because it depends on the authenticated Link user
|
/// - Note: This is a var because it depends on the authenticated Link user
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 134 KiB |
Binary file not shown.
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 124 KiB |
Loading…
Reference in New Issue