# processar pagamento - cartão de crédito

<mark style="color:green;">`POST`</mark> `https://api.payhow.com.br/api/v1/ecommerce/checkout/cart/payment/process`

#### Headers

| Name                                               | Type   | Description         |
| -------------------------------------------------- | ------ | ------------------- |
| Accept<mark style="color:red;">\*</mark>           | String | application/json    |
| Content-Type<mark style="color:red;">\*</mark>     | String | application/json    |
| checkout-session<mark style="color:red;">\*</mark> | String | \[checkout-session] |

#### Request Body

| Name                                                 | Type   | Description                     |
| ---------------------------------------------------- | ------ | ------------------------------- |
| payment\_method<mark style="color:red;">\*</mark>    | String | payhow-gat                      |
| type<mark style="color:red;">\*</mark>               | String | credit\_card                    |
| name\_customer<mark style="color:red;">\*</mark>     | String | \[nome e sobrenome do cliente]  |
| first\_name<mark style="color:red;">\*</mark>        | String | \[nome do cliente]              |
| last\_name<mark style="color:red;">\*</mark>         | String | \[sobrenome do cliente]         |
| document<mark style="color:red;">\*</mark>           | String | cpf                             |
| document\_number<mark style="color:red;">\*</mark>   | String | \[cpf do cliente]               |
| email<mark style="color:red;">\*</mark>              | String | \[email do cliente]             |
| phone<mark style="color:red;">\*</mark>              | String | \[telefone do cliente]          |
| installments<mark style="color:red;">\*</mark>       |        | \[número de parcelas]           |
| installment\_value<mark style="color:red;">\*</mark> | String | \[valor da parcela em centavos] |
| token<mark style="color:red;">\*</mark>              | String | \[token gerado do cartão]       |

{% tabs %}
{% tab title="200: OK Pagamento processado" %}

```
"payment_status": "processing"
```

{% endtab %}

{% tab title="403: Forbidden Falha ao processar pagamento" %}

{% endtab %}
{% endtabs %}
