In the last part of the tutorial we will learn how to use Apple pay to buy items in our SellAnything app. We will look at how to setup Apple pay using Stripe and will get to the point where we can send token to our server and charge the card.

Prerequisites

Registering for an Apple Merchant ID

Creating a new Apple Pay certificate

Integrating with Xcode

I have followed the exact steps mentioned in these document Stripe and Apple pay documents and they have worked perfectly well for me. So please go ahead and complete the prerequisites

Many people keep getting confused as to when we should be using In App purchases and when to use Apple pay. The key difference is that any thing digital which you sell inside the app needs to be using In App purchases. If you are selling any physical products like tickets, uber, event tickets etc can use Apple pay.

Creating a payment request