swift和ios中的paypal文本重叠问题12、13 paypal/paypal ios SDK存档
我在swift 4.2中使用paypal/paypal iOS SDK,SDK中有一个文本重叠问题, 我不知道如何解决这个问题,这里我附上了我的截图,请检查 这是我的密码swift和ios中的paypal文本重叠问题12、13 paypal/paypal ios SDK存档,swift,user-interface,paypal,Swift,User Interface,Paypal,我在swift 4.2中使用paypal/paypal iOS SDK,SDK中有一个文本重叠问题, 我不知道如何解决这个问题,这里我附上了我的截图,请检查 这是我的密码 payPalConfig.acceptCreditCards = true payPalConfig.merchantName = payPalConfig.merchantPrivacyPolicyURL = payPalConfig.merchantUserAgreementURL
payPalConfig.acceptCreditCards = true
payPalConfig.merchantName =
payPalConfig.merchantPrivacyPolicyURL =
payPalConfig.merchantUserAgreementURL =
payPalConfig.languageOrLocale = Locale.preferredLanguages[0]
payPalConfig.payPalShippingAddressOption = .none;
let item1 = PayPalItem(name: "", withQuantity: 1, withPrice: NSDecimalNumber(string: String(paymentValue)), withCurrency: "", withSku: "BREWIT-0091")
let items = [item1]
let subtotal = PayPalItem.totalPrice(forItems: items) //This is the total price of all the items
// Optional: include payment details
let shipping = NSDecimalNumber(string: "0.00")
let tax = NSDecimalNumber(string: "0.00")
let paymentDetails = PayPalPaymentDetails(subtotal: subtotal, withShipping: shipping, withTax: tax)
let total = subtotal.adding(shipping).adding(tax) //This is the total price including shipping and tax
let payment = PayPalPayment(amount: total, currencyCode: "EUR", shortDescription: desctiptionOFpayment, intent: .sale)
payment.items = items
payment.paymentDetails = paymentDetails
if (payment.processable) {
let paymentViewController = PayPalPaymentViewController(payment: payment, configuration: payPalConfig, delegate: self)
present(paymentViewController!, animated: true, completion: nil)
}
else {
// This particular payment will always be processable. If, for
// example, the amount was negative or the shortDescription was
// empty, this payment wouldn't be processable, and you'd want
// to handle that here.
print("Payment not processalbe: \(payment)")
}
该SDK已弃用且不受支持
如果您需要一个受支持的PayPal支付本机SDK,请使用不推荐且不受支持的SDK 如果您需要PayPal支付支持的本机SDK,请使用