How to code and test international StoreKit product prices

A step by step guide on implementing and testing localized prices for StoreKit In-App Purchases or Subscriptions.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 03/25/2023 at 12:54
Last Updated on 03/27/2023 at 15:22
Two flowers that represent StoreKit and XCode side by side. Beneath them sits the text “Code & Test International StoreKit Pricing.”

A step by step guide on implementing and testing localized prices for StoreKit In-App Purchases or Subscriptions.

The guide was made using our Free iOS StoreKit 2 Open Source project which is recommended for developers or business folk wishing to learn about how In-App Purchases or Subscriptions work and the code behind them.

SubscribeFree Open-Source Apple StoreKit 2 Swift Project

The following walkthrough assumes that you have already setup StoreKit with an offering and developed a UI that allows an app to display products.

Please consult the guides below to learn how to setup StoreKit, create a StoreKit offering or design a UI that considers all StoreKit scenarios.

How to setup StoreKit in XcodeHow to create a StoreKit offering in XCode or App Store ConnectFree iOS e-commerce Figma design file

Step One: Implement localized pricing

A screenshot of XCode showing code that allows your app to display localized pricing. We have highlighted the code mentioned in the description of this step below.

When writing your code, use the StoreKit product displayPrice property.

This also applies for introductory offers.

Step Two: Change Storefront

A screenshot of Xcode highlighting the location of the Editor tab in the Xcode menu, the Default Storefront menu option and the menu that appears where you can select a storefront.

Change the storefront to the country that you wish to test the pricing of.

How to change StoreKit Storefront in XCode

Step Three: Verify

A screenshot on our Open Source E-Commerce Project that shows the price for the Turkish locale.

Run the app and confirm that the pricing appears as desired.

Please note that local StoreKit Configuration File will only allow you to test currencies.

You will need to use a synced App Store Connect StoreKit Configuration File to be able to test that the number attached to the currency also shows up correctly.

How to sync a StoreKit configuration file with App Store Connect

Looking to learn how to implement international StoreKit display names and descriptions ?

Please consult our guide below to learn how to code and test international StoreKit product information.

How to code and test localized StoreKit product names and descriptions

Looking to learn more about developing apps with StoreKit 2?

Read our comprehensive development guide linked below to learn about all the secrets behind developing In-App Purchases and Subscriptions with StoreKit 2.

Read Apple StoreKit 2 Development Guide

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe