【发布时间】:2023-02-18 02:38:48
【问题描述】:
我在 Ios APP 中实现了 flutterwave,我为这个“FlutterwaveSDK”使用了一个 pod 文件。当我使用测试卡时,它工作正常。但是当我尝试直播时,它给了我错误商户未启用 rave v3请检查我的代码。这是我与购买相关的代码设置
let config = FlutterwaveConfig.sharedConfig()
config.paymentOptionsToExclude = []
config.currencyCode = "NGN" // This is the specified currency to charge in.
config.email = fullEmail // This is the email address of the customer
config.isStaging = false // Toggle this for staging and live environment
config.phoneNumber = fullPhone //Phone number
config.transcationRef = display_order_id
config.firstName = fname // This is the customers first name.
config.lastName = lname //This is the customers last name.
config.meta = [["metaname":"sdk", "metavalue":"ios"]] //This is used to include additional payment information
config.narration = "simplifying payments for endless possibilities"
config.publicKey = Constants.payment_Public//"[PUB_KEY]" //Public key
config.encryptionKey = Constants.payment_encryption//"[ENCRYPTION_KEY]"
config.isPreAuth = true // This should be set to true for preauthoize card transactions
let controller = FlutterwavePayViewController()
let nav = UINavigationController(rootViewController: controller)
let priceinString = "\(String(format: "%.2f", self.TotalPrice))"
【问题讨论】:
标签: swift payment-gateway flutterwave