Sha256: 10f6594b19753cdc456c9585fc4340cded125246c28832b650d94f6f7353087d

Contents?: true

Size: 1.92 KB

Versions: 4

Compression:

Stored size: 1.92 KB

Contents

{
    "amount": 10501,
    "description": "Waste carrier registration upper tier",
    "reference": "12345",
    "language": "en",
    "metadata": {
        "ledger_code": "AB100",
        "an_internal_reference_number": 200
    },
    "email": "sherlock.holmes@example.com",
    "state": {
        "status": "success",
        "finished": true
    },
    "payment_id": "cnnffa1e6s3u9a6n24u2cp527d",
    "payment_provider": "sandbox",
    "created_date": "2022-05-18T11:52:13.669Z",
    "refund_summary": {
        "status": "available",
        "amount_available": 10501,
        "amount_submitted": 0
    },
    "settlement_summary": {
        "capture_submit_time": "2022-05-18T11:52:39.172Z",
        "captured_date": "2022-05-18"
    },
    "card_details": {
        "last_digits_card_number": "5100",
        "first_digits_card_number": "510510",
        "cardholder_name": "Sherlock Holmes",
        "expiry_date": "01/24",
        "billing_address": {
            "line1": "221 Baker Street",
            "line2": "Flat b",
            "postcode": "NW1 6XE",
            "city": "London",
            "country": "GB"
        },
        "card_brand": "Mastercard",
        "card_type": "debit"
    },
    "delayed_capture": false,
    "moto": false,
    "provider_id": "9bb0c2c1-d0c5-4a63-8945-f4240e06f8ae",
    "return_url": "https://some-wcr-env.defra.gov.uk/completed",
    "authorisation_mode": "web",
    "card_brand": "Mastercard",
    "_links": {
        "self": {
            "href": "https://publicapi.payments.service.gov.uk/v1/payments/cnnffa1e6s3u9a6n24u2cp527d",
            "method": "GET"
        },
        "events": {
            "href": "https://publicapi.payments.service.gov.uk/v1/payments/cnnffa1e6s3u9a6n24u2cp527d/events",
            "method": "GET"
        },
        "refunds": {
            "href": "https://publicapi.payments.service.gov.uk/v1/payments/cnnffa1e6s3u9a6n24u2cp527d/refunds",
            "method": "GET"
        }
    }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
defra_ruby_mocks-2.4.2 spec/fixtures/files/govpay/get_payment_response_success.json
defra_ruby_mocks-2.4.1 spec/fixtures/files/govpay/get_payment_response_success.json
defra_ruby_mocks-2.4.0 spec/fixtures/files/govpay/get_payment_response_success.json
defra_ruby_mocks-2.3.3 spec/fixtures/files/govpay/get_payment_response_success.json