Monetizr Developer Hub

Welcome to the Monetizr developer hub. Here you will find user documentation and our API reference guide to get you started.

Get Started    API Reference

Adding Apple Pay

Optional payment method

Steps

To enable Apple Pay payment method you need to follow these steps:

  1. Obtain Certificate Signing Request (CSR) file from Monetizr by contacting us; Monetizr is using Stripe as Payment gateway and providing CSR certificates from Stripe.
  2. Configure Apple Pay using given CSR and send Certificate (CER) back to Monetizr;
  3. Configure applicationDidFinishLaunching(_:) in SDK as described below.

Configuring Apple Pay

Proceed to this step once you have received CSR request from Monetizr. We advise you to consult and follow official Apple Pay requirement documentation for more detailed instructions.

Setup Merchant ID
Merchant ID allows Apple to identify your business as merchant that can accept Apple Pay payments. Go to Certificates, Identifiers & Profiles and set up Merchant ID.

Configure your Merchant ID

Configure your Merchant ID

Setup Apple Pay Payment Processing Certificate
This Certificate is associated with your Merchant ID and allows to decrypt payment information from Apple Pay. In the same Certificates, Identifiers & Profiles where you created Merchant ID also create Payment Processing Certificate. Once done click on Download to retrieve certificate and send the file to Monetizr.

Select Payment Processing Certificate

Select Payment Processing Certificate

Enable Apple Pay in Xcode
In Project Editor go to Capabilities and click "ON" under Apple Pay section. You can find more information here. If everything is done correctly you should be able to see Apple Pay button in Monetizr plugin.

Monetizr uses Stripe payment infrastructure. Standard implementation scenario encourages to start with Stripe pk_test tokens and then proceed with pk_live tokens.

Stripe pk_test

Setup Stripe test token to make test payments and check the integration.

In applicationDidFinishLaunching(_:) do the configuration:
a. Apple Pay merchant ID: "merchant.com.monetizr.sdk" - here you must use your own Merchant ID as described above;
b. companyName: "Monetization Solutions", appName: "App name" - here you must use your own app name;
c. Stripe token: "pk_test_OS6QyI1IBsFtonsnFk6rh2wb00mSXyblvu".

Monetizr.shared.setApplePayMerchantID(id: "merchant.com.monetizr.sdk")
Monetizr.shared.setCompanyAndAppName(companyName: "Monetization Solutions", appName: "App name")
Monetizr.shared.setStripeToken(token:"pk_test_OS6QyI1IBsFtonsnFk6rh2wb00mSXyblvu")

Stripe pk_live

Setup Stripe live token to make live payments and let your players use Apple Pay.

In applicationDidFinishLaunching(_:) do the configuration:
d. Apple Pay merchant ID: "merchant.com.monetizr.sdk" - here you must use your own merchant ID;
e. companyName: "Monetization Solutions", appName: "App name" - here you must use your own application name;
f. Stripe token: "pk_live_CWmQoXocvis3aEFufn7R1CKf".

Monetizr.shared.setApplePayMerchantID(id: "merchant.com.monetizr.sdk")
Monetizr.shared.setCompanyAndAppName(companyName: "Monetization Solutions", appName: "App name")
Monetizr.shared.setStripeToken(token:"pk_live_CWmQoXocvis3aEFufn7R1CKf")

Your players should now be able to make purchases with their Apple Pay accounts.

Adding Apple Pay


Optional payment method

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.