Unable to get APPROVED response in Test API

292 views
Skip to first unread message

SC

unread,
May 13, 2016, 9:48:32 AM5/13/16
to Desarrolladores PayU Latam
Hi,

I'm trying to get APPROVED response for AUTHORIZATION_AND_CAPTURE using test URL as described in http://developers.payulatam.com/en/api/sandbox.html with the following input.

{
   
"language": "en",
   
"command": "SUBMIT_TRANSACTION",
   
"merchant": {
     
"apiLogin": "pRRXKOl8ikMmt9u",
     
"apiKey": "4Vj8eK4rloUd272L48hsrarnUA"
   
},
   
"transaction": {
     
"order": {
         
"accountId": "512326",
         
"referenceCode": "testPanama1",
         
"description": "Test order Panama",
         
"language": "en",
         
"notifyUrl": "http://pruebaslap.xtrweb.com/lap/pruebconf.php",
         
"signature": "32BFC4362F94D84E7229FF183ED11281",
         
"shippingAddress": {
           
"country": "PA"
         
},
         
"buyer": {
           
"fullName": "APPROVED",
           
"emailAddress": "te...@payulatam.com",
           
"dniNumber": "1155255887",
           
"shippingAddress": {
               
"street1": "Calle 93 B 17 – 25",
               
"city": "Panama",
               
"state": "Panama",
               
"country": "PA",
               
"postalCode": "000000",
               
"phone": "5582254"
           
}
         
},
         
"additionalValues": {
           
"TX_VALUE": {
               
"value": 5,
               
"currency": "USD"
           
}
         
}
     
},
     
"creditCard": {
         
"number": "4111111111111111",
         
"securityCode": "123",
         
"expirationDate": "2018/08",
         
"name": "APPROVED"
     
},
     
"type": "AUTHORIZATION_AND_CAPTURE",
     
"paymentMethod": "VISA",
     
"paymentCountry": "PA",
     
"payer": {
         
"fullName": "APPROVED",
         
"emailAddress": "te...@payulatam.com"
     
},
     
"ipAddress": "127.0.0.1",
     
"cookie": "cookie_52278879710130",
     
"userAgent": "Firefox",
     
"extraParameters": {
         
"INSTALLMENTS_NUMBER": 1,
         
"RESPONSE_URL": "http://www.misitioweb.com/respuesta.php"
     
}
   
},
   
"test": true
}


and I keep getting 

curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST --data-binary @body.json https://sandbox.api.payulatam.com/payments-api/4.0/service.cgi

{"code":"SUCCESS","error":null,"transactionResponse":{"orderId":7347733,"transactionId":"c0c4a91d-963d-45e7-8fa0-19965830c6cf","state":"ERROR","paymentNetworkResponseCode":null,"paymentNetworkResponseErrorMessage":null,"trazabilityCode":null,"authorizationCode":null,"pendingReason":null,"responseCode":"PAYMENT_NETWORK_NO_RESPONSE","errorCode":"PAYMENT_NETWORK_NO_RESPONSE","responseMessage":"After [50] secs. no response was received from the financial entity","transactionDate":null,"transactionTime":null,"operationDate":null,"referenceQuestionnaire":null,"extraParameters":null}}


Could you please help in pointing out what I'm not doing correctly?

ADMIN

unread,
May 13, 2016, 10:17:33 AM5/13/16
to Desarrolladores PayU Latam
Hello,

Thanks for using our forum for publishing your doubts.

The error your're getting arises because currently we don't support the VISA payment method in Panama. Neither in sandbox, nor production environment. We ask you to use MASTERCARD for testing or please select another country such as Colombia.

We hope this information was useful to solve your questions.

SC

unread,
May 17, 2016, 9:11:39 AM5/17/16
to Desarrolladores PayU Latam
Tried Mastercard. Received same error code PAYMENT_NETWORK_NO_RESPONSE. Request and Response pasted below. Any pointers?

{
 
"language": "en",
 
"command": "SUBMIT_TRANSACTION",
 
"merchant": {
   
"apiLogin": "pRRXKOl8ikMmt9u",
   
"apiKey": "4Vj8eK4rloUd272L48hsrarnUA"
 
},
 
"transaction": {
   
"order": {
     
"accountId": "512326",

     
"referenceCode": "testPanama01",

     
"description": "Test order Panama",
     
"language": "en",
     
"notifyUrl": "http://pruebaslap.xtrweb.com/lap/pruebconf.php",

     
"signature": "9F263EB48200C5DEBAAF8FF5BDCDFED9",

     
"shippingAddress": {
       
"country": "PA"
     
},
     
"buyer": {
       
"fullName": "APPROVED",
       
"emailAddress": "te...@payulatam.com",
       
"dniNumber": "1155255887",
       
"shippingAddress": {
         
"street1": "Calle 93 B 17 – 25",
         
"city": "Panama",
         
"state": "Panama",
         
"country": "PA",
         
"postalCode": "000000",
         
"phone": "5582254"
       
}
     
},
     
"additionalValues": {
       
"TX_VALUE": {
         
"value": 5,
         
"currency": "USD"
       
}
     
}
   
},
   
"creditCard": {

     
"number": "5500000000000004",

     
"securityCode": "123",
     
"expirationDate": "2018/08",
     
"name": "APPROVED"
   
},
   
"type": "AUTHORIZATION_AND_CAPTURE",

   
"paymentMethod": "MASTERCARD",

   
"paymentCountry": "PA",
   
"payer": {
     
"fullName": "APPROVED",
     
"emailAddress": "te...@payulatam.com"
   
},
   
"ipAddress": "127.0.0.1",
   
"cookie": "cookie_52278879710130",
   
"userAgent": "Firefox",
   
"extraParameters": {
     
"INSTALLMENTS_NUMBER": 1,
     
"RESPONSE_URL": "http://www.misitioweb.com/respuesta.php"
   
}
 
},
 
"test": true
}


curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST --data-binary @body.json https://sandbox.api.payulatam.com/payments-api/4.0/service.cgi



{
 
"code": "SUCCESS",
 
"error": null,
 
"transactionResponse": {

   
"orderId": 7348796,
   
"transactionId": "16031747-128e-4f43-8f8c-eda1cb65a1a2",

ADMIN

unread,
May 17, 2016, 9:19:14 AM5/17/16
to Desarrolladores PayU Latam
Hello,

Unfortunately, currently it's not possible to get approved responses for Panama under the payment method MASTERCARD in testing environment. We encourage you to test approved payments with a different country, for example Colombia. In this way, you can test the correct functionality of the integration.

We assure you, this won't happen when passing to productive environment. 
Reply all
Reply to author
Forward
0 new messages