https://www.devmt.de/api/_action/paypal/webhook/execute?sw-token=lImRbkkrRm1T6cGTOHS1ko4KA94QzFlE

WebhookController :: executeWebhook

Request

GET Parameters

Key Value
sw-token
"lImRbkkrRm1T6cGTOHS1ko4KA94QzFlE"

POST Parameters

Key Value
create_time
"2024-11-22T23:01:43.543Z"
event_type
"PAYMENT.CAPTURE.COMPLETED"
event_version
"1.0"
id
"WH-8PJ82526L6810210D-40S68471GC407251X"
links
[
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-8PJ82526L6810210D-40S68471GC407251X"
    "rel" => "self"
    "method" => "GET"
  ]
  [
    "href" => "https://api.paypal.com/v1/notifications/webhooks-events/WH-8PJ82526L6810210D-40S68471GC407251X/resend"
    "rel" => "resend"
    "method" => "POST"
  ]
]
resource
[
  "id" => "89A12208NY050441T"
  "amount" => [
    "currency_code" => "EUR"
    "value" => "4083.95"
  ]
  "final_capture" => true
  "seller_protection" => [
    "status" => "ELIGIBLE"
    "dispute_categories" => [
      "ITEM_NOT_RECEIVED"
      "UNAUTHORIZED_TRANSACTION"
    ]
  ]
  "seller_receivable_breakdown" => [
    "gross_amount" => [
      "currency_code" => "EUR"
      "value" => "4083.95"
    ]
    "paypal_fee" => [
      "currency_code" => "EUR"
      "value" => "49.36"
    ]
    "net_amount" => [
      "currency_code" => "EUR"
      "value" => "4034.59"
    ]
  ]
  "invoice_id" => "MacTrade1846087068"
  "custom_id" => "{"orderTransactionId":"30c98b2b991f4872be5a2dbabf521055","pluginVersion":"6.5.0","shopwareVersion":"6.4.20.0"}"
  "status" => "COMPLETED"
  "supplementary_data" => [
    "related_ids" => [
      "order_id" => "5V383466LN7320507"
    ]
  ]
  "payee" => [
    "email_address" => "paypal@mactrade.de"
    "merchant_id" => "BXYR2EHMLNGQ2"
  ]
  "create_time" => "2024-11-22T23:01:39Z"
  "update_time" => "2024-11-22T23:01:39Z"
  "links" => [
    [
      "href" => "https://api.paypal.com/v2/payments/captures/89A12208NY050441T"
      "rel" => "self"
      "method" => "GET"
    ]
    [
      "href" => "https://api.paypal.com/v2/payments/captures/89A12208NY050441T/refund"
      "rel" => "refund"
      "method" => "POST"
    ]
    [
      "href" => "https://api.paypal.com/v2/checkout/orders/5V383466LN7320507"
      "rel" => "up"
      "method" => "GET"
    ]
  ]
]
resource_type
"capture"
resource_version
"2.0"
summary
"Payment completed for EUR 4083.95 EUR"

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"Swag\PayPal\Webhook\WebhookController::executeWebhook"
_cspNonce
"3OrF7G/WlLE="
_route
"api.action.paypal.webhook.execute"
_routeScope
[
  "api"
]
_route_params
[
  "auth_required" => false
]
_since
Shopware\Core\Framework\Routing\Annotation\Since {#2406
  -value: "0.9.0"
}
_stopwatch_token
"7817b7"
auth_required
false
sw-context
Shopware\Core\Framework\Context {#2418
  #extensions: []
  #languageIdChain: [
    "2fbb5fe2e29a4d70aa5854ce7ce3e20b"
  ]
  #versionId: "0fa91ce3e96a4bc2be4bd9ce752c3425"
  #currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca"
  #currencyFactor: 1.0
  #scope: "system"
  #ruleIds: []
  #source: Shopware\Core\Framework\Api\Context\SystemSource {#2412 …}
  #considerInheritance: false
  #taxState: "gross"
  #rounding: Shopware\Core\Framework\DataAbstractionLayer\Pricing\CashRoundingConfig {#2393 …}
  -states: []
}

Request Headers

