--- http_interactions: - request: method: post uri: https://api-cert.payeezy.com/v1/transactions/tokens body: encoding: UTF-8 string: '{"transaction_type":"store","apikey":"78D9PJJDKnP52U1jwC4APpAsFdwxaphC","ta_token":"NOIW","type":"FDToken","credit_card":{"type":"Visa","cardholder_name":"Ben Crouse","card_number":"4111111111111111","exp_date":"0119","cvv":999},"auth":"false"}' headers: Content-Type: - application/json Apikey: - 78D9PJJDKnP52U1jwC4APpAsFdwxaphC Token: - fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658 Nonce: - '5116492557.85177' Timestamp: - '1523992761071' Authorization: - ZjkwZThkYTAxN2YyNzE5MjhhNTcwYzFmZTUwNjMwOGM5ZWMxNTBlZDBkYTVmMDIwNTU0ZTI0ZWQwZTE0ZDE0Zg== Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 201 message: Created headers: Content-Language: - en-US Content-Type: - application/json;charset=UTF-8 Correlation-Id: - '124.2399276143853' Date: - Tue, 17 Apr 2018 19:19:21 GMT Optr-Cxt: - 0100010000fdc67832-b05b-455f-8f6a-4a311d2ad7a600000000-0000-0000-0000-000000000000-1 HTTP ; X-Archived-Client-Ip: - 10.174.197.250 X-Backside-Transport: - OK OK,OK OK X-Client-Ip: - 10.174.197.250,54.218.45.37 X-Global-Transaction-Id: - '4145714007' X-Powered-By: - Servlet/3.0 Content-Length: - '174' Connection: - keep-alive body: encoding: UTF-8 string: '{"correlation_id":"124.2399276143853","status":"success","type":"FDToken","token":{"type":"Visa","cardholder_name":"Ben Crouse","exp_date":"0119","value":"9495846215171111"}}' http_version: recorded_at: Tue, 17 Apr 2018 19:19:21 GMT - request: method: post uri: https://api-cert.payeezy.com/v1/transactions body: encoding: UTF-8 string: '{"transaction_type":"recurring","merchant_ref":null,"method":"token","token":{"token_type":"FDToken","token_data":{"type":"Visa","cardholder_name":"Ben Crouse","value":"9495846215171111","exp_date":"0119"}},"billing_address":{"street":"22 s. 3rd st.","city":"Philadelphia","state_province":"PA","zip_postal_code":"19106","country":"US"},"currency_code":"USD","amount":"500"}' headers: Content-Type: - application/json Apikey: - 78D9PJJDKnP52U1jwC4APpAsFdwxaphC Token: - fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658 Nonce: - '3002973969.2151604' Timestamp: - '1523992761608' Authorization: - MTJlNDkzYzFmMGZhNmMyZDZjMzEyOWUzMzY4MWFlYmJmYzhkYmI5ZGY0YzE0YjkxMzE1M2ViZjZkZGNiY2MyOA== Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 201 message: Created headers: Access-Control-Allow-Headers: - Content-Type, apikey, token Access-Control-Allow-Methods: - GET, PUT, POST, DELETE Access-Control-Allow-Origin: - http://localhost:8080 Access-Control-Max-Age: - '3628800' Access-Control-Request-Headers: - origin, x-requested-with, accept, content-type Content-Language: - en-US Content-Type: - application/json;charset=UTF-8 Date: - Tue, 17 Apr 2018 19:19:22 GMT Optr-Cxt: - 01000100007f93d037-61de-4fc7-9b47-9fcda20be26200000000-0000-0000-0000-000000000000-1 HTTP ; X-Archived-Client-Ip: - 10.174.197.250 X-Backside-Transport: - OK OK,OK OK X-Client-Ip: - 10.174.197.250,54.218.45.37 X-Global-Transaction-Id: - '3932791391' X-Powered-By: - Servlet/3.0 Content-Length: - '511' Connection: - keep-alive body: encoding: UTF-8 string: '{"correlation_id":"124.2399276196154","transaction_status":"approved","validation_status":"success","transaction_type":"recurring","transaction_id":"ET136583","transaction_tag":"2251924388","method":"token","amount":"500","currency":"USD","avs":"2","cvv2":"I","token":{"token_type":"FDToken","token_data":{"type":"Visa","cardholder_name":"Ben Crouse","exp_date":"0119","value":"9495846215171111"}},"bank_resp_code":"100","bank_message":"Approved","gateway_resp_code":"00","gateway_message":"Transaction Normal"}' http_version: recorded_at: Tue, 17 Apr 2018 19:19:22 GMT - request: method: post uri: https://api-cert.payeezy.com/v1/transactions/ET136583 body: encoding: UTF-8 string: '{"transaction_type":"refund","transaction_tag":"2251924388","method":"credit_card","currency_code":"USD","amount":"500"}' headers: Content-Type: - application/json Apikey: - 78D9PJJDKnP52U1jwC4APpAsFdwxaphC Token: - fdoa-941fbaa7c83dd658684cfe1c31d6d61c941fbaa7c83dd658 Nonce: - '5346872824.359478' Timestamp: - '1523992762627' Authorization: - YTRkODQ5NTk0NjE5MDkxZTEwMWVmMThmZDdmN2ZlODkxYjI1Y2Q1NGUzOGRlOTdjNjc4MjViY2U3YTc2NjE5Nw== Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 201 message: Created headers: Content-Language: - en-US Content-Type: - application/json;charset=UTF-8 Date: - Tue, 17 Apr 2018 19:19:23 GMT Optr-Cxt: - 0100010000ea2fd219-fe50-407a-a069-cf5616e97ba400000000-0000-0000-0000-000000000000-1 HTTP ; X-Archived-Client-Ip: - 10.174.197.250 X-Backside-Transport: - OK OK,OK OK X-Client-Ip: - 10.174.197.250,54.201.0.49 X-Global-Transaction-Id: - '4145715111' X-Powered-By: - Servlet/3.0 Content-Length: - '428' Connection: - keep-alive body: encoding: UTF-8 string: '{"correlation_id":"124.2399276298457","transaction_status":"approved","validation_status":"success","transaction_type":"refund","transaction_id":"RETURN","transaction_tag":"2251924391","method":"credit_card","amount":"500","currency":"USD","token":{"token_type":"FDToken","token_data":{"value":"9495846215171111"}},"bank_resp_code":"100","bank_message":"Approved","gateway_resp_code":"00","gateway_message":"Transaction Normal"}' http_version: recorded_at: Tue, 17 Apr 2018 19:19:23 GMT recorded_with: VCR 2.9.3