POST https://sw6.wesentlich.shop/api/_action/paypal/webhook/execute?sw-token=a2DaqxVyedXshK9eWb43jUK9cbghLXhp

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"a2DaqxVyedXshK9eWb43jUK9cbghLXhp"

POST Parameters

Key Value
create_time
"2025-05-25T17:57:05.685Z"
event_type
"CHECKOUT.ORDER.APPROVED"
event_version
"1.0"
id
"WH-5PX836421L844230T-8W8007189S811260A"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-5PX836421L844230T-8W8007189S811260A"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-5PX836421L844230T-8W8007189S811260A/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "update_time" => "2025-05-25T17:57:04Z"
  "create_time" => "2025-05-25T17:56:54Z"
  "purchase_units" => [
    [
      "reference_id" => "default"
      "amount" => [
        "currency_code" => "EUR"
        "value" => "21.85"
        "breakdown" => []
      ]
      "payee" => [
        "email_address" => "jh@v03.com"
        "merchant_id" => "8NB65UYD7BKM6"
        "display_data" => [
          "brand_name" => "wesentlich."
        ]
      ]
      "description" => "PayPal-Rechnungsnummer 100119 entspricht Shopware-Bestellnummer"
      "invoice_id" => "100119"
      "shipping" => [
        "name" => [
          "full_name" => "Mario Jung"
        ]
        "address" => [
          "address_line_1" => "Oberstr 5a"
          "admin_area_2" => "Oberwies"
          "postal_code" => "56379"
          "country_code" => "DE"
        ]
      ]
      "payments" => [
        "captures" => [
          [
            "id" => "6CA87222TA505640C"
            "status" => "COMPLETED"
            "amount" => [
              "currency_code" => "EUR"
              "value" => "21.85"
            ]
            "final_capture" => true
            "seller_protection" => [
              "status" => "ELIGIBLE"
              "dispute_categories" => [
                "ITEM_NOT_RECEIVED"
                "UNAUTHORIZED_TRANSACTION"
              ]
            ]
            "seller_receivable_breakdown" => [
              "gross_amount" => [
                "currency_code" => "EUR"
                "value" => "21.85"
              ]
              "paypal_fee" => [
                "currency_code" => "EUR"
                "value" => "1.04"
              ]
              "net_amount" => [
                "currency_code" => "EUR"
                "value" => "20.81"
              ]
            ]
            "invoice_id" => "100119"
            "links" => [
              [
                "href" => "https://api.paypal.com/v2/payments/captures/6CA87222TA505640C"
                "rel" => "self"
                "method" => "GET"
              ]
              [
                "href" => "https://api.paypal.com/v2/payments/captures/6CA87222TA505640C/refund"
                "rel" => "refund"
                "method" => "POST"
              ]
              [
                "href" => "https://api.paypal.com/v2/checkout/orders/79B95889GM4944712"
                "rel" => "up"
                "method" => "GET"
              ]
            ]
            "create_time" => "2025-05-25T17:57:04Z"
            "update_time" => "2025-05-25T17:57:04Z"
          ]
        ]
      ]
    ]
  ]
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/79B95889GM4944712"
      "rel" => "self"
      "method" => "GET"
    ]
  ]
  "id" => "79B95889GM4944712"
  "payment_source" => [
    "paypal" => [
      "email_address" => "mariojung1@web.de"
      "account_id" => "8DBFU9GDLA472"
      "account_status" => "VERIFIED"
      "name" => [
        "given_name" => "Mario"
        "surname" => "Jung"
      ]
      "address" => [
        "address_line_1" => "Oberstr  5a"
        "admin_area_2" => "Oberwies"
        "postal_code" => "56379"
        "country_code" => "DE"
      ]
    ]
  ]
  "intent" => "CAPTURE"
  "payer" => [
    "name" => [
      "given_name" => "Mario"
      "surname" => "Jung"
    ]
    "email_address" => "mariojung1@web.de"
    "payer_id" => "8DBFU9GDLA472"
    "address" => [
      "address_line_1" => "Oberstr  5a"
      "admin_area_2" => "Oberwies"
      "postal_code" => "56379"
      "country_code" => "DE"
    ]
  ]
  "status" => "COMPLETED"
]
resource_type
"checkout-order"
resource_version
"2.0"
summary
"An order has been approved by buyer"

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"Swag\PayPal\Webhook\WebhookController::executeWebhook"
_cspNonce
"dKugSjccfDc="
_route
"api.action.paypal.webhook.execute"
_routeScope
[
  "api"
]
_route_params
[
  "auth_required" => false
]
_stopwatch_token
"e54863"
auth_required
false
sw-context
Shopware\Core\Framework\Context {#2991
  #extensions: []
  #languageIdChain: [
    "2fbb5fe2e29a4d70aa5854ce7ce3e20b"
  ]
  #scope: "system"
  #rulesLocked: false
  #source: Shopware\Core\Framework\Api\Context\SystemSource {#2989 …}
  #ruleIds: []
  #currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca"
  #versionId: "0fa91ce3e96a4bc2be4bd9ce752c3425"
  #currencyFactor: 1.0
  #considerInheritance: false
  #taxState: "gross"
  #rounding: Shopware\Core\Framework\DataAbstractionLayer\Pricing\CashRoundingConfig {#2993 …}
  #states: []
}