Header Value
accept
"*/*"
content-length
"1691"
content-type
"application/json"
correlation-id
"bdac9f25426e5"
forwarded
"for="173.0.81.140";host="www.devmt.de";proto=https"
host
"www.devmt.de"
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
"bfdf2156-a925-11ef-944e-f7581dc703a6"
paypal-transmission-sig
"XPuZ9y6461ftZCbtiLS3fMq+cK8MoRDKdHzJ2Y1oeBL/uBMRSXK2iOnFAHci0h/x3KGNDFZYhgDbF5JcjLF6G9X+pgcgZ4VV/19iN0QiIlrrVu5DCOrfDOxhJMeWvp4rKUjWFRpwrTHJSciQtip81cgmd0c52fyvrx2mecU0OM0mfIxcnSnkpj9mS4nefXOqYIDEyOsTwgcCCikmAJqv5b87Jf+qkyl2w3Vl4KdliR0EQzxlv/XRI+pYHEPkjfSi4AClXGL+mVPDCVmXKpllHnJXh33BdnjFh22xazyW3CUuwJ+u41jbUTCj14p4uEMMYLK7T+TUOhKFR4NR3uRmWQ=="
paypal-transmission-time
"2024-11-22T23:01:46Z"
user-agent
"PayPal/AUHR-214.0-58712720"
x-b3-spanid
"41c42eef4af3ef72"
x-forwarded-for
"173.0.81.140"
x-php-ob-level
"1"

Request Content

Pretty

{
    "id": "WH-8PJ82526L6810210D-40S68471GC407251X",
    "event_version": "1.0",
    "create_time": "2024-11-22T23:01:43.543Z",
    "resource_type": "capture",
    "resource_version": "2.0",
    "event_type": "PAYMENT.CAPTURE.COMPLETED",
    "summary": "Payment completed for EUR 4083.95 EUR",
    "resource": {
        "id": "89A12208NY050441T",
        "amount": {
            "currency_code": "EUR",
            "value": "4083.95"
        },
        "final_capture": true,
        "seller_protection": {
            "status": "ELIGIBLE",
            "dispute_categories": [
                "ITEM_NOT_RECEIVED",
                "UNAUTHORIZED_TRANSACTION"
            ]
        },
        "seller_receivable_breakdown": {
            "gross_amount": {
                "currency_code": "EUR",
                "value": "4083.95"
            },
            "paypal_fee": {
                "currency_code": "EUR",
                "value": "49.36"
            },
            "net_amount": {
                "currency_code": "EUR",
                "value": "4034.59"
            }
        },
        "invoice_id": "MacTrade1846087068",
        "custom_id": "{\"orderTransactionId\":\"30c98b2b991f4872be5a2dbabf521055\",\"pluginVersion\":\"6.5.0\",\"shopwareVersion\":\"6.4.20.0\"}",
        "status": "COMPLETED",
        "supplementary_data": {
            "related_ids": {
                "order_id": "5V383466LN7320507"
            }
        },
        "payee": {
            "email_address": "paypal@mactrade.de",
            "merchant_id": "BXYR2EHMLNGQ2"
        },
        "create_time": "2024-11-22T23:01:39Z",
        "update_time": "2024-11-22T23:01:39Z",
        "links": [
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/89A12208NY050441T",
                "rel": "self",
                "method": "GET"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/payments\/captures\/89A12208NY050441T\/refund",
                "rel": "refund",
                "method": "POST"
            },
            {
                "href": "https:\/\/api.paypal.com\/v2\/checkout\/orders\/5V383466LN7320507",
                "rel": "up",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-8PJ82526L6810210D-40S68471GC407251X",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-8PJ82526L6810210D-40S68471GC407251X\/resend",
            "rel": "resend",
            "method": "POST"
        }
    ]
}

Raw

