CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Sep 2015 |
Maintained by Rune Madsen.
BUYPaymentButton is a vector-based Apple Pay button that provides a custom UIButton for Apple Pay that replicates Apple's PKPaymentButton available in iOS 8.3 and later.
BUYPaymentButton automatically creates and returns a custom vector-based UIButton on older version of iOS 8 that's near identical to Apple's button and a PKPaymentButton on iOS 8.3 and later so you don't have to worry about any version logic or creating your own button with images.
BUYPaymentButton/BUYPaymentButton folder into your project.BUYPaymentButton includes a sample project that shows how to use the button in your project. It shows all six variations of the Apple Pay button. Run the sample project on iOS 8.3 to see the button created with a PKPaymentButton and on older iOS 8 versions to see the custom BUYPaymentButton in action.
In your own project, create the button like you would any other button:
BUYPaymentButton *paymentButton = [BUYPaymentButton buttonWithType:BUYPaymentButtonTypeBuy style:BUYPaymentButtonStyleBlack];There are two enums: BUYPaymentButtonStyle and BUYPaymentButtonType.
These are identical to PKPaymentButtonStyle and PKPaymentButtonType, so if you're currently using PKPaymentButton, they're easy to replace.
If you have a feature requests or find a bug, please feel free to submit a pull request or create a ticket.