Custom Payments

Apple Pay on Apps

4min

Overview

This guide will go through how to post apple pay payment data to Moyasar

Who is this guide for?

  • Advanced Users
  • Users who are building their own Apple Pay integration.

Before Starting

  • Register for a free account in Moyasar Dashboard
  • Make sure to have an active Apple developer account
  • Your payment processing certificate is registered with Moyasar, follow this guide: Apple Pay Using Developer Account

Integration Resources

To start integration with Apple Pay, we advise you to visit Apple Developer Documentation.

Authorizing Payment

When the user authorizes the payment using Face ID or Touch ID on their iOS device, the didAuthorizePayment event will be dispatched. In this step you need to post the paymentData to Moyasar found within the PKPayment object. Here is an example:

Swift


Now you need to serialize the request object as JSON and send it to Moyasar API like it was described in Apple Pay on Websites.