{"id":"WH-8PJ82526L6810210D-40S68471GC407251X","event_version":"1.0","create_time":"2024-11-22T23:01:43.543Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for EUR 4083.95 EUR","resource":{"id":"89A12208NY050441T","amount":{"currency_code":"EUR","value":"4083.95"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"EUR","value":"4083.95"},"paypal_fee":{"currency_code":"EUR","value":"49.36"},"net_amount":{"currency_code":"EUR","value":"4034.59"}},"invoice_id":"MacTrade1846087068","custom_id":"{\"orderTransactionId\":\"30c98b2b991f4872be5a2dbabf521055\",\"pluginVersion\":\"6.5.0\",\"shopwareVersion\":\"6.4.20.0\"}","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"5V383466LN7320507"}},"payee":{"email_address":"paypal@mactrade.de","merchant_id":"BXYR2EHMLNGQ2"},"create_time":"2024-11-22T23:01:39Z","update_time":"2024-11-22T23:01:39Z","links":[{"href":"https://api.paypal.com/v2/payments/captures/89A12208NY050441T","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v2/payments/captures/89A12208NY050441T/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v2/checkout/orders/5V383466LN7320507","rel":"up","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-8PJ82526L6810210D-40S68471GC407251X","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-8PJ82526L6810210D-40S68471GC407251X/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,fail-on-error,indexing-behavior,single-operation,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,fail-on-error,indexing-behavior,single-operation,sw-include-seo-urls"
cache-control
"no-cache, private"
content-type
"application/json"
date
"Sat, 23 Nov 2024 09:24:56 GMT"
x-debug-token
"ac50c4"
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
APP_ENV
"dev"
APP_SECRET
"def000001f8f23bf4c3a2e877b9258e405112682ef3a8f29b6407a5d0aa3794c40a0147421d819d6290861d5d1c47bc6c2ea61b390eee674be4d4fd75decd123e0243dff"
APP_URL
"https://www.devmt.de"
COMPOSER_HOME
"/var/www/vhosts/devmt.de/httpdocs/shopware-ce/var/cache/composer"
DATABASE_URL
"mysql://devmt_sw6:X!c75kn97@localhost:3306/devmt_sw6"
INSTANCE_ID
"V4BZlmGQ7wfV18k8AKEcoGEC6OwCSgQZ"
MAILER_URL
"null://localhost"
SHOPWARE_CDN_STRATEGY_DEFAULT
"id"
SHOPWARE_ES_ENABLED
"0"
SHOPWARE_ES_HOSTS
"localhost:9200"
SHOPWARE_ES_INDEXING_ENABLED
"0"
SHOPWARE_ES_INDEX_PREFIX
"sw6_prod"
SHOPWARE_HTTP_CACHE_ENABLED
"1"
SHOPWARE_HTTP_DEFAULT_TTL
"7200"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
"1691"
CONTENT_TYPE
"application/json"
DOCUMENT_ROOT
"/var/www/vhosts/devmt.de/httpdocs/shopware-ce/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www/vhosts/devmt.de"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_CONTENT_LENGTH
"1691"
HTTP_CONTENT_TYPE
"application/json"
HTTP_CORRELATION_ID
"bdac9f25426e5"
HTTP_FORWARDED
"for="173.0.81.140";host="www.devmt.de";proto=https"
HTTP_HOST
"www.devmt.de"
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
"bfdf2156-a925-11ef-944e-f7581dc703a6"
HTTP_PAYPAL_TRANSMISSION_SIG
"XPuZ9y6461ftZCbtiLS3fMq+cK8MoRDKdHzJ2Y1oeBL/uBMRSXK2iOnFAHci0h/x3KGNDFZYhgDbF5JcjLF6G9X+pgcgZ4VV/19iN0QiIlrrVu5DCOrfDOxhJMeWvp4rKUjWFRpwrTHJSciQtip81cgmd0c52fyvrx2mecU0OM0mfIxcnSnkpj9mS4nefXOqYIDEyOsTwgcCCikmAJqv5b87Jf+qkyl2w3Vl4KdliR0EQzxlv/XRI+pYHEPkjfSi4AClXGL+mVPDCVmXKpllHnJXh33BdnjFh22xazyW3CUuwJ+u41jbUTCj14p4uEMMYLK7T+TUOhKFR4NR3uRmWQ=="
HTTP_PAYPAL_TRANSMISSION_TIME
"2024-11-22T23:01:46Z"
HTTP_USER_AGENT
"PayPal/AUHR-214.0-58712720"
HTTP_X_B3_SPANID
"41c42eef4af3ef72"
HTTP_X_FORWARDED_FOR
"173.0.81.140"
PATH_INFO
""
PHP_SELF
"/index.php"
QUERY_STRING
"sw-token=lImRbkkrRm1T6cGTOHS1ko4KA94QzFlE"
REDIRECT_STATUS
"200"
REMOTE_ADDR
"127.0.0.1"
REMOTE_PORT
"3965"
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1732353896
REQUEST_TIME_FLOAT
1732353896.333
REQUEST_URI
"/api/_action/paypal/webhook/execute?sw-token=lImRbkkrRm1T6cGTOHS1ko4KA94QzFlE"
SCRIPT_FILENAME
"/var/www/vhosts/devmt.de/httpdocs/shopware-ce/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"116.202.123.166"
SERVER_NAME
"www.devmt.de"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"nginx/1.26.2"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,APP_URL,MAILER_URL,DATABASE_URL,COMPOSER_HOME,INSTANCE_ID,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,SHOPWARE_ES_HOSTS,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_CDN_STRATEGY_DEFAULT"
USER
"devmt.de"