Stripe iOS
See original GitHub issueHello,
I’m trying to understand how functions can replace my current backend (ruby app on Heroku) that is set up and working for iOS payments.
From what I’ve done so far, it was simple to create customers and charge them by writing to the RTDB.
However, I’m not sure how to retrieve the customer’s sources and populate the customer’s existing cards into the STPPaymentMethodsViewController
.
For example, if the customer previously used two cards, STPPaymentMethodsViewController
would show two sources and the customer would be able to choose one.
Would I have to set up a custom checkout process that:
- Reads in the user’s tokens from
/stripe_customers/{userId}/sources/{pushId}/token
- Show them in a user-readable format in my app
- Based on the user’s selected card, tell Stripe to update the customer’s default source,
- And finally charge the customer by writing to the RTDB
I feel like I’m not thinking through this properly and that there must be a better way, any help would be greatly appreciated, thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Getting started with Sources in the iOS SDK - Stripe
Learn how to use Sources in your iOS application. This guide assumes you've already installed and configured the Stripe iOS SDK and are...
Read more >Set up your integration | Stripe Documentation
The Stripe Terminal iOS SDK is compatible with apps supporting iOS 10 and above, and can be installed with CocoaPods or Swift Package...
Read more >Stripe iOS SDK - GitHub
The Stripe iOS SDK makes it quick and easy to build an excellent payment experience in your iOS app. We provide powerful and...
Read more >Stripe Dashboard on the App Store
Read reviews, compare customer ratings, see screenshots, and learn more about Stripe Dashboard. Download Stripe Dashboard and enjoy it on your iPhone, iPad, ......
Read more >Stripe iOS SDKs 23.3.1 Reference
Stripe iOS SDKs 23.3.1. Stripe. Accept online payments using Stripe. StripePayments. Bindings for the Stripe Payments API. StripePaymentsUI.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In my
retrieveCustomer
method in the STPBackendAPIAdapter subclass, I have something like this. It’s still a work in progress but this is working so far for me.@jitaek do you have any front end Swift code that you would be willing to share. I’ve just setup the Cloud Functions and trying to figure out the basics of STPPaymentContext