Sha256: c04138ab91f5aff296c7a094d59b6b02745fdb889c776e53e85b5fb0be7b4fd8

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://global-api-sandbox.afterpay.com/v2/payments/auth
    body:
      encoding: UTF-8
      string: '{"token":"INVALID_TOKEN","merchantReference":null,"amount":null}'
    headers:
      User-Agent:
      - SolidusAfterpay/0.0.1 (Solidus/3.0.1; Ruby/2.6.6; Merchant/100101481) https://
      Authorization:
      - Basic <ENCODED_AUTH_HEADER>
      Content-Type:
      - application/json
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 402
      message: Payment Required
    headers:
      Date:
      - Thu, 26 Aug 2021 16:19:00 GMT
      Content-Type:
      - application/json
      Content-Length:
      - '163'
      Connection:
      - keep-alive
      Http-Correlation-Id:
      - mivm6ycf3d6giix6nilde7b3la
      X-Envoy-Upstream-Service-Time:
      - '51'
      Cf-Cache-Status:
      - DYNAMIC
      Expect-Ct:
      - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
      Set-Cookie:
      - __cf_bm=3076ec6d5b7ae1f855435d84bd9181ad152c1dd2-1629994740-1800-AeR2AoddlKoTBWSilLJ48iLmiitkT+fC7xdM6BPEk4DBMXg2MxyWWeIkC/URWsvWm6Y43l/oslizLmaG0h4j1MwM5dMX9hu6BQfGSI2ecCRa;
        path=/; expires=Thu, 26-Aug-21 16:49:00 GMT; domain=.afterpay.com; HttpOnly;
        Secure; SameSite=None
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains; preload
      Server:
      - cloudflare
      Cf-Ray:
      - 684e61182d2ecd3a-FCO
    body:
      encoding: UTF-8
      string: |-
        {
          "errorCode" : "invalid_token",
          "errorId" : "bff68cc7fdcdca58",
          "message" : "Cannot complete payment, expired or invalid token.",
          "httpStatusCode" : 402
        }
  recorded_at: Thu, 26 Aug 2021 16:19:00 GMT
recorded_with: VCR 6.0.0

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_afterpay-0.2.0 spec/fixtures/vcr_casettes/deferred/authorize/invalid.yml
solidus_afterpay-0.1.0 spec/fixtures/vcr_casettes/deferred/authorize/invalid.yml