Request Headers

Header Value
accept
"*/*"
content-length
"2661"
content-type
"application/json"
correlation-id
"f9728888f5fd5"
forwarded
"for="173.0.81.65";host="sw6.wesentlich.shop";proto=https"
host
"sw6.wesentlich.shop"
paypal-auth-algo
"SHA256withRSA"
paypal-auth-version
"v2"
paypal-cert-url
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-b0d12406"
paypal-transmission-id
"ad5debfa-3991-11f0-9b23-7925ebf133f2"
paypal-transmission-sig
"IVnPBz94lVZQpJ9zR8E8di4N05dpaRMGV+ypmDr+aoV5dXqlcl5bphZ6TQolonmVE+Ig7Htirds0TJ+B2CCp3saheGLI1aCEEMxhaao4iLyZyvpCZRhil6iRd10wGnOCOYi0ExmS+0ox71vjrw5AUm6YXwfzRAe3Xv4mg6sRHX0MSUQhY5vuCG4ANo0tow20g5wqvB7OBfyRNSjJ/s2Zoolu3KAY8kE1hFJpLduWi55PfqXLoV/dExdMo6BvdTzovBBca4CwDAaxtu4bX/ZcBBNcNF49qItgYj9yfRHF0HBy97wt+iHcV5iNU8uoGOYRQOzvNaPMwdf8mJw12LQP2w=="
paypal-transmission-time
"2025-05-25T17:57:09Z"
surrogate-capability
"symfony="ESI/1.0""
user-agent
"PayPal/AUHD-1.0-1"
x-forwarded-for
"173.0.81.65"
x-php-ob-level
"0"

Request Content

Pretty

