---
title: Managing merchant IDs and Payment Processing certificates
framework: appstoreconnectapi
role: article
role_heading: Article
path: appstoreconnectapi/managing-payment-processing-certificates
---

# Managing merchant IDs and Payment Processing certificates

Create and update certificates so your app uses Apple Pay and Wallet.

## Overview

Overview Managing your merchant Identifier (ID) and Payment Processing certificates keeps the Apple Pay service active in your app. To set up your Apple developer account and Xcode to implement Apple Pay in your apps, complete three steps: Create a merchant ID. Create a Payment Processing certificate. To learn more about certificates for Apple Pay and Wallet, see Configure Apple Pay. Enable Apple Pay in Xcode. To learn more see, Setting up Apple Pay Once you set up Apple Pay in your apps, you then can replace Payment Processing certificates as they near their expiration date — 25 months after you create them. To learn more, see Maintaining Your Environment. Create a merchant ID A merchant ID uniquely identifies you to Apple Pay as a merchant who is able to accept payments. A merchant ID never expires, and you can use the same one for multiple apps. To create a merchant ID, use Create a merchant id. Here’s an example payload: "data": {         "type": "merchantIds",         "attributes": {             "identifier": "com.myapp.merchant1",             "name": "MyMerchantName"         }     } } note: The value for identifier is a unique identifier for your merchant. The value for name is a descriptive name for the merchant. Create Payment Processing certificate To create a certificate to use with Apple Pay, use Create a certificate. Here’s an example payload: {   "data": {     "type": "certificates",     "attributes": {         "certificateType": "APPLE_PAY",         "csrContent" : "<PEM-CSR-Content>"     },     "relationships": {       "merchantId": {         "data": {           "type": "merchantIds",           "id": "1234567890"         }       }     }   } } note: The id field in the example payload is a 10-character string that the prior request returns. The csrContent is your certificate-signing request. Rotate a Payment Processing certificate Use one of three options to replace a payment-processing certificate nearing its 25-month expiration date. Each option takes into account that you can have more than one payment processing certificate, but only one can be activated for use at any time: note: The “Create and activate” option also deactivates the expiring certificate by automatically setting the activated key to FALSE.

## See Also

### Managing merchant IDs

- [List merchant ids](appstoreconnectapi/get-v1-merchantids.md)
- [Read details for a merchant id](appstoreconnectapi/get-v1-merchantids-_id_.md)
- [List certificates for a merchant id](appstoreconnectapi/get-v1-merchantids-_id_-certificates.md)
- [List certificate IDs for a merchant ID](appstoreconnectapi/get-v1-merchantids-_id_-relationships-certificates.md)
- [Modify merchant ids](appstoreconnectapi/patch-v1-merchantids-_id_.md)
- [Create a merchant id](appstoreconnectapi/post-v1-merchantids.md)
- [Delete a merchant id](appstoreconnectapi/delete-v1-merchantids-_id_.md)
