Apple Pay

Antes de iniciar a integração com a nossa API para criar pedidos utilizando o Apple Pay, é necessário que você conclua algumas etapas de configuração junto à Apple. Essas etapas são fundamentais para garantir que sua conta esteja habilitada e em conformidade com os requisitos da Apple, permitindo o uso do Apple Pay em seu checkout.

Para facilitar, criamos uma documentação específica que orienta você em cada um dos passos necessários junto à Apple. Acesse este link para conferir as instruções.

Criação de Pedidos

🚧

Atenção

Ao criar cobranças ou pedidos com Apple Pay, é importante observar o seu modelo de contrato, que pode ser Gateway ou PSP. O processo varia de acordo com o tipo de contrato que você possui.

Contrato Gateway

Para criar uma cobrança ou um pedido com Apple Pay, devemos incluir o objeto credit_card dentro do nó payments, assim como a propriedade "payment_method": "credit_card". Além disso, o objeto credit_card deve conter os atributos do payload.

{
   "items":[
      {
         "amount":1000,
         "description":"Chaveiro do Tesseract",
         "quantity":1
      }
   ],
   "customer":{
      "name":"Tony Stark",
      "email":"[email protected]"
   },
   "payments":[
      {
         "amount":1000,
         "payment_method":"credit_card",
         "credit_card":{
            "card":{
               "payload":{
                  "type":"apple_pay",
                  "apple_pay":{
                     "version":"EC_v1",
                     "merchant_identifier":"mymerchant",
                     "header":{
                        "transaction_id":"715a0386c307bf22907496790cef4bd169b1182460d58eef97bbad2704a893ab",
                        "ephemeral_public_key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY69lq/RQs/Y68/2Kd1uY0eprNjHvO3xAEnMehoroxcQgp6y21c5dVEBVHFvcPzAIzYnblYjIQfmUWU8Kpgs+rA==",
                        "public_key_hash":"B/vXPu6KfGjbxJVTQUtBOzkxmqhnT+TwQfdb5U9lsdA="
                     },
                     "signature":"MIAGCSqGSIb3DQEHAqCAMIACAQExDTALBglghkgBZQMEAgEwgAYJKoZIhvcNAQcBAACggDCCA+MwggOIoAMCAQICCEwwQUlRnVQ2MAoGCCqGSM49BAMCMHoxLjAsBgNVBAMMJUFwcGxlIEFwcGxpY2F0aW9uIEludGVncmF0aW9uIENBIC0gRzMxJjAkB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
            }
         }
      }
   ]
}
{
  "id": "or_38KZgonh9EcrPZEQ",
  "code": "2ZRLTGNI7Y",
  "amount": 1000,
  "currency": "BRL",
  "closed": true,
  "items": [
    {
      "id": "oi_5O7YMOaU8vSjNmDr",
      "type": "product",
      "description": "Chaveiro do Tesseract",
      "amount": 1000,
      "quantity": 1,
      "status": "active",
      "created_at": "2023-08-08T13:53:01Z",
      "updated_at": "2023-08-08T13:53:01Z"
    }
  ],
  "customer": {
    "id": "cus_zyMgpnmuQvImBErW",
    "name": "Tony Stark",
    "email": "[email protected]",
    "delinquent": false,
    "created_at": "2023-08-04T17:58:57Z",
    "updated_at": "2023-08-04T17:58:57Z",
    "phones": {}
  },
  "status": "paid",
  "created_at": "2023-08-08T13:53:01Z",
  "updated_at": "2023-08-08T13:53:05Z",
  "closed_at": "2023-08-08T13:53:01Z",
  "charges": [
    {
      "id": "ch_g3kN6XWIAZUVY9Xz",
      "code": "2ZRLTGNI7Y",
      "amount": 105173,
      "status": "paid",
      "currency": "BRL",
      "payment_method": "credit_card",
      "created_at": "2023-08-08T13:53:02Z",
      "updated_at": "2023-08-08T13:53:05Z",
      "customer": {
        "id": "cus_zyMgpnmuQvImBErW",
        "name": "Tony Stark",
        "email": "[email protected]",
        "delinquent": false,
        "created_at": "2023-08-04T17:58:57Z",
        "updated_at": "2023-08-04T17:58:57Z",
        "phones": {}
      },
      "last_transaction": {
        "id": "tran_aP9wR6jt3tbKRgGJ",
        "transaction_type": "credit_card",
        "amount": 1000,
        "status": "paid",
        "success": false,
        "operation_type": "auth_and_capture",
        "created_at": "2023-08-08T13:53:05Z",
        "updated_at": "2023-08-08T13:53:05Z",
        "gateway_response": {
          "code": "200"
        },
        "antifraud_response": {},
        "metadata": {}
      }
    }
  ],
  "checkouts": []
}

Contrato PSP

Para criar uma cobrança ou um pedido com Apple Pay, devemos incluir o objeto credit_card dentro do nó payments, assim como a propriedade "payment_method": "credit_card". Além disso, o objeto credit_card deve conter os atributos do payload e do billing_address.

{
  "customer": {
    "phones": {
      "home_phone": {
        "country_code": "55",
        "area_code": "21",
        "number": "000000000"
      }
    },
    "name": "Tony Stark",
    "email": "[email protected]",
    "type": "individual",
    "document": "03154435026",
    "document_type": "cpf"
  },
  "items": [
    {
      "amount": 1000,
      "description": "Chaveiro do Tesseract",
      "quantity": 1,
      "code": 123
    }
  ],
   "payments":[
      {
         "amount":1000,
         "payment_method":"credit_card",
         "statement_descriptor":"AVENGERS",
         "credit_card":{
            "card":{
               "billing_address":{
                  "city":"São Paulo",
                  "country":"BR",
                  "line_1":"01,Rua teste",
                  "line_2":"",
                  "state":"SP",
                  "zip_code":"99999999"
               }
            },
            "payload":{
               "type":"apple_pay",
               "apple_pay":{
                  "version":"EC_v1",
                  "merchant_identifier":"mymerchant",
                  "header":{
                     "transaction_id":"715a0386c307bf22907496790cef4bd169b1182460d58eef97bbad2704a893ab",
                     "ephemeral_public_key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY69lq/RQs/Y68/2Kd1uY0eprNjHvO3xAEnMehoroxcQgp6y21c5dVEBVHFvcPzAIzYnblYjIQfmUWU8Kpgs+rA==",
                     "public_key_hash":"B/vXPu6KfGjbxJVTQUtBOzkxmqhnT+TwQfdb5U9lsdA="
                  },
                  "signature":"MIAGCSqGSIb3DQEHAqCAMIACAQExDTALBglghkgBZQMEAgEwgAYJKoZIhvcNAQcBAACggDCCA+MwggOIoAMCAQICCEwwQUlRnVQ2MAoGCCqGSM49BAMCMHoxLjAsBgNVBAMMJUFwcGxlIEFwcGxpY2F0aW9uIEludGVncmF0aW9uIENBIC0gRzMxJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUzAeFw0xOTA1MTgwMTMyNTdaFw0yNDA1MTYwMTMyNTdaMF8xJTAjBgNVBAMMHGVjYy1zbXAtYnJva2VyLXNpZ25fVUM0LVBST0QxFDASBgNVBAs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cGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUwIITDBBSVGdVDYwCwYJYIZIAWUDBAIBoIGTMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTIzMDYyMjE2MTEzMVowKAYJKoZIhvcNAQk0MRswGTALBglghkgBZQMEAgGhCgYIKoZIzj0EAwIwLwYJKoZIhvcNAQkEMSIEIDguPCnKbWUFFioBX08LMMkyqqZ3yi6Z9gllYbr1eQ9TMAoGCCqGSM49BAMCBEcwRQIgYsFNv9xOSxB/W9dz+dYB28GJ/mGml6mIn5fUEtdZxfACIQC/tPcS9tDqlMY2WDQ9ZcHSXSu8yE13Ev+F4voXumtXmgAAAAAAAA==",
                  "data":"OFR9A+Mul7+FqsEJth2dq9waVnxI0Fms57as34hoCgMl3Ke9W36AbIP48tZ95T3vdhe3btwwflZjXmmlGD0l35qHUeT5XEGxZiUO/6Vx8+cEp751/ORqcsmjnypmCdGgKfLirAP+DjkgCylSgMm0HQMb8X6pPp4BpiqYPEDJDr3U3uIdHJE8oJCDznSrTKozOYzNJ54OecEw0jOu70B+GdipFm/0a1clhktbG/cabbTjqpEEsbjtmd1KEZrVqnH+c3Dkm6TphB/KzuAO04s9nkTU0wGEF4HcLh2kRCXpocAz3nPQiqgnbTMvH9bXx13lFV392v4GIc8WqjpDYRQ5g9mpseqPHrEI67IgSgDs+JZo6f/dXLkBTx3M7wFwvqs3oZ8Z06nw5PudsWeRfIMqERBFw4MH1QZVPx95qX4="
               }
            }
         }
      }
   ]
}
{
  "id": "or_38KZgonh9EcrPZEQ",
  "code": "2ZRLTGNI7Y",
  "amount": 1000,
  "currency": "BRL",
  "closed": true,
  "items": [
    {
      "id": "oi_5O7YMOaU8vSjNmDr",
      "type": "product",
      "description": "Chaveiro do Tesseract",
      "amount": 1000,
      "quantity": 1,
      "status": "active",
      "created_at": "2023-08-08T13:53:01Z",
      "updated_at": "2023-08-08T13:53:01Z"
    }
  ],
  "customer": {
    "id": "cus_zyMgpnmuQvImBErW",
    "name": "Tony Stark",
    "email": "[email protected]",
    "delinquent": false,
    "created_at": "2023-08-04T17:58:57Z",
    "updated_at": "2023-08-04T17:58:57Z",
    "phones": {}
  },
  "status": "paid",
  "created_at": "2023-08-08T13:53:01Z",
  "updated_at": "2023-08-08T13:53:05Z",
  "closed_at": "2023-08-08T13:53:01Z",
  "charges": [
    {
      "id": "ch_g3kN6XWIAZUVY9Xz",
      "code": "2ZRLTGNI7Y",
      "amount": 1000,
      "status": "paid",
      "currency": "BRL",
      "payment_method": "credit_card",
      "created_at": "2023-08-08T13:53:02Z",
      "updated_at": "2023-08-08T13:53:05Z",
      "customer": {
        "id": "cus_zyMgpnmuQvImBErW",
        "name": "Tony Stark",
        "email": "[email protected]",
        "delinquent": false,
        "created_at": "2023-08-04T17:58:57Z",
        "updated_at": "2023-08-04T17:58:57Z",
        "phones": {}
      },
      "last_transaction": {
        "id": "tran_aP9wR6jt3tbKRgGJ",
        "transaction_type": "credit_card",
        "amount": 1000,
        "status": "paid",
        "success": false,
        "operation_type": "auth_and_capture",
        "created_at": "2023-08-08T13:53:05Z",
        "updated_at": "2023-08-08T13:53:05Z",
        "gateway_response": {
          "code": "200"
        },
        "antifraud_response": {},
        "metadata": {}
      }
    }
  ],
  "checkouts": []
}

Atributos

O objeto payload possui os seguintes atributos:

AtributosTipoDescrição
typestringDetermina o tipo de token. Para Apple Pay deve-se enviar apple_pay.
apple_payobjectCampos a serem enviados para pagamento com Apple Pay

O objeto apple_pay possui os seguintes atributos:

AtributosTipoDescrição
versionstringInformação sobre a versão do token. O único valor aceito é o EC_v1.
merchant_identifierstringIdentificador da loja no Apple Pay. O mesmo identificador que foi configurado no aplicativo para criar o token de pagamento.
headerobjectInformações adicionais dependentes da versão que você usa para descriptografar e verificar o pagamento. Veja Chaves e Valores de Cabeçalho abaixo.
transaction_idstringUm identificador hexadecimal da
ephemeral_public_keystringBytes de chave codificados em X.509, codificados em Base64.
public_key_hashstringHash dos bytes da chave pública codificada em X.509 do certificado do comerciante
signaturestringAssinatura do pagamento e dados do cabeçalho.
datastringDados de pagamento criptografados. Corresponde ao encryptedMessage do token Apple.

O objeto billing_address possui os seguintes atributos:

AtributosTipoDescrição
CountrystringCódigo do país no formato ISO 3166-1 alpha-2.
statestringCódigo do estado no formato ISO 3166-2.
CitystringCidade. Max: 64 caracteres.
zip_codestringCEP. Max: 16 caracteres.
line_1stringLinha 1 do endereço. (Número, Rua, e Bairro - Nesta ordem e separados por vírgula) Max: 256 caracteres.
Line_2stringLinha 2 do endereço. (Complemento - Andar, Sala, Apto). Max: 128 caracteres.