Error 400 Bad Request

POST https://stage.gk.unicef.pooliestudios.com/api/_action/paypal/webhook/execute?sw-token=zgbbzbemhTSYFbW4A8GU8Te3411OuFrR

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"zgbbzbemhTSYFbW4A8GU8Te3411OuFrR"

POST Parameters

Key Value
create_time
"2024-11-20T17:50:31.567Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-8N216380L0803973S-6PH912633X643304C"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-8N216380L0803973S-6PH912633X643304C"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-8N216380L0803973S-6PH912633X643304C/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "7GR24965HP0177919"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "65.99"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "65.99"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "1.99"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "64.00"
    ]
  ]
  "invoice_id" => "GKB-143720"
  "custom_id" => "{"orderTransactionId":"01934ab11dfd72fbbc70a0cc50c037d1","pluginVersion":"8.2.0","shopwareVersion":"6.5.8.11"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "2UU94460ER4370047"
    ]
  ]
  "payee" => [
    "email_address" => "paypal-gk@unicef.de"
    "merchant_id" => "QBYDKY7MN4NG8"
  ]
  "create_time" => "2024-11-20T17:50:26Z"
  "update_time" => "2024-11-20T17:50:26Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/7GR24965HP0177919"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/7GR24965HP0177919/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/2UU94460ER4370047"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for EUR 65.99 EUR"

Uploaded Files

No files were uploaded

Request Attributes

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

Request Headers

Header Value
accept
"*/*"
connection
"close"
content-length
"1675"
content-type
"application/json"
correlation-id
"cb4618b569974"
forwarded
"for="173.0.81.65";host="stage.gk.unicef.pooliestudios.com";proto=https"
host
"stage.gk.unicef.pooliestudios.com"
paypal-auth-algo
"SHA256withRSA"
paypal-auth-version
"v2"
paypal-cert-url
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-1a5f47cb"
paypal-transmission-id
"f1e8cb12-a767-11ef-8964-0f442848b080"
paypal-transmission-sig
"YeM1Bdc77KH7vju4IV5Y16xXS7VRmFVj/rORgsh+ctnpXTP3RmHas6sT9Pnzuj6Dv6oqfkvVv2P7H5KAtvuCE/9vqBFK7C0osz7nnBParKPrxiHdZ1l4qfd0YI6hCqYFFzDjPVpE8+jGVWgGvp1wpvU7NH1O6pAvuGBAFUtfNgQS6oFNwCGBtJn+YqKjlP7Aqvlndvkb08Rp1rB53NqK2xHbZtKjBxOUFMszrjcG9+7S+ZGxrSPh1XktB+mN6ThMb6daxnR/mZWVXTVp/UZay1HbiHRjsXCV8ZhMgLt2+4tDzbXUAguu9NTDlBhofKH/i5CwF9SlYo/8oEmxcn3ZFA=="
paypal-transmission-time
"2024-11-20T17:50:35Z"
user-agent
"PayPal/AUHR-214.0-58712720"
x-b3-spanid
"d71a90cc2b97a54e"
x-forwarded-for
"173.0.81.65"
x-php-ob-level
"1"

Request Content

Pretty

