Apple Pay
Configure Apple Pay with your business developer account. Estimated Time: 1 Hour
Last updated
Configure Apple Pay with your business developer account. Estimated Time: 1 Hour
Last updated
Triumph takes payment through Apple Pay for fraud reduction purposes.
Apple Pay is a service offered by Apple that allows users that have added payment cards to their Apple Wallet to make purchases in apps. At a high level when a user makes a purchase, PassKit
(Apple Pay and Wallet) will encrypt the user's payment details and hand the result off to us. Triumph then passes this encrypted information to our backend, which will decrypt the token process the payment.
Apple requires each app that utilizes Apple Pay to do the following
Create a merchantID
Upload a Certificate Signing Request (CSR)
Enable the Apple Pay capability with the merchantID
created above
Traditionally, when creating a CSR the developer will create and hold a private key associated with the CSR. The CSR itself does not contain private information but instead has the corresponding "public key" that will be used encrypt the Apple Pay tokens. When the developer uploads the CSR they do it under the merchantId
they previously created and Apple gives them back an Apple Pay Payment Processing Certificate. The developer then adds their merchantId
to their app's configuration.
This allows apple to encrypt the Apple Pay tokens with the correct public key so that only the developer (or whoever has access to both the secret and the Apple Pay Processing Certificate) can decrypt the tokens.
Since Triumph will decrypt Apple Pay tokens on your behalf, the Apple Pay flow is slightly different from the normal case above. You will:
Create a merchantID
Download a Triumph generated CSR and upload it to Apple
Download an Apple Payment Processing Certificate from Apple and upload this to Triumph.
Add the merchantID to your game.
Under Identifiers, click the + button to add an identifier.
Scroll down to Merchant IDs, select it, and click Continue in the upper right corner.
Give a description for your merchantID
and an identifier of the form merchant.{yourGameName}.triumph.
Hit Continue.
Confirm that the identifier has been successfully added to your list of identifiers.
Navigate to the Triumph Dashboard, and click on Settings -> Apple Pay.
Click dowload certificate signing request. Note: this may take up to 30 seconds to generate and download. The file will be named triumph-certificate-signing-request.csr. Do not change the name of this file.
Next, select the merchantID
you generated in the previous step on the drop down menu and hit continue.
Click Create Certificate.
Select no for the question about Mainland China (Triumph does not operate in China) and hit continue.
Upload the CSR file you generated in the previous step and click Continue.
Download the Apple Payment Processing Certificate. This should be named apple_pay.cer.
Finally, go back to the Triumph Dashboard and upload the generated Payment Processing Cerificate to Triumph.
All thats left to do is add the merchantID to your game. This is simple.
You're now ready to build your project!
To create a merchantID, log in to your Apple Business Developer Account , and and click Identifiers under Certificates, Identifiers & Profiles.
Navigate to the link , and scroll down, and select Apple Payment Processing Certificate. Click continue at the upper right corner of the page.
Navigate to Info.plist
, and add to the Apple Pay Capability (for a reminder on how to do this go ). You should now see the merchantID
you created as an option. Select it. If you don't see your merchantID
, restart Xcode. You may needc to do this a few times