--- http_interactions: - request: method: post uri: https://api.flow.io/workarea-sandbox/cards body: encoding: UTF-8 string: '{"number":"4012888888881881","name":"Ben Crouse","cvv":"999","expiration_year":2019,"expiration_month":1}' headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby - apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.68/ruby_client Authorization: - Basic RzhqUmV4QkJRdmV1TEwyczZUUWZjSWk2TnZDanhjQjQ3Z3dudmNkbDR4VU5QRUp6QlV0Z3h0b1BRNkZFUjZpSkxmeG1TNGd4M0JxejB4VE5uMlZnenlXTmg4U1hxTHRuSnBjZk1iYTdlaDhyOGxNQTRWd2xOVjNtSUJNZTBBNXI6 X-Apidoc-Version: - 0.6.58 X-Apidoc-Version-Major: - '0' Content-Type: - application/json; charset=UTF-8 response: status: code: 201 message: Created headers: Date: - Tue, 30 Oct 2018 18:12:51 GMT Content-Type: - application/json Content-Length: - '244' Connection: - keep-alive Set-Cookie: - __cfduid=d5bcac0e64e888b0220ebb8bab959d4501540923171; Max-Age=31536000; Expires=Wed, 30 Oct 2019 18:12:51 GMT; Path=/; Domain=.payment.api.flow.io; HTTPOnly - __cfduid=d720fc830c8af1b5fd0732b31983ad3911540923171; expires=Wed, 30-Oct-19 18:12:51 GMT; path=/; domain=.api.flow.io; HttpOnly Expect-Ct: - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Request-Time: - '86' Vary: - Origin X-Flow-Request-Id: - api37590c0dc2d544c687428c61b4e817c1 X-Flow-Server: - payment X-Trace-Token: - 38321f897552-163671 Server: - cloudflare Cf-Ray: - 471fda3fde4e925a-EWR body: encoding: UTF-8 string: '{"id":"crd-d161f0ec8f5843198296e89b49c00da5","token":"F96ijBAOSQghnJPbUJbCaiSwJu2uXGq77py2gAeNGBT18pY21vSKgvsgdDFHXqN0","type":"visa","expiration":{"month":1,"year":2019},"iin":"401288","last4":"1881","name":"Ben Crouse","discriminator":"card"}' http_version: recorded_at: Tue, 30 Oct 2018 18:12:51 GMT - request: method: post uri: https://api.flow.io/workarea-sandbox/authorizations body: encoding: UTF-8 string: '{"amount":500,"currency":"USD","discriminator":"direct_authorization_form","token":"F96ijBAOSQghnJPbUJbCaiSwJu2uXGq77py2gAeNGBT18pY21vSKgvsgdDFHXqN0","order_number":"AF9A27F908"}' headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby - apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.68/ruby_client Authorization: - Basic RzhqUmV4QkJRdmV1TEwyczZUUWZjSWk2TnZDanhjQjQ3Z3dudmNkbDR4VU5QRUp6QlV0Z3h0b1BRNkZFUjZpSkxmeG1TNGd4M0JxejB4VE5uMlZnenlXTmg4U1hxTHRuSnBjZk1iYTdlaDhyOGxNQTRWd2xOVjNtSUJNZTBBNXI6 X-Apidoc-Version: - 0.6.58 X-Apidoc-Version-Major: - '0' Content-Type: - application/json; charset=UTF-8 response: status: code: 201 message: Created headers: Date: - Tue, 30 Oct 2018 18:12:52 GMT Content-Type: - application/json Content-Length: - '1002' Connection: - keep-alive Set-Cookie: - __cfduid=d18d1331b9a69a3309c00bb080205b0d71540923172; expires=Wed, 30-Oct-19 18:12:52 GMT; path=/; domain=.api.flow.io; HttpOnly - __cfduid=d6f5db62786af09a93ca7278fa33ea3621540923172; Max-Age=31536000; Expires=Wed, 30 Oct 2019 18:12:52 GMT; Path=/; Domain=.payment.api.flow.io; HTTPOnly Expect-Ct: - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Request-Time: - '73' Vary: - Origin X-Flow-Request-Id: - api4f06436bb4974666b9f499e9de8d5cba X-Flow-Server: - payment X-Trace-Token: - 4bbb36f76f75-163880 Server: - cloudflare Cf-Ray: - 471fda42391f9a04-EWR body: encoding: UTF-8 string: '{"id":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ","key":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ","merchant_of_record":"flow","card":{"id":"crd-d161f0ec8f5843198296e89b49c00da5","token":"F96ijBAOSQghnJPbUJbCaiSwJu2uXGq77py2gAeNGBT18pY21vSKgvsgdDFHXqN0","discriminator":"card_reference"},"amount":500,"currency":"USD","customer":{"name":{}},"attributes":{},"result":{"status":"authorized","description":{"display":"VISA ending with 1881"}},"created_at":"2018-10-30T18:12:52.261Z","method":{"id":"visa","type":"card","name":"VISA","images":{"small":{"url":"https://flowcdn.io/util/logos/payment-methods/visa/30/original.png","width":65,"height":41},"medium":{"url":"https://flowcdn.io/util/logos/payment-methods/visa/60/original.png","width":100,"height":60},"large":{"url":"https://flowcdn.io/util/logos/payment-methods/visa/120/original.png","width":256,"height":256}},"regions":["world"]},"requested":{"amount":500,"currency":"USD"},"base":{"amount":500,"currency":"USD"},"discriminator":"card_authorization"}' http_version: recorded_at: Tue, 30 Oct 2018 18:12:52 GMT - request: method: post uri: https://api.flow.io/workarea-sandbox/captures body: encoding: UTF-8 string: '{"authorization_id":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ","key":null,"amount":"500.0","currency":"USD","attributes":null}' headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby - apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.68/ruby_client Authorization: - Basic RzhqUmV4QkJRdmV1TEwyczZUUWZjSWk2TnZDanhjQjQ3Z3dudmNkbDR4VU5QRUp6QlV0Z3h0b1BRNkZFUjZpSkxmeG1TNGd4M0JxejB4VE5uMlZnenlXTmg4U1hxTHRuSnBjZk1iYTdlaDhyOGxNQTRWd2xOVjNtSUJNZTBBNXI6 X-Apidoc-Version: - 0.6.58 X-Apidoc-Version-Major: - '0' Content-Type: - application/json; charset=UTF-8 response: status: code: 201 message: Created headers: Date: - Tue, 30 Oct 2018 18:12:52 GMT Content-Type: - application/json Content-Length: - '387' Connection: - keep-alive Set-Cookie: - __cfduid=d82bee4884de26f63ea071c56ea6f1add1540923172; Max-Age=31536000; Expires=Wed, 30 Oct 2019 18:12:52 GMT; Path=/; Domain=.payment.api.flow.io; HTTPOnly - __cfduid=dfdb20952d1deb618d132230a6cf79ef91540923172; expires=Wed, 30-Oct-19 18:12:52 GMT; path=/; domain=.api.flow.io; HttpOnly Expect-Ct: - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Request-Time: - '55' Vary: - Origin X-Flow-Request-Id: - api7a047a2a47bd4eb291de6b76597aa6ed X-Flow-Server: - payment X-Trace-Token: - d062fb223f28-163926 Server: - cloudflare Cf-Ray: - 471fda44cc019230-EWR body: encoding: UTF-8 string: '{"id":"cap-a59f2a6813354c68b9401bbaa64877a1","key":"cap-a59f2a6813354c68b9401bbaa64877a1","authorization":{"id":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ","key":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ"},"amount":500,"currency":"USD","created_at":"2018-10-30T18:12:52.664Z","status":"succeeded","requested":{"amount":500,"currency":"USD"},"attributes":{},"base":{"amount":500,"currency":"USD"}}' http_version: recorded_at: Tue, 30 Oct 2018 18:12:52 GMT - request: method: post uri: https://api.flow.io/workarea-sandbox/refunds body: encoding: UTF-8 string: '{"currency":"USD","authorization_id":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ","amount":5.0}' headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby - apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.68/ruby_client Authorization: - Basic RzhqUmV4QkJRdmV1TEwyczZUUWZjSWk2TnZDanhjQjQ3Z3dudmNkbDR4VU5QRUp6QlV0Z3h0b1BRNkZFUjZpSkxmeG1TNGd4M0JxejB4VE5uMlZnenlXTmg4U1hxTHRuSnBjZk1iYTdlaDhyOGxNQTRWd2xOVjNtSUJNZTBBNXI6 X-Apidoc-Version: - 0.6.58 X-Apidoc-Version-Major: - '0' Content-Type: - application/json; charset=UTF-8 response: status: code: 201 message: Created headers: Date: - Tue, 30 Oct 2018 18:12:53 GMT Content-Type: - application/json Content-Length: - '805' Connection: - keep-alive Set-Cookie: - __cfduid=d83485b687d155dbd8f9ca10444655cce1540923173; Max-Age=31536000; Expires=Wed, 30 Oct 2019 18:12:53 GMT; Path=/; Domain=.payment.api.flow.io; HTTPOnly - __cfduid=dcaf00ac59b6bac952bdc16f0117933d51540923173; expires=Wed, 30-Oct-19 18:12:53 GMT; path=/; domain=.api.flow.io; HttpOnly Expect-Ct: - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Request-Time: - '81' Vary: - Origin X-Flow-Request-Id: - api52f39153841641c9a749ab6a603d51a5 X-Flow-Server: - payment X-Trace-Token: - 9388ed89033d-163655 Server: - cloudflare Cf-Ray: - 471fda47b9bb925a-EWR body: encoding: UTF-8 string: '{"id":"ref-08669b9bf14c4139b04261ae64f1c642","key":"ref-08669b9bf14c4139b04261ae64f1c642","authorization":{"id":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ","key":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ"},"amount":5,"currency":"USD","captures":[{"capture":{"id":"cap-a59f2a6813354c68b9401bbaa64877a1","key":"cap-a59f2a6813354c68b9401bbaa64877a1","authorization":{"id":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ","key":"aut-LCpoGOyyMOc3NV4jMTXw7e30QWFRM9MJ"},"amount":500,"currency":"USD","created_at":"2018-10-30T18:12:52.664Z","status":"succeeded","requested":{"amount":500,"currency":"USD"},"attributes":{},"base":{"amount":500,"currency":"USD"}},"amount":5}],"created_at":"2018-10-30T18:12:53.143Z","status":"succeeded","requested":{"amount":5,"currency":"USD"},"attributes":{},"base":{"amount":5,"currency":"USD"}}' http_version: recorded_at: Tue, 30 Oct 2018 18:12:53 GMT recorded_with: VCR 2.9.3