Apple pay payment processing certificate

Обмен сертификатом Apple Pay Payment Processing Certificate

Сертификат обработки платежа используется для шифрования платежной информации, истекает каждые 25 месяцев и может быть отозван. Когда это произойдет, просто заново создайте сертификат процесса оплаты.

Чтобы выполнить обмен сертификатами между Apple и платежным шлюзом необходимо:

  • Запросите Certificate Signing Request (CSR) в менеджера Вашего платежного шлюза или смотрите раздел 3, там описаны детали работы с каждым платежным шлюзом, который мы поддерживаем.
  • Зайдите на страницу Development на портале разработчика в Apple.
  • Нажмите кнопку «Добавить» (+) в правом верхнем углу.
  • Выберите Apple Pay Payment Processing Certificate и нажмите Continue.
  • Укажите нужный Merchant ID и нажмите Continue.
  • В блоке Apple Pay Payment Processing Certificate нажмите Create Certificate.
  • Нажмите Continue.
  • Загрузите CSR файл, который вы получили от платежного шлюза, и нажмите Continue.
  • Скачайте сгенерированный сертификат.
  • Отправьте скачанный сертификат в службу поддержки платежного шлюза.

    Источник

    Интеграция Apple Pay на сайт. Часть 1

    В данной статье мы расскажем о том, что вам потребуется перед непосредственной интеграцией оплаты Apple Pay в код вашего проекта: где нужно зарегистрироваться, какую информацию подготовить и как эту информацию получить.

    Чтобы принимать оплату по Apple Pay вам потребуется:

    • Зарегистрировать аккаунт Apple ID. Процесс довольно долгий, но без этого никак.
    • Зарегистрироваться на одном из платежных шлюзов, которые работают с Apple Pay. Список доступных платёжных шлюзов, принимающих оплату ApplePay, можно посмотреть здесь.
    • Для интеграции оплаты Apple Pay в код вашего проекта вам потребуется: получить Merchant ID, верифицировать домен вашего проекта, получить сертификаты Merchant Identity Certificate и Payment Processing Certificate.

    Создание и настройка Merchant ID для Apple Pay

    После регистрации Apple ID необходимо добавить Merchant ID и перейти на страницу его редактирования. При создании данный идентификатор следует начать со слова merchant, указав при этом адрес вашего основного сайта в обратном порядке. Например, для сайта digital-spectr.ru идентификатор будет иметь значение merchant.ru.digital-spectr.

    На странице редактирования Merchant ID имеются 3 блока, которые необходимо заполнить:

    • Merchant Domains:
      домены, с которых разрешено производить оплату для данного продавца.
    • Merchant Identity Certificate:
      или сертификат удостоверения продавца. Данный сертификат используется для подтверждения данных продавца при инициализации процесса оплаты.
    • Payment Processing Certificate:
      или сертификат обработки платежей. Данный сертификат нужен для шифрования транзакций.

    Merchant Domains

    Для того чтобы иметь возможность производить оплату с сайта, потребуется подтвердить владение доменом. Для этого нужно добавить данный домен в блоке Merchant Domains (кнопка «Add Domain»), а чтобы подтвердить, необходимо скачать и разместить на сайте файл.

    Обращаю внимание на то, что сайт должен быть на HTTPS. О том, как перевести сайт на HTTPS, можно прочитать в нашей статье.

    Читайте также:  Убрать выключение экрана айфон

    Merchant Identity Certificate

    В инструкции от Apple говорится, что для создания сертификатов требуется наличие Mac. Возможно, можно как-то обойтись без него, но мы не пробовали. Итак, для создания сертификата надо воспользоваться утилитой «Связка ключей» («Keychain Access»).

    Далее, используя данную утилиту, нужно сформировать запрос на сертификат. Ниже представлена последовательность действий:

    Полученный запрос нужно загрузить при создании сертификата в кабинете Apple.

    После этого добавится сертификат в формате .cer, который можно скачать (файл merchant_id.cer) и в дальнейшем использовать. Например, используя ту же утилиту «Связка ключей», можно экспортировать в формат .p12. Последовательность действий для экспорта:

      Дважды кликаем по скачанному файлу merchant_id.cer и открываем его в программе «Связка ключей».

    Чтобы использовать сертификат в PHP библиотеке cURL, требуется конвертировать сертификат в формат .pem. Для этого можно конвертировать выше полученный сертификат .p12, используя команду OpenSSL или воспользовавшись одним из многочисленных онлайн конвертеров.

    После всех этих манипуляций получим два .pem файла (сертификат и закрытый ключ), которые можем использовать для подтверждения данных продавца при оплате.

    Payment Processing Certificate

    Процесс создания данного сертификата ничем принципиально не отличается от предыдущего. В зависимости от выбранного сервиса обработки платежей, могут быть различные требования, но, скорее всего, будет достаточно отправить им в службу поддержки сертификат в формате .cer.

    На этом подготовка необходимой информации заканчивается, далее можно начинать интеграцию Apple Pay на сайт. А как это сделать, расскажем в следующей статье.

    Напоследок покажем схему взаимодействия при оплате с помощью Apple Pay.

    Хотите принимать на своём сайте оплату через Apple Pay? Обращайтесь!

    Источник

    Apple pay payment processing certificate

    Developer

    Apple Pay Programming Guide

    Configuring Your Environment

    A merchant ID identifies you to Apple Pay as being able to accept payments. A Payment Processing certificate that is associated with your merchant ID is used to encrypt payment information. Before your app can use Apple Pay, you need to register a merchant ID and create its Payment Processing certificate.

    To register a Merchant ID

    Under Identifiers, select Merchant IDs.

    Click the Add button (+) in the upper-right corner.

    Enter a description and identifier, and click Continue.

    Review the settings, and click Register.

    To create a Payment Processing certificate

    Under Identifiers, select Merchant IDs.

    Select the merchant ID from the list, and click Edit.

    In the Payment Processing Certificates section, click Create Certificate. Follow the instructions to obtain or generate your certificate signing request (CSR), and click Continue.

    Click Choose File, select your CSR, and click Generate.

    Download the certificate by clicking Download, and click Done.

    If you see a warning in Keychain Access that the certificate was signed by an unknown authority or that it has an invalid issuer, make sure you have the WWDR intermediate certificate — G2 and the Apple Root CA — G2 installed in your keychain. You can download them from apple.com/certificateauthority.

    To enable Apple Pay for your app in Xcode, open the Capabilities pane. Select the switch in the Apple Pay row, and then select the merchant IDs you want the app to use.

    Читайте также:  Как сделать чтобы дед мороз принес айфон

    When troubleshooting, it is sometimes helpful to enable Apple Pay manually. Follow these steps to manually enable Apple Pay:

    Under Identifiers, select App IDs.

    Select the app ID from the list, and click Edit.

    Select Apple Pay, then click Edit.

    Select the merchant IDs you want to use, and click Continue.

    Источник

    Apple Pay

    1 Introduction

    Note: The description below concerns making the service available in a mobile app or by running the Apple Pay application directly from the website of the payment recipient (e-store).

    2 Configuration

    If you do not wish to use Web integration, you may skip the last two steps.

    2.1 Creating a Merchant ID

    To create a Merchant ID, follow these steps:

    1. Log on to your Apple Developer account.
    2. Select Certificates, IDs & Profiles.
    3. Select Identifiers.
    4. Add a new Merchant ID by selecting the + sign in the top right of the screen.
    5. Enter an ID and description, and select Continue.
    6. Select Register to confirm the data entered.

    2.2 Creating an Apple Pay Payment Processing Certificate

    Before creating certificate please contact us and ask for CSR file which is required in below process

    To create a Payment Processing Certificate identifier, follow these steps:

    1. Log on to your Apple Developer account.
    2. Select Certificates, IDs & Profiles.
    3. Select Identifiers.
    4. Select the Merchant ID that you have created, and select Edit. You can make your search easier by using the Merchant IDs filter at the top right of the screen.
    5. In the Apple Pay Payment Processing Certificate section, select Create Certificate.
    6. On the next screen select Continue.
    7. Take received CSR file from the PayU IT support department and upload it to the site, selecting Choose File and then Continue.
    8. Download the generated certificate.
    9. Send the downloaded certificate (the file apple_pay.cer) to the PayU IT support department.

    2.3 Validating a domain

    This applies only to web integration.

    To validate a domain, follow these steps:

    1. Log on to your Apple Developer account.
    2. Select Certificates, IDs & Profiles.
    3. Select Identifiers.
    4. Select the Merchant ID that you have created, and select Edit. You can make your search easier by using the Merchant IDs filter at the top right of the screen.
    5. In the Merchant Domains section, select Add Domain.
    6. Enter the name of your domain and select Continue.

    The domain must support HTTPS. Check if the server settings are in accordance with Apple guidelines.

    Download the file only once, before performing domain validation! Repeated download will generate new file content which may result in error in the domain validation process.

    2.4 Creating an Apple Pay Merchant Identity Certificate

    This applies only to web integration.

    To create an Apple Pay Merchant Identity Certificate, follow these steps:

    1. Log on to your Apple Developer account.
    2. Select Certificates, IDs & Profiles.
    3. Select Identifiers.
    4. Select the Merchant ID that you have created, and select Edit. You can make your search easier by using the Merchant IDs filter at the top right of the screen.
    5. In the Apple Pay Merchant Identity Certificate section, select Create Certificate.
    6. In order to prepare the CSR file, follow the steps described on the Apple website, and then select Continue.
    7. Copy the generated CSR file, by selecting Choose File and then Continue.
    8. Download the generated certificate (merchant_id.cer) and open it in the Keychain Access application on a Mac computer.
    9. In Keychain Access, select the imported certificate and export it to .p12 format (Personal Information Exchange).
    10. (optional) Run the command: If you prefer .p12 format for the certificates and you find it easier to manage them in this format, you can skip this step.
    11. Copy the created certificate in the prefered format onto the server. It will be needed to create an Apple Pay Payment Session in the store validation process, during payment creation.

    3 Integration

    3.1 iOS integration

    To integrate a mobile app with Apple Pay, follow the instructions at Apple Developer.

    To make the integration easier, use the technical documentation for the PayU | Mobile SDK.

    3.2 Web integration

    To integrate a website with Apple Pay, follow the instructions at Apple Developer.

    When creating an Apple Pay Session, note that PayU supports only Visa and MasterCard payment cards under the 3DS protocol, and thus requires correct parameterization of the created Apple Pay request (regardless of whether you are using the Apple Pay JS API or the Payment Request API):

    An example Apple Pay Token looks like this:

    4 Order

    To charge a payment card stored in Apple Pay, you must place an extended payMethods object in an OrderCreateRequest.

    The payMethods.payMethod object must contain the authorizationCode field, the value of which is the Apple Pay token parameter encoded using the Base64 function. The field payMethod.value should have the value jp, and payMethod.type should have the value PBL.

    Further processing of the request is subject to the standard process described in the REST API documentation.

    As the orders paid with the Apple Pay method shall be settled just as standard card payments, it is worth considering the integration of the service transaction data retrieve. In this manner, you will be able to differentiate cards entered through the PayU form from cards downloaded from Apple Pay.

    5 Sandbox

    The Apple Pay payment method is also available in a sandbox environment. In the integration process, we suggest creating an independent Merchant ID (with a name ending “.test”, for example) together with a set of certificates.

    Because Apple Pay is not the default payment method, please contact the PayU IT support department after registering in the sandbox environment, but before beginning integration using the Apple Pay payment method. In response you receive also CSR file for Sandbox environment.

    Before beginning to perform tests in the sandbox, please also read the Apple sandbox testing instructions.

    Источник

    Читайте также:  Заставки для айфона с новым годом
  • Оцените статью