Paypal logo is missing on PayPalButton
sayalideopurkar opened this issue · 2 comments
PayPal SDK Version
1.2.0
Environment
Both
Xcode Version
Xcode 15.3
OS Version & Device
No response
Integration type
CocoaPods
Development Processor
Apple Silicon (M-series chips)
Describe the bug
PayPal logo is missing when we integrate PayPal button in the UIKit app using Cocoapods.
https://developer.paypal.com/docs/checkout/advanced/ios/#link-usepaypalbuttonsinyourui
To reproduce
-
Integrate pod 'PayPal/PaymentButtons'
-
Add below code
class MyViewController: UIViewController { lazy var payPalButton: PayPalButton = { let payPalButton = PayPalButton() payPalButton.addTarget(self, action: #selector(payPalButtonTapped), for: .touchUpInside) return payPalButton }() @objc func payPalButtonTapped() { // Insert your code here } override func viewDidLoad() { super.viewDidLoad() view.addSubview(payPalButton) } }
-
The button is displayed as empty box with no logo or label
Expected behavior
Paypal button with PayPal logo should be displayed as mentioned in the documentation
Screenshots
Hello @sayalideopurkar -
This should be fixed in version 1.3.0. Though we always recommend updating to the latest version which is currently 1.4.0. Once you have a chance to update the SDK version will you let us know if you are still seeing this issue?
Hello @jaxdesmarais
Thank you for the reply, it works on 1.4.0