首页 > 解决方案 > 如何在 Swift 的 Stripe 中的 STPAddCardViewController 中显示“支付”而不是“完成”

问题描述

我在这里使用 Stripe 付款我需要在 STPAddCardViewController 中显示“付款”,如何?.. 请告诉我

代码:

        let config = STPPaymentConfiguration.shared
        config.requiredBillingAddressFields = .none

        let viewController = STPAddCardViewController(configuration: config, theme: STPTheme.default())
        viewController.delegate = self
        let navigationController = UINavigationController(rootViewController: viewController)
        present(navigationController, animated: true, completion: nil)

o/p:在这里代替Done我想要"Pay".. 怎么样?请帮忙

在此处输入图像描述

标签: swiftuibuttonstripe-payments

解决方案


推荐阅读