{
    "id": "WH-8N216380L0803973S-6PH912633X643304C",
    "event_version": "1.0",
    "create_time": "2024-11-20T17:50:31.567Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for EUR 65.99 EUR",
    "resource": {
        "id": "7GR24965HP0177919",
        "amount": {
            "currency_code": "EUR",
            "value": "65.99"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "65.99"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "1.99"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "64.00"
            }
        },
        "invoice_id": "GKB-143720",
        "custom_id": "{\"orderTransactionId\":\"01934ab11dfd72fbbc70a0cc50c037d1\",\"pluginVersion\":\"8.2.0\",\"shopwareVersion\":\"6.5.8.11\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "2UU94460ER4370047"
            }
        },
        "payee": {
            "email_address": "paypal-gk@unicef.de",
            "merchant_id": "QBYDKY7MN4NG8"
        },
        "create_time": "2024-11-20T17:50:26Z",
        "update_time": "2024-11-20T17:50:26Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/7GR24965HP0177919",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/7GR24965HP0177919\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/2UU94460ER4370047",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-8N216380L0803973S-6PH912633X643304C",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-8N216380L0803973S-6PH912633X643304C\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-8N216380L0803973S-6PH912633X643304C","event_version":"1.0","create_time":"2024-11-20T17:50:31.567Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for EUR 65.99 EUR","resource":{"id":"7GR24965HP0177919","amount":{"currency_code":"EUR","value":"65.99"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"65.99"},"paypal_fee":{"currency_code":"EUR","value":"1.99"},"net_amount":{"currency_code":"EUR","value":"64.00"}},"invoice_id":"GKB-143720","custom_id":"{\"orderTransactionId\":\"01934ab11dfd72fbbc70a0cc50c037d1\",\"pluginVersion\":\"8.2.0\",\"shopwareVersion\":\"6.5.8.11\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"2UU94460ER4370047"}},"payee":{"email_address":"paypal-gk@unicef.de","merchant_id":"QBYDKY7MN4NG8"},"create_time":"2024-11-20T17:50:26Z","update_time":"2024-11-20T17:50:26Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/7GR24965HP0177919","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/7GR24965HP0177919/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/2UU94460ER4370047","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-8N216380L0803973S-6PH912633X643304C","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-8N216380L0803973S-6PH912633X643304C/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-type
"application/json"
date
"Thu, 21 Nov 2024 12:20:22 GMT"
x-debug-token
"3b024d"
x-frame-options
"sameorigin"

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
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"d6aaec56e0e08aa718b5a8b6da234d0e"
APP_URL
"http://stage.gk.unicef.pooliestudios.com"
BLUE_GREEN_DEPLOYMENT
"0"
COMPOSER_HOME
"/var/www/html/var/cache/composer"
DATABASE_URL
"mysql://uniheedn3:JvdHWnsqbHKkZbbPRJSXeVdHHFURzFYy@127.0.0.1:3306/usrdb_uniheedn3"
GOOGLE_MAPS_API_KEY
""
INSTANCE_ID
"d6417dfaf0fdbed510e7ae11c19e004f"
LOCK_DSN
"flock"
MAILER_DSN
"smtp://127.0.0.1:1025"
MAILER_URL
"smtp://localhost:1025"
MAPZ_BEACON_URI
"https://tiles.mapz.com/mapproxy/v1/unicef-d3cc9b83/beacon.gif"
MAPZ_TILE_URI
"https://tiles.mapz.com/mapproxy/v1/unicef-d3cc9b83/tiles/1.0.0/mapz_shades_of_gray_hq/EPSG3857/{z}/{x}/{-y}.jpeg"
OPENSEARCH_URL
"http://localhost:9200"
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"
STOREFRONT_PROXY_URL
"http://localhost"
TRUSTED_PROXIES
"REMOTE_ADDR"

Defined as regular env variables

Key Value
APP_RUNTIME_OPTIONS
[
  "prod_envs" => [
    "prod"
    "e2e"
  ]
]
CONTENT_LENGTH
"1675"
CONTENT_TYPE
"application/json"
CONTEXT_DOCUMENT_ROOT
"/usr/local/fastcgi-starter/"
CONTEXT_PREFIX
"/fastcgist/"
DOCUMENT_ROOT
"/home/uniheedn/websites/staging/shop/app/public/"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
GROUP
"uniheedn"
HOME
"/home/uniheedn"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_CORRELATION_ID
"cb4618b569974"
HTTP_FORWARDED
"for="173.0.81.65";host="stage.gk.unicef.pooliestudios.com";proto=https"
HTTP_HOST
"stage.gk.unicef.pooliestudios.com"
HTTP_PAYPAL_AUTH_ALGO
"SHA256withRSA"
HTTP_PAYPAL_AUTH_VERSION
"v2"
HTTP_PAYPAL_CERT_URL
"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-1a5f47cb"
HTTP_PAYPAL_TRANSMISSION_ID
"f1e8cb12-a767-11ef-8964-0f442848b080"
HTTP_PAYPAL_TRANSMISSION_SIG
"YeM1Bdc77KH7vju4IV5Y16xXS7VRmFVj/rORgsh+ctnpXTP3RmHas6sT9Pnzuj6Dv6oqfkvVv2P7H5KAtvuCE/9vqBFK7C0osz7nnBParKPrxiHdZ1l4qfd0YI6hCqYFFzDjPVpE8+jGVWgGvp1wpvU7NH1O6pAvuGBAFUtfNgQS6oFNwCGBtJn+YqKjlP7Aqvlndvkb08Rp1rB53NqK2xHbZtKjBxOUFMszrjcG9+7S+ZGxrSPh1XktB+mN6ThMb6daxnR/mZWVXTVp/UZay1HbiHRjsXCV8ZhMgLt2+4tDzbXUAguu9NTDlBhofKH/i5CwF9SlYo/8oEmxcn3ZFA=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2024-11-20T17:50:35Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58712720"
HTTP_X_B3_SPANID
"d71a90cc2b97a54e"
HTTP_X_FORWARDED_FOR
"173.0.81.65"
ORIG_PATH_INFO
"/index.php"
ORIG_PATH_TRANSLATED
"/home/uniheedn/websites/staging/shop/app/public/index.php"
ORIG_SCRIPT_FILENAME
"/usr/local/fastcgi-starter/php8.2"
ORIG_SCRIPT_NAME
"/fastcgist/php8.2"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_FCGI_MAX_REQUESTS
"0"
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=zgbbzbemhTSYFbW4A8GU8Te3411OuFrR"
REDIRECT_HANDLER
"php-fastcgi8.2"
REDIRECT_HTTPS
"on"
REDIRECT_QUERY_STRING
"sw-token=zgbbzbemhTSYFbW4A8GU8Te3411OuFrR"
REDIRECT_REDIRECT_HTTPS
"on"
REDIRECT_REDIRECT_SSL_TLS_SNI
"stage.gk.unicef.pooliestudios.com"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"stage.gk.unicef.pooliestudios.com"
REDIRECT_STATUS
"200"
REDIRECT_URL
"/index.php"
REMOTE_ADDR
"127.0.0.1"
REMOTE_HOST
"notify.paypal.com"
REMOTE_PORT
"23985"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1732191622
REQUEST_TIME_FLOAT
1732191622.1983
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=zgbbzbemhTSYFbW4A8GU8Te3411OuFrR"
SCRIPT_FILENAME
"/home/uniheedn/websites/staging/shop/app/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"77.75.252.124"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"stage.gk.unicef.pooliestudios.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"stage.gk.unicef.pooliestudios.com"
SYMFONY_DOTENV_VARS
"GOOGLE_MAPS_API_KEY,MAPZ_TILE_URI,MAPZ_BEACON_URI,COMPOSER_HOME,TRUSTED_PROXIES,LOCK_DSN,APP_SECRET,INSTANCE_ID,BLUE_GREEN_DEPLOYMENT,OPENSEARCH_URL,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_ES_THROW_EXCEPTION,STOREFRONT_PROXY_URL,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,APP_ENV,APP_URL,DATABASE_URL,MAILER_URL,MAILER_DSN,APP_DEBUG"
USER
"uniheedn"