fbpx
Contact

How to integrate Apple Pay in my app? The Ultimate Answer

Max Babych
Max Babych
0 | 304 | 3 minutes
GuideMobile Development

    Today Apple Pay accounts for 70% of the world’s card payment transactions, making the Apple payment gateway a must-have for any digital business. Additionally it allows you to accept overseas payments, since this service is available in over 20 countries. So what are you waiting for?

    Let us show you how you can implement Apple Pay onto your own mobile application.

    Why should you integrate Apple Pay?

    As noted above, Apple Pay is a leader within the credit card payments market. It’s a simple one-touch way to make online payments, the simplicity of which, helps increase your customers satisfaction rate. Especially, if we talk about your MVP.

    In Q3 of 2019 Apple reported record profits of almost 54$ billion. This number was led by services, like Apple Pay, showing just how huge their market is! At the moment 90% of all contactless payments in the USA are made by Apple.

    • It’s commonly integrated into apps. In 2019 alone 10 billion contactless payments were made using Apple Pay.
    • It’s popular, with over- 253 million people already using this payment method.

    Benefits for your customers

    1. Guaranteed security. According to statistics, 50% of users are concerned about the security of their personal data, which is a good reason to set up Apple Pay! It uses device specific numbers and codes, meaning it is almost impossible to copy.
    2. It helps your create an easy and quick user experience for your customers. A smooth one-click payment transaction is so much better than empty text inputs to enter credit card data. Especially, when you would need to save your details in the website in order to have a one click payment on your return. In 2019 it’s essential that you are implementing the best features, even at MVP stage, since user expectations are a lot higher these days.

    Interesting apple pay statistic

    How do I integrate Apple Pay into my app?

    I’ve used a React Native framework The general workflow to implement Apple Pay is as follows:

    1. Create a Merchant account.
    2. Set up an Apple Pay configuration for the project in your Xcode.
    3. Then go to iTunes Connection. There you will need to create sandbox user.
    4. Add a test card.
    5. Create a test request to make payment.
    6. Handle the result.

    However, the details are a little more complicated.
    Below we will outline step by step how to setup Apple Pay:

    1. Create an account. To enable Apple Pay on your mobile application you need to follow the official Apple requirements at: https://developer.apple.com/documentation/passkit/apple_pay/setting_up_apple_pay_requirements/
    2. Next set up your server, not forgetting to first check out the official requirements at: https://developer.apple.com/documentation/apple_pay_on_the_web/setting_up_your_server
      In the server configuration file you will need to add one of the possible Cipher Suite referenced above. Take a look at our example configuration for nginx.

      <wbr />ssl_stapling on;
      ssl_stapling_verify on;
      ssl_protocols TLSv1.2;
      #ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
      ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK';
      ssl_prefer_server_ciphers on;
      #ssl_dhparam /etc/nginx/dhparams.pem;
      ssl_dhparam /home/forge/dhparam/dhparam.pem;
    3. Next you need to set up your work environment. As always, check the official requirements first. https://developer.apple.com/documentation/apple_pay_on_the_web/configuring_your_environment
    4. Here is an example of how to add the Apple Pay payment button.

       

      Using the v-if directive you can check whether you have successfully installed Apple Pay sessions and whether users can now make payments using Apple Pay.

    Get FREE 28-steps instruction

    Summary

    Here at SpdLoad, we take great care of our customers. We want to share our expertise in order to help startup founders deal with any challenges they may face. Connecting Apple Pay to your website or app is a pain point for many developers. I hope this article has helped you understand how to perform this task! If you still have any questions, feel free to contact us. We would love to help you.

    Posted by

    August 6, 2019
    Max Babych
    Max Babych
    CEO, Founder

    I am serial entrepreneur and IT professional. Launched 4 own products and more than 20 products for customers in SaaS and Marketplace industry

      No comments

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Subscribe to our blog

    Recommended posts

    A comprehensive overview of MVP requirements. Do you need it at all?

    A comprehensive overview of MVP requirements. Do you need it at all?

    The industry has become tired of MVP requirements and the associated bureaucracy and paperwork. Companies want to be agile enough that they…

    read more
    Collecting software requirements. Real life story

    Collecting software requirements. Real life story

    I would like to share my experience of collecting the requirements for four projects. Despite my first project being unsuccessful it taught…

    read more
    What is idea validation? Must-have for any startup!

    What is idea validation? Must-have for any startup!

    What does it mean idea validation? And why is it a must-do for any startup? Startup founders continually make the same mistake,…

    read more
    How to integrate Apple Pay in my app? The Ultimate Answer

    How to integrate Apple Pay in my app? The Ultimate Answer

    Today Apple Pay accounts for 70% of the world’s card payment transactions, making the Apple payment gateway a must-have for any digital…

    read more
    How to accept credit card payment: the step-by-step guide to set up the payment into your website

    How to accept credit card payment: the step-by-step guide to set up the payment into your website

    Whether you are selling something or receiving funds from people using your app, either way you must set up a way to…

    read more
    Time to launch an MVP: guidance on how to launch an MVP whilst avoiding potential pitfalls

    Time to launch an MVP: guidance on how to launch an MVP whilst avoiding potential pitfalls

    Analysis is one of the most important parts to consider when building a startup. All too often entrepreneurs fail to validate their…

    read more
    How much does it cost to build an MVP?

    How much does it cost to build an MVP?

    The main thing about creating an MVP is that just having a groundbreaking idea is not enough to ensure success. It is…

    read more
    What is a Minimum Viable Product and why does your startup need one?

    What is a Minimum Viable Product and why does your startup need one?

    First-time entrepreneurs, as well as those with a portfolio need an MVP for their projects, it is especially important when creating a…

    read more
    Startup team building – it’s possible to assemble the dream team! Real life story.

    Startup team building – it’s possible to assemble the dream team! Real life story.

    I am going to share with you how I created a team of 5 PhD graduates in the field of artificial intelligence…

    read more
    Max Babych

    Can we send you our next blog post?

    We'll send you about 3-4 posts a month. Only the best stuff you'll like.