Skip to content

Commit

Permalink
[MBL-2063] Delete PostCampaignCheckout Code (#2273)
Browse files Browse the repository at this point in the history
* remove ViewController and ViewControllerTests

* remove ViewModel and ViewModelTests

* [MBL-2063] Delete Legacy RewardsCollectionView (#2274)

* delete ViewController and ViewControllerTests

* includes snapshots

* delete ViewModel and ViewModelTests
  • Loading branch information
scottkicks authored Feb 10, 2025
1 parent 1a79974 commit 2e65d1f
Show file tree
Hide file tree
Showing 42 changed files with 50 additions and 4,123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,14 @@ final class ConfirmDetailsViewController: UIViewController, MessageBannerViewCon
self.present(navigationController, animated: true)
}

private func goToCheckout(data: PostCampaignCheckoutData) {
let vc = PostCampaignCheckoutViewController.instantiate()
vc.configure(with: data)
vc.title = self.title

self.navigationController?.pushViewController(vc, animated: true)
private func goToCheckout(data _: PostCampaignCheckoutData) {
// TODO: ConfirmDetails Will be removed as a part of our legacy checkout code refactor/cleanup. Commenting this out for now.

// let vc = PostCampaignCheckoutViewController.instantiate()
// vc.configure(with: data)
// vc.title = self.title
//
// self.navigationController?.pushViewController(vc, animated: true)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ final class PledgePaymentMethodsViewController: UIViewController {

assert(
topViewController is NoShippingPledgeViewController ||
topViewController is PostCampaignCheckoutViewController ||
topViewController is NoShippingPostCampaignCheckoutViewController,
"PledgePaymentMethodsViewController is only intended to be presented as part of a pledge flow."
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@ extension NoShippingPostCampaignCheckoutViewController: PledgeViewControllerMess

// MARK: - STPApplePayContextDelegate

enum PostCampaignCheckoutApplePayError: Error {
case missingPaymentMethodInfo(String)
case missingPaymentIntent(String)
}

extension NoShippingPostCampaignCheckoutViewController: STPApplePayContextDelegate {
func applePayContext(
_: StripeApplePay.STPApplePayContext,
Expand Down
Loading

0 comments on commit 2e65d1f

Please sign in to comment.