CocoaPods
p/cocoapods
Dependency Manager for Objective-C Projects
François Boulais

Buy Me a Coffee button for iOS — Swift code to add Buy Me a Coffee button in your iOS apps

Featured
16
‱
Add Buy Me a Coffee donation flow to you application with this Swift framework! Star it if you like it đŸ€©
Replies
Best
Chris Messina
Top Hunter
Will Apple approve apps that allow this kind of payment? I guess it uses Apple Pay so maybe that's ok, but does Apple then also take a cut? #fortnite
François Boulais
@chrismessina Hey Chris, thanks for your message! I have two applications submitted with the framework, I'll let you know if they have been approved! Indeed that's the perfect day to ask question about Apple policy! I hope Apple Pay will convince them!
François Boulais
@chrismessina I took a look at the App Store Review Guidelines and found this in 3.2.1: (vii) Apps may enable individual users to give a monetary gift to another individual without using in-app purchase, provided that (a) the gift is a completely optional choice by the giver, and (b) 100% of the funds go to the receiver of the gift. However, a gift that is connected to or associated at any point in time with receiving digital content or services must use in-app purchase.
Alexander Zagumenov
@frboulais Is there any news about Apple approval?
Ben
Does the button come with a preset theme or is it fully customizable? And I’d love to see a swiftui implementation!
François Boulais
@benxedel Hey Ben! The button can be configured by setting font, color and title, according to Buy Me a Coffee styleguide (9 colors & 3 fonts). We are currently working on the Swift UI implementation, I'll let you know when it is available!
Georges Heinesch
Looks great. Thanks very much! I implemented it into my app. Can I test the Apple Pay (using the button, not the fallback BMC web interface) as well with a test version via TestFlight, or does it need to be an App Store approved release?
François Boulais
@georges_heinesch Het Georges! Thanks for your feedback! You can easily test it with a TestFlight version without being charged :)
Georges Heinesch
@frboulais I got it cleared now for testing, but it falls back to the web flow. Do I (1.) need some additional code dealing with payments in my app, (2.) do I need to do something on my App Store Connect account (e.g. creating a sandbox user), or do I have to do something additional in my BMC account (I have PayPal enabled, not Stripe) ... ? I believe I miss something?!
François Boulais
@georges_heinesch I’ll release a new version with more logs so it will be easier to debug. In-App Purchases can be a bit tricky to configure. Have you filled all the « Billing Â» documents on App Store Connect? I think it’s required. If you want, let’s contact me at francois@appcraftstudio.com or DM on Twitter (@frboulais) so we can figure it out together :)
Georges Heinesch
@frboulais Will do. Many thanks for your help. UPDATE: You were right! The Agreements, Tax and Banking data in App Store Connect was incomplete for Paid Apps. After having the green "Active", I don't fallback to the BMC web flow anymore. However I see for my sandboxed payment view the button "Purchase" to confirm payment, i.s.o. the double-click side button confirmation method.
François Boulais
Hey developers, what is the next langage you want us to support?
Nikhil Mittal
A great product to empower more and more creators! Loved the spirit! đŸ‘đŸ»
Fajar Siddiq
This is useful
BĂ©ryl Huba-Mylek
I think it’s great !