We’ve introduced a new class called STPPaymentContext that is designed to make building your app’s checkout flow as easy as possible—and without having to code it from scratch. To start, some of the prebuilt components include:

Adding cards: Make it easy for your customers to save card details in your app to use for future purchases. We’ll also handle tokenizing the card info so that sensitive data never hits your servers.

Editing cards:Smarter Saved Cards will keep most card details up-to-date automatically, even if they expire or change. You can also let customers manually edit their card info within your app.

Apple Pay detection: The SDK now configures your app to automatically fall back to a native flow if Apple Pay isn’t supported on the customer’s device. (Previously, you had to manually check for Apple Pay support before presenting either flow.)

These UI components have already been crafted to fit into most apps’ look and feel on iOS devices. Additionally, you can customize the font, as well as background, foreground, and tint colors to match your app’s unique design and make the experience as seamless as possible for customers.

We’ve learned from thousands of the most innovative apps on Stripe—Lyft, Kickstarter, Instacart, OpenTable, and more—to build best practices into these UI components. We’ll also be adding more flows and optimizing the ones launched today over time.