{
    "id": "WH-5PX836421L844230T-8W8007189S811260A",
    "event_version": "1.0",
    "create_time": "2025-05-25T17:57:05.685Z",
    "resource_type": "checkout-order",
    "resource_version": "2.0",
    "event_type": "CHECKOUT.ORDER.APPROVED",
    "summary": "An order has been approved by buyer",
    "resource": {
        "update_time": "2025-05-25T17:57:04Z",
        "create_time": "2025-05-25T17:56:54Z",
        "purchase_units": [
            {
                "reference_id": "default",
                "amount": {
                    "currency_code": "EUR",
                    "value": "21.85",
                    "breakdown": {}
                },
                "payee": {
                    "email_address": "jh@v03.com",
                    "merchant_id": "8NB65UYD7BKM6",
                    "display_data": {
                        "brand_name": "wesentlich."
                    }
                },
                "description": "PayPal-Rechnungsnummer 100119 entspricht Shopware-Bestellnummer",
                "invoice_id": "100119",
                "shipping": {
                    "name": {
                        "full_name": "Mario Jung"
                    },
                    "address": {
                        "address_line_1": "Oberstr 5a",
                        "admin_area_2": "Oberwies",
                        "postal_code": "56379",
                        "country_code": "DE"
                    }
                },
                "payments": {
                    "captures": [
                        {
                            "id": "6CA87222TA505640C",
                            "status": "COMPLETED",
                            "amount": {
                                "currency_code": "EUR",
                                "value": "21.85"
                            },
                            "final_capture": true,
                            "seller_protection": {
                                "status": "ELIGIBLE",
                                "dispute_categories": [
                                    "ITEM_NOT_RECEIVED",
                                    "UNAUTHORIZED_TRANSACTION"
                                ]
                            },
                            "seller_receivable_breakdown": {
                                "gross_amount": {
                                    "currency_code": "EUR",
                                    "value": "21.85"
                                },
                                "paypal_fee": {
                                    "currency_code": "EUR",
                                    "value": "1.04"
                                },
                                "net_amount": {
                                    "currency_code": "EUR",
                                    "value": "20.81"
                                }
                            },
                            "invoice_id": "100119",
                            "links": [
                                {
                                    "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/6CA87222TA505640C",
                                    "rel": "self",
                                    "method": "GET"
                                },
                                {
                                    "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/6CA87222TA505640C\/refund",
                                    "rel": "refund",
                                    "method": "POST"
                                },
                                {
                                    "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/79B95889GM4944712",
                                    "rel": "up",
                                    "method": "GET"
                                }
                            ],
                            "create_time": "2025-05-25T17:57:04Z",
                            "update_time": "2025-05-25T17:57:04Z"
                        }
                    ]
                }
            }
        ],
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/79B95889GM4944712",
                "rel": "self",
                "method": "GET"
            }
        ],
        "id": "79B95889GM4944712",
        "payment_source": {
            "paypal": {
                "email_address": "mariojung1@web.de",
                "account_id": "8DBFU9GDLA472",
                "account_status": "VERIFIED",
                "name": {
                    "given_name": "Mario",
                    "surname": "Jung"
                },
                "address": {
                    "address_line_1": "Oberstr  5a",
                    "admin_area_2": "Oberwies",
                    "postal_code": "56379",
                    "country_code": "DE"
                }
            }
        },
        "intent": "CAPTURE",
        "payer": {
            "name": {
                "given_name": "Mario",
                "surname": "Jung"
            },
            "email_address": "mariojung1@web.de",
            "payer_id": "8DBFU9GDLA472",
            "address": {
                "address_line_1": "Oberstr  5a",
                "admin_area_2": "Oberwies",
                "postal_code": "56379",
                "country_code": "DE"
            }
        },
        "status": "COMPLETED"
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-5PX836421L844230T-8W8007189S811260A",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-5PX836421L844230T-8W8007189S811260A\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-5PX836421L844230T-8W8007189S811260A","event_version":"1.0","create_time":"2025-05-25T17:57:05.685Z","resource_type":"checkout-order","resource_version":"2.0","event_type":"CHECKOUT.ORDER.APPROVED","summary":"An order has been approved by buyer","resource":{"update_time":"2025-05-25T17:57:04Z","create_time":"2025-05-25T17:56:54Z","purchase_units":[{"reference_id":"default","amount":{"currency_code":"EUR","value":"21.85","breakdown":{}},"payee":{"email_address":"jh@v03.com","merchant_id":"8NB65UYD7BKM6","display_data":{"brand_name":"wesentlich."}},"description":"PayPal-Rechnungsnummer 100119 entspricht Shopware-Bestellnummer","invoice_id":"100119","shipping":{"name":{"full_name":"Mario Jung"},"address":{"address_line_1":"Oberstr 5a","admin_area_2":"Oberwies","postal_code":"56379","country_code":"DE"}},"payments":{"captures":[{"id":"6CA87222TA505640C","status":"COMPLETED","amount":{"currency_code":"EUR","value":"21.85"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"21.85"},"paypal_fee":{"currency_code":"EUR","value":"1.04"},"net_amount":{"currency_code":"EUR","value":"20.81"}},"invoice_id":"100119","links":[{"href":"https://api.paypal.com/v2/payments/captures/6CA87222TA505640C","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/6CA87222TA505640C/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/79B95889GM4944712","rel":"up","method":"GET"}],"create_time":"2025-05-25T17:57:04Z","update_time":"2025-05-25T17:57:04Z"}]}}],"links":[{"href":"https://api.paypal.com/v2/checkout/orders/79B95889GM4944712","rel":"self","method":"GET"}],"id":"79B95889GM4944712","payment_source":{"paypal":{"email_address":"mariojung1@web.de","account_id":"8DBFU9GDLA472","account_status":"VERIFIED","name":{"given_name":"Mario","surname":"Jung"},"address":{"address_line_1":"Oberstr  5a","admin_area_2":"Oberwies","postal_code":"56379","country_code":"DE"}}},"intent":"CAPTURE","payer":{"name":{"given_name":"Mario","surname":"Jung"},"email_address":"mariojung1@web.de","payer_id":"8DBFU9GDLA472","address":{"address_line_1":"Oberstr  5a","admin_area_2":"Oberwies","postal_code":"56379","country_code":"DE"}},"status":"COMPLETED"},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-5PX836421L844230T-8W8007189S811260A","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-5PX836421L844230T-8W8007189S811260A/resend","rel":"resend","method":"POST"}]}

Response

Response Headers

