{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Zdarzenie: transaction:status_changed","description":"Znajdziesz tutaj wszystkie niezbędne informacje dotyczące integracji i obsługi systemu płatności SimPay.pl","siteUrl":"https://docs.simpay.pl","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"zdarzenie-transactionstatus_changed","__idx":0},"children":["Zdarzenie: transaction:status_changed"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Zdarzenie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction:status_changed"]}," to najważniejszy element integracji płatności online. Informuje ono Twój system o"," ","każdej zmianie stanu (cyklu życia) konkretnej transakcji zainicjowanej przez klienta."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To właśnie na podstawie tego eventu Twój sklep powinien podejmować decyzje biznesowe – np. wydać klientowi zakupiony"," ","towar (gdy status zmieni się na opłacony) lub przywrócić produkty na stan magazynowy (gdy płatność wygaśnie lub zostanie"," ","odrzucona)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"kiedy-wysyłany-jest-ten-event","__idx":1},"children":["Kiedy wysyłany jest ten event?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Powiadomienie to jest wyzwalane asynchronicznie za każdym razem, gdy transakcja płatnicza przechodzi na nowy etap w"," ","systemie SimPay. Otrzymasz je między innymi, gdy:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Bank lub operator ostatecznie potwierdzi otrzymanie środków (zmiana na status ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_paid"]},")."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Próba płatności zostanie odrzucona przez bank klienta z powodu braku środków (zmiana na ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_failure"]},")."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Klient nie opłaci zamówienia w wyznaczonym czasie i bramka płatnicza zostanie zamknięta (zmiana na"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_expired"]},")."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"struktura-obiektu-data","__idx":2},"children":["Struktura obiektu ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Gdy pole ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," w głównym obiekcie powiadomienia ma wartość ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction:status_changed"]},", obiekt ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data"]}," będzie zawierał"," ","następujące informacje:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Pole"},"children":["Pole"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Typ"},"children":["Typ"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Opis"},"children":["Opis"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Przykładowa wartość"},"children":["Przykładowa wartość"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UUID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["ID transakcji przesyłany po wygenerowaniu transakcji"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["00554475-7ebb-4f16-b30b-0ce21da1a03b"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payer_transaction_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["char(8)"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["ID transakcji pokazywane płacącemu na ekranie bramki"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["4878R2PN"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["service_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["char(8)"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Identyfikator usługi"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["e65c7519"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TransactionStatusEnum"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Aktualny ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/payment/statuses#statusGroup=Statusy+transakcji"},"children":["status transakcji"]}," (np. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_paid"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_failure"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_paid"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Obiekt informacji o kwocie"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount.final_currency"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ISO 4217"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Waluta, w której płacący dokonał płatności"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PLN"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount.final_value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," (%.2f)"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Finalna kwota, którą płacący zapłacił (np. \"0.30\", \"10.00\", \"12.37\")"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["8.47"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount.original_currency"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ISO 4217"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Waluta, która była zadeklarowana przy inicjacji płatności"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EUR"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount.original_value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," (%.2f)"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Zadeklarowana kwota przy inicjacji płatności (np. \"0.30\", \"10.00\", \"12.37\")"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2.00"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount.commission_system"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," (%.2f) lub ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Kwota prowizji, która została pobrana przez SimPay (np. \"0.30\", \"10.00\", \"12.37\")"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0.13"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount.commission_partner"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}," (%.2f) lub ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Kwota prowizji, która została dla Partnera (np. \"0.30\", \"10.00\", \"12.37\")"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0.13"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount.commission_currency"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ISO 4217"]}," lub ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Waluta, w której została pobrana prowizja (PLN/EUR)"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PLN"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["control"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Pole przesyłane tylko wtedy, gdy zostało przekazane podczas inicjacji płatności"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SHOP_ORDER_1"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Pole z informacjami o metodzie płatności"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment.channel"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Kanał płatności, którym zapłacił płacący (zobacz: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Kanały bezpośrednie"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blik"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment.type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Typ/grupa metody płatności"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blik"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Obiekt informacji o płacącym"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer.country_code"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ISO 3166-1 Alpha-2"]}," lub ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Kraj kupującego (np. \"PL\")"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PL"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paid_at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ISO 8601"]}," lub ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Data i czas zapłaty (może nie być przesyłane, kiedy transakcja nie jest opłacona)"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2025-05-26T15:10:24Z"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created_at"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ISO 8601"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Data i czas utworzenia transakcji"]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2025-05-26T15:09:59Z"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Wskazówka"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Do sprawdzania opłacenia zamówienia zawsze weryfikuj pole ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]},". Oczekiwana wartość dla zakończonego"," ","sukcesem procesu to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_paid"]}]},". Należy również bezwzględnie sprawdzić, czy ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount.original_value"]}," oraz"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount.original_currency"]}," zgadzają się z kwotą zapisaną w Twojej bazie danych dla danego zamówienia."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"przykładowy-payload-json","__idx":3},"children":["Przykładowy Payload JSON"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Poniżej znajduje się kompletny zrzut (payload) powiadomienia wysyłanego dla zdarzenia ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction:status_changed"]}," (w"," ","tym przypadku transakcja odrzucona – ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_failure"]},")."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["(Przykładowa sygnatura została wygenerowana przy użyciu klucza IPN: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UwSkKiIwlxIeOMF8MIq9iDkQWBTtjoJQ"]}]},". Możesz użyć tego klucza i poniższych danych do przetestowania swojego algorytmu walidacji)."]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"type\": \"transaction:status_changed\",\n  \"notification_id\": \"0196fec6-7a61-7219-9458-bcc45237c252\",\n  \"date\": \"2025-05-23T22:12:22+02:00\",\n  \"data\": {\n    \"id\": \"dbc87423-b121-4ad4-977f-b63c3d3831e8\",\n    \"payer_transaction_id\": \"Q68KLAKN\",\n    \"service_id\": \"e65c7519\",\n    \"status\": \"transaction_failure\",\n    \"amount\": {\n      \"final_currency\": \"PLN\",\n      \"final_value\": \"8.00\",\n      \"original_currency\": \"PLN\",\n      \"original_value\": \"8.00\",\n      \"commission_system\": \"0.06\",\n      \"commission_partner\": \"7.94\",\n      \"commission_currency\": \"PLN\"\n    },\n    \"control\": \"3e63e31d-f08d-4942-a223-3bad2dce8096\",\n    \"payment\": {\n      \"channel\": \"blik\",\n      \"type\": \"blik\"\n    },\n    \"customer\": {\n      \"country_code\": null\n    },\n    \"created_at\": \"2024-08-10T15:41:50+02:00\"\n  },\n  \"signature\": \"095a7be5d77c4bab667dbd0f35d9b1cb0c9cec50d8af42842cc37a95b233925e\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"details","attributes":{},"children":[{"$$mdtype":"Tag","name":"summary","attributes":{},"children":["Zobacz wyliczenie sygnatury"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Flatten wszystkich elementów po kolei + separacja ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["|"]},":"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Nasz ciąg będzie wyglądać tak:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"transaction:status_changed|0196fec6-7a61-7219-9458-bcc45237c252|2025-05-23T22:12:22+02:00|dbc87423-b121-4ad4-977f-b63c3d3831e8|Q68KLAKN|e65c7519|transaction_failure|PLN|8.00|PLN|8.00|0.06|7.94|PLN|3e63e31d-f08d-4942-a223-3bad2dce8096|blik|blik||2024-08-10T15:41:50+02:00\n"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Dodaj klucz IPN na końcu ciągu:"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["...|UwSkKiIwlxIeOMF8MIq9iDkQWBTtjoJQ"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Oblicz SHA256 z powyższego ciągu i zakoduj go w hex:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"<?php\n\n$signature = hash('sha256', 'transaction:status_changed|0196fec6-7a61-7219-9458-bcc45237c252|2025-05-23T22:12:22+02:00|dbc87423-b121-4ad4-977f-b63c3d3831e8|Q68KLAKN|e65c7519|transaction_failure|PLN|8.00|PLN|8.00|0.06|7.94|PLN|3e63e31d-f08d-4942-a223-3bad2dce8096|blik|blik||2024-08-10T15:41:50+02:00|UwSkKiIwlxIeOMF8MIq9iDkQWBTtjoJQ');\n","lang":"php"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Porównaj bezpieczną funkcją porównującą (np. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hash_equals"]}," w PHP) obliczoną sygnaturę z tą przesłaną w polu ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["signature"]}," powiadomienia."]}]}]}]},"headings":[{"value":"Zdarzenie: transaction:status_changed","id":"zdarzenie-transactionstatus_changed","depth":1},{"value":"Kiedy wysyłany jest ten event?","id":"kiedy-wysyłany-jest-ten-event","depth":2},{"value":"Struktura obiektu data","id":"struktura-obiektu-data","depth":2},{"value":"Przykładowy Payload JSON","id":"przykładowy-payload-json","depth":2}],"frontmatter":{"seo":{"title":"Zdarzenie: transaction:status_changed"}},"lastModified":"2026-04-22T16:24:29.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/notifications/payment/events/transaction_status_changed","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}