Atributos | Tipo | Descrição |
---|---|---|
type | string | Determina o tipo de token. Para Samsung Pay deve-se enviar samsung_pay |
samsung_pay | object | Campos a serem enviados para pagamento com Samsung Pay |
O objeto googlle_pay
possui os seguintes atributos:
Atributos | Tipo | Descrição |
---|---|---|
playload | string | Informação encriptografada do token contendo as informações do cartão. |
Além disso, o objeto 'header' contém o seguinte atributo:
Atenção!
Todos os campos do objeto
samsung_pay
são obrigatórios caso a transação seja feita por esse meio de pagamento!
{
"amount": 1490,
"currency": "BRL",
"customer": {
"name": "Tony Stark",
"email": "{{email}}"
},
"payment":{
"payment_method": "credit_card",
"credit_card": {
"installments": 1,
"statement_descriptor": "AVENGERS",
"payload":{
"type":"samsung_pay",
"samsung_pay": {
"playload":"eyJhbGciOiJSU0ExXzUiLCJraWQiOiIvM1Z6bFlSYURlODNMT0FzVXlQQlZCZjllem5iWFkwOUNVMkhXODVjMmtvPSIsInR5cCI6IkpPU0UiLCJjaGFubmVsU2VjdXJpdHlDb250ZXh0IjoiUlNBX1BLSSIsImVuYyI6IkExMjhHQ00ifQ.u-xYGprUMo-KS0ViUfhmzl3ZfV82_LngHr61tH91t45BFHi2eYyMXH4Itdj_pw0DI6sjx7MdvEYC5F2SHoVFY_sWKYm0oku2btofEgBy25ybVpnv0FYqS0PxQ20bh098qJCBLhy5s9C8zewWwPfsq9QnG2QK1o6QVEMK10zu7780MrukajzbBR52_7_hZHWcKxauFIAJ1bI2tcRmdz7WWRFFlCKUK0ZIwfzri3Bj4FAL6xwGO_NmPwlmaL9LETQFmRoCIv-kG399wLP7ykZ-j_WtBy3i2H4AvgeAy0RQfEfACMRkAMsnGiX67IY0BwHaJYx3HFLN0e8hhC1PCzccaQ.0ek6WnJcLDF20WMG.yK0bTlfx1gDyB4sJO70UCWfNApSAiiPclyojP6Bybwb93v3Zw5ofc2wSJvXp_cShIBbzFfJG6NIimGVPCHaskTwZfblBCj9sXMbaSNdk4mw8YTOtqLXPNvTYswqrXSttRF__ZesICECZwmJRTB8HCZ_pS669eE7S79XAKe_LbOxbw5MGBcraky_qcjdydyMWdEbc1GF9Uk1ybv1IjaXdrPM78uB_S-UCeuxhjNk8iQteRnHw.amoeeuVG6WjxLeYUfzrq_g"
}
}
}
},
"metadata": {
"code": "123"
}
}
{
"id": "ch_2dOjaaSvKhOQjbyJ",
"code": "PK5KSKQCW4",
"gateway_id": "d629c0b6-0b05-475a-85a0-a0d1e327bf6e",
"amount": 1490,
"paid_amount": 1490,
"status": "paid",
"currency": "BRL",
"payment_method": "credit_card",
"paid_at": "2018-10-22T16:46:51Z",
"created_at": "2018-10-22T16:46:50Z",
"updated_at": "2018-10-22T16:46:50Z",
"customer": {
"id": "cus_ZPJEoqvH3AfrWyz4",
"name": "Tony Stark",
"email": "[email protected]",
"delinquent": false,
"created_at": "2018-10-22T16:46:49Z",
"updated_at": "2018-10-22T16:46:49Z",
"phones": {}
},
"last_transaction": {
"id": "tran_Jdl2e6lTnNuRDaQP",
"transaction_type": "credit_card",
"gateway_id": "5c367dff-86f9-4703-b23b-1f926d792877",
"amount": 1490,
"status": "captured",
"success": true,
"installments": 1,
"statement_descriptor": "AVENGERS",
"acquirer_name": "simulator",
"acquirer_affiliation_code": "",
"acquirer_tid": "947508",
"acquirer_nsu": "711616",
"acquirer_auth_code": "714628",
"acquirer_message": "Simulator|Transação de simulação autorizada com sucesso",
"acquirer_return_code": "0",
"operation_type": "auth_and_capture",
"card": {
"id": "card_Gq3bKlEUwzukdkRx",
"first_six_digits": "544584",
"last_four_digits": "9407",
"brand": "Mastercard",
"holder_name": "SAMSUNG PAY",
"exp_month": 1,
"exp_year": 2020,
"status": "active",
"type": "credit",
"tokenization_method": "samsung_pay",
"created_at": "2018-10-22T16:46:51Z",
"updated_at": "2018-10-22T16:46:51Z"
},
"created_at": "2018-10-22T16:46:51Z",
"updated_at": "2018-10-22T16:46:51Z",
"gateway_response": {
"code": "201",
"errors": []
}
},
"metadata": {
"code": "123"
}
}
Homologação
Estamos em processo de homologação com a Samsung, mas para facilitar disponibilizamos, abaixo, o contrato para requisições!