Header Value
access-control-allow-headers
"Content-Type,Authorization,sw-context-token,sw-access-key,sw-language-id,sw-version-id,sw-inheritance,indexing-behavior,sw-include-seo-urls"
access-control-allow-methods
"GET,POST,PUT,PATCH,DELETE"
access-control-allow-origin
"*"
access-control-expose-headers
"Content-Type,Authorization,sw-context-token,sw-access-key,sw-language-id,sw-version-id,sw-inheritance,indexing-behavior,sw-include-seo-urls"
cache-control
"no-cache, private"
content-security-policy
"object-src 'none'; script-src 'none'; base-uri 'self'; frame-ancestors 'none';"
content-type
"text/html; charset=UTF-8"
date
"Sun, 25 May 2025 17:57:09 GMT"
referrer-policy
"strict-origin-when-cross-origin"
server-timing
""
strict-transport-security
"max-age=31536000; includeSubDomains"
x-content-type-options
"nosniff"
x-debug-token
"a9aa4c"
x-frame-options
"deny"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
ADMIN_OPENSEARCH_URL
"null://null"
APP_ENV
"dev"
APP_SECRET
"def00000a58da1b8d38619e61c7b162835a7f5f487e96b341d5d209ab2d2426240d471efea8a2772b028d3e0b9a7111edcc0557c0300c10b574035b1d31617172310091d"
APP_URL
"https://sw6.wesentlich.shop"
BLUE_GREEN_DEPLOYMENT
"0"
COMPOSER_HOME
"/usr/home/sites/sw6.wesentlich.shop/web/var/cache/composer"
DATABASE_URL
"mysql://wesentlich_sw6:WP2tjb_xGEnzbx_%3Aq228@hz16db1.kommune.net:3306/wesentlich_sw6"
INSTANCE_ID
"9XcxV6BNccjr90sfN4hTSAneL72swuai"
LOCK_DSN
"flock"
MAILER_URL
"null://null"
OPENSEARCH_URL
"null://null"
PROXY_URL
"http://localhost"
SHOPWARE_ES_ENABLED
"0"
SHOPWARE_ES_INDEXING_ENABLED
"0"
SHOPWARE_ES_INDEX_PREFIX
"sw"
SHOPWARE_ES_THROW_EXCEPTION
"1"
SHOPWARE_HTTP_CACHE_ENABLED
"1"
SHOPWARE_HTTP_DEFAULT_TTL
"7200"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
"2661"
CONTENT_TYPE
"application/json"
DOCUMENT_ROOT
"/home/sites/sw6.wesentlich.shop/web/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/nonexistent"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CONTENT_LENGTH
"2661"
HTTP_CONTENT_TYPE
"application/json"
HTTP_CORRELATION_ID
"f9728888f5fd5"
HTTP_FORWARDED
"for="173.0.81.65";host="sw6.wesentlich.shop";proto=https"
HTTP_HOST
"sw6.wesentlich.shop"
HTTP_PAYPAL_AUTH_ALGO
"SHA256withRSA"
HTTP_PAYPAL_AUTH_VERSION
"v2"
HTTP_PAYPAL_CERT_URL
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-b0d12406"
HTTP_PAYPAL_TRANSMISSION_ID
"ad5debfa-3991-11f0-9b23-7925ebf133f2"
HTTP_PAYPAL_TRANSMISSION_SIG
"IVnPBz94lVZQpJ9zR8E8di4N05dpaRMGV+ypmDr+aoV5dXqlcl5bphZ6TQolonmVE+Ig7Htirds0TJ+B2CCp3saheGLI1aCEEMxhaao4iLyZyvpCZRhil6iRd10wGnOCOYi0ExmS+0ox71vjrw5AUm6YXwfzRAe3Xv4mg6sRHX0MSUQhY5vuCG4ANo0tow20g5wqvB7OBfyRNSjJ/s2Zoolu3KAY8kE1hFJpLduWi55PfqXLoV/dExdMo6BvdTzovBBca4CwDAaxtu4bX/ZcBBNcNF49qItgYj9yfRHF0HBy97wt+iHcV5iNU8uoGOYRQOzvNaPMwdf8mJw12LQP2w=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2025-05-25T17:57:09Z"
HTTP_USER_AGENT
"PayPal/AUHD-1.0-1"
HTTP_X_FORWARDED_FOR
"173.0.81.65"
PATH
"/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=a2DaqxVyedXshK9eWb43jUK9cbghLXhp"
REDIRECT_STATUS
"200"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"4702"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1748195828
REQUEST_TIME_FLOAT
1748195828.8509
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=a2DaqxVyedXshK9eWb43jUK9cbghLXhp"
SCRIPT_FILENAME
"/usr/home/sites/sw6.wesentlich.shop/web/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"116.202.128.157"
SERVER_NAME
"sw6.wesentlich.shop"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"nginx/1.24.0"
SHOPWARE_ENV
"production"
SYMFONY_DOTENV_PATH
"/usr/home/sites/sw6.wesentlich.shop/web/.env"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_URL,APP_SECRET,INSTANCE_ID,BLUE_GREEN_DEPLOYMENT,DATABASE_URL,MAILER_URL,PROXY_URL,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,LOCK_DSN,OPENSEARCH_URL,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_ES_THROW_EXCEPTION,COMPOSER_HOME,ADMIN_OPENSEARCH_URL"
USER
"www"
argc
1
argv
[
  "sw-token=a2DaqxVyedXshK9eWb43jUK9cbghLXhp"
]