--- http_interactions: - request: method: post uri: https://www.googleapis.com/oauth2/v4/token body: encoding: ASCII-8BIT string: params headers: User-Agent: - Faraday v1.0.1 Content-Type: - application/x-www-form-urlencoded Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" response: status: code: 200 message: OK headers: Content-Type: - application/json; charset=UTF-8 Vary: - Origin - Referer - X-Origin Date: - Mon, 22 Jun 2020 13:11:45 GMT Server: - scaffolding on HTTPServer2 Cache-Control: - private X-Xss-Protection: - '0' X-Frame-Options: - SAMEORIGIN X-Content-Type-Options: - nosniff Alt-Svc: - h3-28=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" Transfer-Encoding: - chunked body: encoding: ASCII-8BIT string: '{"access_token":"access_token","expires_in":3599,"token_type":"Bearer"}' recorded_at: Mon, 22 Jun 2020 13:11:45 GMT - request: method: post uri: https://www.googleapis.com/androidpublisher/v3/applications/fake_package_name/purchases/products/fake_product_id/tokens/fake_token:acknowledge body: encoding: UTF-8 string: '' headers: User-Agent: - unknown/0.0.0 google-api-ruby-client/0.34.1 Mac OS X/10.14.6 (gzip) Accept: - "*/*" Accept-Encoding: - gzip,deflate Date: - Mon, 22 Jun 2020 13:11:45 GMT X-Goog-Api-Client: - gl-ruby/2.5.1 gdcl/0.34.1 Authorization: - Bearer some_token Content-Type: - application/x-www-form-urlencoded response: status: code: 400 message: Bad Request headers: Content-Type: - application/json; charset=UTF-8 Vary: - Origin - Referer - X-Origin Content-Encoding: - gzip Date: - Mon, 22 Jun 2020 13:11:46 GMT Server: - ESF Cache-Control: - private X-Xss-Protection: - '0' X-Frame-Options: - SAMEORIGIN X-Content-Type-Options: - nosniff Alt-Svc: - h3-28=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" Transfer-Encoding: - chunked body: encoding: UTF-8 string: | { "error": { "code": 400, "message": "The purchase is not in a valid state to perform the desired operation.", "errors": [ { "message": "The purchase is not in a valid state to perform the desired operation.", "domain": "androidpublisher", "reason": "invalidPurchaseState", "location": "token", "locationType": "parameter" } ] } } recorded_at: Mon, 22 Jun 2020 13:11:46 GMT recorded_with: VCR 6.0.0