Merge pull request #8779 from mkllnk/7872-remove-stripe-connect

Upgrade old Stripe Connect payment methods to Stripe SCA and remove Stripe Connect
This commit is contained in:
Filipe
2022-01-26 11:57:26 +00:00
committed by GitHub
19 changed files with 177 additions and 685 deletions

View File

@@ -16,7 +16,7 @@ angular.module("admin.subscriptions").controller "DetailsController", ($scope, $
return if !newValue?
paymentMethod = ($scope.paymentMethods.filter (pm) -> pm.id == newValue)[0]
return unless paymentMethod?
$scope.cardRequired = (paymentMethod.type == "Spree::Gateway::StripeConnect" || paymentMethod.type == "Spree::Gateway::StripeSCA")
$scope.cardRequired = paymentMethod.type == "Spree::Gateway::StripeSCA"
$scope.loadCustomer() if $scope.cardRequired && !$scope.customer
$scope.loadCustomer = ->