Preciso que faça um fonte em delphi com integração json com a api da payu, preciso apenas a opção Pagamentos->Cartões de crédito (Autorização e captura).
http://developers.payulatam.com/pt/api/payments.html
Exemplo:
Fazer um exe (com os fontes) que tenha os edits para por os dados do cartão e um botão ok para que seja feito a transação junto a payu. Segue exemplo do json:
{
"language": "es",
"command": "SUBMIT_TRANSACTION",
"merchant": {
"apiKey": "4Vj8eK4rloUd272L48hsrarnUA",
"apiLogin": "pRRXKOl8ikMmt9u"
},
"transaction": {
"order": {
"accountId": "512327",
"referenceCode": "payment_test_00000001",
"description": "payment test",
"language": "es",
"signature": "31eba6f397a435409f57bc16b5df54c3",
"notifyUrl": "
http://www.tes.com/confirmation",
"additionalValues": {
"TX_VALUE": {
"value": 100,
"currency": "BRL"
}
},
"buyer": {
"merchantBuyerId": "1",
"fullName": "First name and second buyer name",
"emailAddress": "
buyer_test@test.com",
"contactPhone": "(11)756312633",
"dniNumber": "811.807.405-64",
"cnpj": "32593371000110",
"shippingAddress": {
"street1": "calle 100",
"street2": "5555487",
"city": "Sao paulo",
"state": "sp",
"country": "br",
"postalcode": "01019-030",
"phone": "(11)756312633"
}
}
},
"creditcard": {
"number": "4097440000000004",
"securitycode": "321",
"expirationdate": "2014/12",
"name": "rejected"
},
"extraparameters": {
"installments_number": 1
},
"type": "authorization_and_capture",
"paymentmethod": "visa",
"paymentcountry": "br",
"ipaddress": "127.0.0.1"
},
"test": false
}
Delivery term: November 15, 2018