tpay-com / tpay-flutter

Tpay.com Flutter Framework library
MIT License
1 stars 1 forks source link

The module does not return a response after registering the payment. #5

Open kamildul opened 4 months ago

kamildul commented 4 months ago

Hi, my payments using this plugin suddenly stopped working. I'm trying to make a BLIK payment or another transfer, and each attempt ends in failure. Everything was working fine until May 1st. The problem appeared after May 1st.

My log:

> 
> D/HTTP    (13718): --> POST https://api.tpay.com/oauth/auth
> D/HTTP    (13718): Accept application/json
> D/HTTP    (13718): Authorization Basic xxxxx
> D/HTTP    (13718): Content-Type application/json
> D/HTTP    (13718): --> END POST
> D/HTTP    (13718): <-- 200 OK https://api.tpay.com/oauth/auth (1351 ms)
> D/HTTP    (13718): Cache-Control private, must-revalidate
> D/HTTP    (13718): CF-Cache-Status DYNAMIC
> D/HTTP    (13718): CF-RAY 8862a1923b65bff5-WAW
> D/HTTP    (13718): Connection keep-alive
> D/HTTP    (13718): Content-Type application/json
> D/HTTP    (13718): Date Sun, 19 May 2024 08:14:03 GMT
> D/HTTP    (13718): expires -1
> D/HTTP    (13718): pragma no-cache
> D/HTTP    (13718): Server cloudflare
> D/HTTP    (13718): Strict-Transport-Security max-age=15552000; includeSubDomains; preload
> D/HTTP    (13718): Transfer-Encoding chunked
> D/HTTP    (13718): vary Accept-Encoding
> D/HTTP    (13718): X-Content-Type-Options nosniff
> D/HTTP    (13718): x-powered-by PHP/8.2.16
> D/HTTP    (13718): {"issued_at":1716106443,"scope":"read","token_type":"Bearer","expires_in":7200,"client_id":"HERE_MY_CLIENT_ID","access_token":"HERE_MY_ACCESS_TOKEN"}
> D/HTTP    (13718): --> GET https://api.tpay.com/transactions/channels
> D/HTTP    (13718): Accept application/json
> D/HTTP    (13718): Authorization Bearer 3038a58d681c2ed2146161c9e598ef6b9baa2766
> D/HTTP    (13718): Content-Type application/json
> D/HTTP    (13718): --> END GET
> D/HTTP    (13718): <-- 200 OK https://api.tpay.com/transactions/channels (199 ms)
> D/HTTP    (13718): Cache-Control private, must-revalidate
> D/HTTP    (13718): CF-Cache-Status DYNAMIC
> D/HTTP    (13718): CF-RAY 8862a19678b6bff5-WAW
> D/HTTP    (13718): Connection keep-alive
> D/HTTP    (13718): Content-Type application/json
> D/HTTP    (13718): Date Sun, 19 May 2024 08:14:03 GMT
> D/HTTP    (13718): expires -1
> D/HTTP    (13718): pragma no-cache
> D/HTTP    (13718): Server cloudflare
> D/HTTP    (13718): Strict-Transport-Security max-age=15552000; includeSubDomains; preload
> D/HTTP    (13718): Transfer-Encoding chunked
> D/HTTP    (13718): vary Accept-Encoding
> D/HTTP    (13718): X-Content-Type-Options nosniff
> D/HTTP    (13718): x-powered-by PHP/8.2.16
> D/HTTP    (13718): {"result":"success","requestId":"94d1c5d6e8dce9d10d78","language":"pl","currency":"PLN","channels":[{"id":"1","name":"BNP Paribas","fullName":"BNP Paribas Bank Polska SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/1\/normal-white-bg-e.png"},"available":true,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"133","name":"BNP Paribas Bank Polska SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/133\/normal-white-bg.png"}}],"constraints":[]},{"id":"2","name":"Millennium","fullName":"Bank Millennium SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/2\/normal-white-bg-e.png"},"available":false,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"114","name":"Bank Millennium SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/114\/normal-white-bg.png"}}],"constraints":[]},{"id":"4","name":"Pekao","fullName":"Bank Pekao SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/4\/normal-white-bg-e.png"},"available":true,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"102","name":"Bank Pekao SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/102\/normal-white-bg.png"}}],"constraints":[]},{"id":"5","name":"Pocztowy","fullName":"Bank Pocztowy SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/5\/normal-white-bg-e.png"},"available":true,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"124","name":"Bank Pocztowy SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/124\/normal-white-bg.png"}}],"constraints":[]},{"id":"6","name":"Santander","fullName":"Santander Bank Polska SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/6\/normal-white-bg-e.png"},"available":true,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"115","name":"Santander Bank Polska SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/115\/normal-white-bg.png"}}],"constraints":[]},{"id":"7","name":"Citibank","fullName":"Citibank Handlowy SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/7\/normal-white-bg-e.png"},"available":false,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"132","name":"Citibank Handlowy SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/132\/normal-white-bg.png"}}],"constraints":[]},{"id":"9","name":"Alior","fullName":"Alior Bank SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/9\/normal-white-bg-e.png"},"available":true,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"113","name":"Alior Bank SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/113\/normal-white-bg.png"}}],"constraints":[]},{"id":"12","name":"VeloBank","fullName":"VeloBank S.A.","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/12\/normal-white-bg-e.png"},"available":false,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"119","name":"Velo Bank","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/119\/normal-white-bg.png"}}],"constraints":[]},{"id":"13","name":"ING","fullName":"ING Bank \u015al\u0105ski SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/13\/normal-white-bg-e.png"},"available":false,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"111","name":"ING Bank \u015al\u0105ski SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/111\/normal-white-bg.png"}}],"constraints":[]},{"id":"14","name":"Inteligo","fullName":"Inteligo","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/14\/normal-white-bg-e.png"},"available":true,"onlinePayment":true,"instantRedirection":true,"groups":[{"id":"110","name":"Inteligo","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/groups\/110\/normal-white-bg.png"}}],"constraints":[]},{"id":"15","name":"Plus Bank","fullName":"Plus Bank SA","image":{"url":"https:\/\/secure.tpay.com\/tpay\/web\/channels\/15\/normal-white-bg-e.png"},"available":false,"onlinePayment":true,"instantRedirection":true,"groups":
> I/ViewRootImpl@ac6c415[MainActivity](13718): ViewPostIme pointer 0
> I/ViewRootImpl@ac6c415[MainActivity](13718): ViewPostIme pointer 1
> D/HTTP    (13718): --> POST https://api.tpay.com/oauth/auth
> D/HTTP    (13718): Accept application/json
> D/HTTP    (13718): Authorization Basic xxx
> D/HTTP    (13718): Content-Type application/json
> D/HTTP    (13718): --> END POST
> D/HTTP    (13718): <-- 200 OK https://api.tpay.com/oauth/auth (655 ms)
> D/HTTP    (13718): Cache-Control private, must-revalidate
> D/HTTP    (13718): CF-Cache-Status DYNAMIC
> D/HTTP    (13718): CF-RAY 8862a1aac82abff5-WAW
> D/HTTP    (13718): Connection keep-alive
> D/HTTP    (13718): Content-Type application/json
> D/HTTP    (13718): Date Sun, 19 May 2024 08:14:07 GMT
> D/HTTP    (13718): expires -1
> D/HTTP    (13718): pragma no-cache
> D/HTTP    (13718): Server cloudflare
> D/HTTP    (13718): Strict-Transport-Security max-age=15552000; includeSubDomains; preload
> D/HTTP    (13718): Transfer-Encoding chunked
> D/HTTP    (13718): vary Accept-Encoding
> D/HTTP    (13718): X-Content-Type-Options nosniff
> D/HTTP    (13718): x-powered-by PHP/8.2.16
> D/HTTP    (13718): {"issued_at":1716106447,"scope":"read","token_type":"Bearer","expires_in":7200,"client_id":"_HERE_MY_CLIENT_ID","access_token":"HERE_MY_ACCESS_TOKEN"}
> D/HTTP    (13718): --> POST https://api.tpay.com/transactions
> D/HTTP    (13718): Accept application/json
> D/HTTP    (13718): Authorization Bearer c789e21ef30417421b50cb14e88a7f2c2f0bf403
> D/HTTP    (13718): Content-Type application/json
> D/HTTP    (13718): {"pay":{"channelId":64,"blikPaymentData":{"aliases":{"value":"myGuardianApp","label":"myGuardianApp","type":"UID"}}},"callbacks":{"payerUrls":{"success":"https:\/\/secure.tpay.com\/mobile-sdk\/success","error":"https:\/\/secure.tpay.com\/mobile-sdk\/error"}},"payer":{"email":"MY@EMAIL.COM","name":"Kamil Dul"},"amount":1,"description":"Super Safe+","lang":"pl"}
> D/HTTP    (13718): --> END POST
> 

At this point, the log cuts off; I am not receiving a 200 OK response from your server. What has changed? Please respond urgently, as we are in the process of launching a product that suddenly stopped working.

kwojc commented 3 months ago

Your request is totally fine. Using another credentials it works like a charm in Postman. Be aware of not pasting HTTP Basic Auth credentials here (I edited your message).

kwojc commented 2 months ago

@kamildul Is your problem solved? Can I close issue?