--- http_interactions: - request: method: post uri: https://sandbox.api.payulatam.com/payments-api/4.0/service.cgi body: encoding: UTF-8 string: '{"test":true,"language":"en","command":"SUBMIT_TRANSACTION","merchant":{"apiLogin":"pRRXKOl8ikMmt9u","apiKey":"4Vj8eK4rloUd272L48hsrarnUA"},"transaction":{"paymentCountry":"PE","type":"AUTHORIZATION","ipAddress":"127.0.0.1","order":{"accountId":"512323","referenceCode":"R469552768-EWTKMWVF","description":"Compra en 508029","language":"en","shippingAddress":{"street1":"YT-1300","street2":"","city":"Mos Eisley","state":"AL","country":"US","postalCode":"12010","phone":"(555) 555-5555"},"buyer":{"fullName":"APPROVED","dniNumber":"32144457","dniType":null,"merchantBuyerId":null,"emailAddress":"han@example.com","contactPhone":"(555) 555-5555","shippingAddress":{"street1":"YT-1300","street2":"","city":"Mos Eisley","state":"AL","country":"US","postalCode":"12010","phone":"(555) 555-5555"}},"additionalValues":{"TX_VALUE":{"value":"19.99","currency":"PEN"}},"signature":"f309f4aab68be826534c7f08418499a2"},"creditCard":{"number":"4111111111111111","securityCode":"123","expirationDate":"2021/09","name":"APPROVED"},"paymentMethod":"VISA","payer":{"fullName":"APPROVED","contactPhone":"(555) 555-5555","dniNumber":"32144457","emailAddress":"han@example.com","billingAddress":{"street1":"YT-1300","street2":"","city":"Mos Eisley","state":"AL","country":"US","phone":"(555) 555-5555"}},"extraParameters":{"INSTALLMENTS_NUMBER":1}}}' headers: Content-Type: - application/json Accept: - application/json Connection: - close Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 User-Agent: - Ruby response: status: code: 200 message: OK headers: X-Frame-Options: - sameorigin Content-Type: - application/json Transfer-Encoding: - chunked Date: - Mon, 23 Mar 2020 17:01:16 GMT Connection: - close Server: - PayU server body: encoding: UTF-8 string: '{"code":"SUCCESS","error":null,"transactionResponse":{"orderId":849193435,"transactionId":"ca0188be-2e5a-4d4e-a096-42ef800e3fdb","state":"APPROVED","paymentNetworkResponseCode":null,"paymentNetworkResponseErrorMessage":null,"trazabilityCode":"00000000","authorizationCode":"00000000","pendingReason":null,"responseCode":"APPROVED","errorCode":null,"responseMessage":null,"transactionDate":null,"transactionTime":null,"operationDate":1584982876132,"referenceQuestionnaire":null,"extraParameters":{"PAYMENT_WAY_ID":"4","BANK_REFERENCED_CODE":"CREDIT"},"additionalInfo":null}}' http_version: null recorded_at: Mon, 23 Mar 2020 17:01:16 GMT recorded_with: VCR 5.1.0