Skip to content

Commit

Permalink
MBL-1123: Supply Stripe credentials in PostCampaignCheckoutViewContro…
Browse files Browse the repository at this point in the history
…ller
  • Loading branch information
amy-at-kickstarter committed Mar 25, 2024
1 parent bdfb97c commit 3c48918
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import KsApi
import Library
import Prelude
import Stripe
import UIKit

private enum PostCampaignCheckoutLayout {
Expand Down Expand Up @@ -204,6 +205,13 @@ final class PostCampaignCheckoutViewController: UIViewController {
}

self.paymentMethodsViewController.view.rac.hidden = self.viewModel.outputs.paymentMethodsViewHidden

self.viewModel.outputs.configureStripeIntegration
.observeForUI()
.observeValues { merchantIdentifier, publishableKey in
STPAPIClient.shared.publishableKey = publishableKey
STPAPIClient.shared.configuration.appleMerchantIdentifier = merchantIdentifier
}
}

// MARK: - Functions
Expand Down

0 comments on commit 3c48918

Please sign in to comment.