ApplePay with iOS SDK

New Member
6 0 0

So I am going over the documentation:


To present the  Pay modal and begin the checkout process, you need:

  • a created Storefront.Checkout
  • currency information that can be obtained with a query on Storefront.Shop
  •  Pay merchantID

So I've done all this, but then the next steps appear to be 


After all the prerequisites have been met, you can initialize a PaySession and start the payment authorization process:

self.paySession = PaySession(
	checkout:   payCheckout,
	currency:   payCurrency,
	merchantID: "com.merchant.identifier"

self.paySession.delegate = self


My current issues come with the payCheckout? Do I have to create that separately cause it appears the StoreFront checkout has nothing I need to integrate with it?

Shopify Staff
Shopify Staff
1002 131 146

Yep, you'll need to create that. From the docs:


After browsing products and collections, a customer might eventually want to purchase something. The Buy SDK does not provide support for a local shopping cart since the requirements can vary between applications. Instead, the implementation is left up to the custom storefront. Nevertheless, when a customer is ready to make a purchase you'll need to create a checkout.

You'll find a basic implementation in the docs here. You can also see how the sample app builds a cart and then creates a checkout here.