litteratum / csobpg

Python library for communicating with ČSOB payment gateway API
MIT License
1 stars 1 forks source link

oneclick_process() API returns an empty response #12

Open Otaznicek opened 3 weeks ago

Otaznicek commented 3 weeks ago

When calling the oneclick_process() function, the API returns an empty response. This issue occurs even when setting the parameter client_initiated = False.

After contacting ČSOB about this problem, I was informed that the missing Content-Type header could be the cause of the issue.

litteratum commented 3 weeks ago

@Otaznicek, I did not test the functionality manually when developing it because I missed the testing documentation. But now I found it.

Currently, I created and finalized an order and it is in the "WAITING_SETTLEMENT" state. As I understand it, the first "normal" payment must be "SETTLED", only then the gateway will store a "template_id" for it. I did not find any option to move the payment to the "SETTLED" immediately, so I should wait...

So:

@Otaznicek, I don't get the point about missing Content-Type header. The library sends "application/json"...

litteratum commented 3 weeks ago

@Otaznicek, despite payment being "SETTLED" now, I get a "Template not found" error when calling OneClick Echo/Init. So I don't know how to proceed with it. I wrote a question to CSOB support, perhaps they could help...