{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Obsługa BLIK Level 0 w SimPay","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":"obsługa-blik-level-0-w-simpay","__idx":0},"children":["Obsługa BLIK Level 0 w SimPay"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["BLIK Level 0 to uproszczona metoda płatności BLIK,"," ","w której użytkownik wpisuje kod BLIK bezpośrednio na stronie Partnera,"," ","bez potrzeby przekierowania na stronę eblik.pl."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Uwaga"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Twoim obowiązkiem jest spełnienie warunków checklisty BLIK do płatności Level 0, która jest dostępna"," ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://www.blik.com/lp/payment-without-code/Level-0-Oneclick-Checklist.141951240.html#Level0OneclickChecklist-Level0-guidelinesforimplementationofBLIKwithcode","target":"blank"},"children":["tutaj"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"generowanie-transakcji","__idx":1},"children":["Generowanie transakcji"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Podczas generowania transakcji należy:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ustawić pole ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["directChannel"]}," na wartość ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blik-level0"]},","]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["przesłać antifraud.useragent płacącego,"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["przesłać customer.email płacącego,"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["przesłać customer.ip płacącego,"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["przesłać customer.countryCode płacącego (obecnie obsługiwany tylko PL),"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ustawić walutę transakcji na PLN (BLIK obecnie wspiera tylko PLN)."]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Następnie należy wysłać request na:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST https://api.simpay.pl/payment/:serviceId/blik/level0/:transactionId"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["w body należy przesłać:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"ticket\":{\n        \"T6\":\"KOD_BLIK\"\n    }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["W przypadku poprawnego kodu BLIK zwrócony zostanie status HTTP 204"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"danger","name":"Uwaga"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Zwrócenie kodu 204 nie oznacza, że transakcja jest opłacona. Musisz obsłużyć obydwa eventy IPN podane poniżej."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["W przypadku błędnego kodu odpowiedź wygląda następująco:"," ","HTTP 4xx"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"success\": false,\n    \"message\": \"Error message\",\n    \"errorCode\": \"ERROR_CODE\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Wartości errorCode dostępne są w tabeli pod sekcją IPNv2."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"obsługa-eventu-ipnv2","__idx":2},"children":["Obsługa eventu IPNv2"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["W przypadku transakcji BLIK Level 0, SimPay wysyła 2 wiadomości IPN:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction:status_changed"]}," (ten sam co przy każdej metodzie),"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_blik_level0:code_status_changed"]},". Ta wiadomość zawiera informację o ważności kodu BLIK (pole data.ticket_status)."," ","Przykładowy IPN:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"type\": \"transaction_blik_level0:code_status_changed\",\n  \"notification_id\": \"019736c4-50c3-7108-944c-11a0f9c12b72\",\n  \"date\": \"2025-06-03T19:08:44+02:00\",\n  \"data\": {\n    \"ticket_status\": \"VALID\",\n    \"transaction\": {\n      \"id\": \"70bc5ab3-4973-4275-a0eb-08e3f2ab54f2\",\n      \"payer_transaction_id\": \"6PB8JKKN\",\n      \"service_id\": \"e65c7519\",\n      \"status\": \"transaction_paid\",\n      \"amount\": {\n        \"final_currency\": \"PLN\",\n        \"final_value\": \"360.00\",\n        \"original_currency\": \"PLN\",\n        \"original_value\": \"360.00\",\n        \"commission_system\": \"5.36\",\n        \"commission_partner\": \"354.64\",\n        \"commission_currency\": \"PLN\"\n      },\n      \"control\": \"111122223333\"\n    }\n  },\n  \"signature\": \"236197b1a75a8e1c33b0feea94cab753f4b0d7f5ffd044abeea36ea8b89566cc\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["W przypadku ticket_status innego niż VALID należy poinformować płacącego co było powodem odrzucenia transakcji."," ","Tutaj kierujemy do checklisty BLIKA (sekcja Authorization errors)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://www.blik.com/lp/payment-without-code/Level-0-Oneclick-Checklist.141951240.html#Level0OneclickChecklist-Authorizationerrors","target":"blank"},"children":["Checklista BLIK"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["od \"INSUFFICIENT_FUNDS\" w dół."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"lista-błędów-przy-podawaniu-kodu-blik","__idx":3},"children":["Lista błędów przy podawaniu kodu BLIK"]},{"$$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":{"data-label":"Kod"},"children":["Kod"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Znaczenie"},"children":["Znaczenie"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INVALID_BLIK_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Nieprawidłowy kod BLIK."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PAYER_APP_NOT_ACTIVE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BLIK nie został aktywowany w aplikacji bankowej płacącego."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PAYER_APP_NOT_FOUND"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Nie znaleziono BLIK w aplikacji bankowej płacącego."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INVALID_BLIK_CODE_FORMAT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Nieprawidłowy format kodu BLIK."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BLIK_CODE_EXPIRED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kod BLIK wygasł."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BLIK_CODE_LIMIT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Przekroczono limit dla tego kodu."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BLIK_CODE_CANCELLED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kod BLIK został anulowany."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BLIK_CODE_NOT_SUPPORTED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kod BLIK nie jest obsługiwany."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BLIK_CODE_USED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kod BLIK został już użyty."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BLIK_GENERAL_ERROR"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ogólny błąd BLIK."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BLIK_TECHNICAL_BREAK"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Przerwa techniczna w działaniu BLIK."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"lista-testowych-kodów-t6","__idx":4},"children":["Lista testowych kodów T6"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Kody testowe"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Aby kody testowe T6 zadziałały wymagane jest włączenie trybu testowego w ustawieniach usługi w Panelu Klienta SimPay."]}]},{"$$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":{"data-label":"Kod T6"},"children":["Kod T6"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Znaczenie kodu"},"children":["Znaczenie kodu"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["999000"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Poprawny kod BLIK"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100001"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PAYER_APP_NOT_ACTIVE"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100002"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PAYER_APP_NOT_FOUND"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100003"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INVALID_BLIK_CODE_FORMAT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100004"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BLIK_CODE_EXPIRED"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100005"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BLIK_CODE_LIMIT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100006"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BLIK_CODE_CANCELLED"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100007"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BLIK_CODE_NOT_SUPPORTED"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100008"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BLIK_CODE_USED"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100009"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BLIK_GENERAL_ERROR"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100010"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BLIK_TECHNICAL_BREAK"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200001"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INSUFFICIENT_FUNDS"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200002"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["LIMIT_EXCEEDED"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200003"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIMEOUT"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200004"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GENERAL_ERROR"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200005"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SYSTEM_ERROR"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200006"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SEC_DECLINED"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200007"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["USER_DECLINED"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200008"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TAS_DECLINED"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{każdy inny}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INVALID_BLIK_CODE"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Kody testowe zaczynające się od ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}," oznaczają błąd zwrócony przy inicjacji transakcji Level 0."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Kody testowe zaczynające się od ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2"]}," oznaczają błąd przesłany w IPN w evencie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transaction_blik_level0:code_status_changed"]},"."]}]},"headings":[{"value":"Obsługa BLIK Level 0 w SimPay","id":"obsługa-blik-level-0-w-simpay","depth":1},{"value":"Generowanie transakcji","id":"generowanie-transakcji","depth":3},{"value":"Obsługa eventu IPNv2","id":"obsługa-eventu-ipnv2","depth":3},{"value":"Lista błędów przy podawaniu kodu BLIK","id":"lista-błędów-przy-podawaniu-kodu-blik","depth":3},{"value":"Lista testowych kodów T6","id":"lista-testowych-kodów-t6","depth":3}],"frontmatter":{"seo":{"title":"Obsługa BLIK Level 0 w SimPay"}},"lastModified":"2026-04-21T13:37:42.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/payment/blik/level0","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}