Revert "Enable ACHv2 in decoupled flow (#2661)" (#2668)

This reverts commit d0617bef64.
This commit is contained in:
Yuki 2023-06-16 16:04:02 -07:00 committed by GitHub
parent 7811fd8fd1
commit 52e9b64c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 0 deletions

View File

@ -214,6 +214,7 @@ class PlaygroundController: ObservableObject {
init(settings: PaymentSheetTestPlaygroundSettings) {
// Enable experimental payment methods.
// 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
if ProcessInfo.processInfo.environment["UITesting"] == nil {

View File

@ -249,6 +249,11 @@ extension PaymentSheet {
intent: Intent,
supportedPaymentMethods: [STPPaymentMethodType] = PaymentSheet.supportedPaymentMethods
) -> 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 {
// if the payment method cannot be represented as a `STPPaymentMethodType` attempt to read it
// as a dynamic payment method

View File

@ -27,6 +27,8 @@ extension PaymentSheet {
.UPI,
.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
/// - 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