PayPal 金额未显示 Braintree Drop-in Swift

问题描述

我试图在 Swift 5x 上实现 Paypal 与 Braintree Drop-In 功能的集成,我能够集成相同的功能,现在它向我展示了 2 个用于付款的选项 PayPal n Card。

现在我想向用户展示在付款前使用 PayPal 帐户登录后我想向他们收取多少费用。我正在浏览文档,但找不到任何选项来解决我的要求。

代码

func showDropIn(clientTokenorTokenizationKey: String) {

    let request =  BTDropInRequest()
    let dropIn = BTDropInController(authorization: clientTokenorTokenizationKey,request: request)
    { (controller,result,error) in
        if (error != nil) {
            print("ERROR")
        } else if (result?.isCancelled == true) {
            print("CANCELLED")
        } else if let result = result {

            // Use the BTDropInResult properties to update your UI
             print("Payment Type :==> \(result.paymentOptionType)")
             print("Payment Method :==> \(result.paymentMethod)")
            let pay = result.paymentMethod
            print("Got a nonce:==> \(String(describing: pay?.nonce))")
             print("Payment Icon :==> \(result.paymentIcon)")
             print("Payment Description :==> \(result.paymentDescription)")
            //self.startCheckout()
        }

        controller.dismiss(animated: true,completion: nil)
    }
    self.present(dropIn!,animated: true,completion: nil)
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)