csob / paymentgateway

English documentation of the ČSOB Payment Gateway that offers an API for credit card payments, Apple Pay, Google Pay, mallpay and ČSOB Payment Button.
https://platbakartou.csob.cz/platebni-brana
GNU General Public License v3.0
121 stars 68 forks source link

Error 400 only at development #613

Closed 0yik closed 2 years ago

0yik commented 2 years ago

merchantId = M1MIPS8365'

Try POST https://iapi.iplatebnibrana.csob.cz/api/v1.8/payment/init

{'merchantId': 'M1MIPS8365', 'orderNo': '15584', 'dttm': '20211213113810', 'payOperation': 'payment', 'payMethod': 'card', 'totalAmount': 63400, 'currency': 'CZK', 'closePayment': 'true', 'returnUrl': 'https://eshoptestweb.mattoni1873.cz/payment/csob/response', 'returnMethod': 'GET', 'cart': [{'name': 'eshop.mattoni.1873cz', 'quantity': 1, 'amount': 63400}], 'language': 'CZ', 'customerId': '3', 'merchantData': 'eyIwIjogMTU1ODQsICIxIjogMTU1ODQsICIyIjogMSwgIjMiOiBbMjczNiwgMjczMiwgMjczMywgMjczNF0sICI0IjogMjczNn0=', 'signature': 'GHPAUe+xRfqdCmnv1F4iVFIEQkN+JlEwvQvVE35WFjneAKi9Q4UVPBSQvA0arFe25yeodlSJ4Z1rAD54Ximg1PZ/qnnhoVlPUyT3XjHsgtZu2N3OPZqCT/X5wIp89bApE2jZ+FKtxvmadybWXYXfEq4EVopgX8m50YdfjNxxRhZafP4Yi26nkChaa84u8Ln9OCzLqtSqeNzlQA03yl+xLNMquURh0E8AiuYNGR842zyjDUp1djbaFVMt4XveXshuZLAyVSZxL7TjpR6v+pXnqQ4ZtaCdgSVAZidwTv7FPZcGv/c06jVufa/Anfd9684edjq33wz1vi1jegW2C4w0rA=='}

Then i get error response 400 Client Error: Bad Request for url: https://iapi.iplatebnibrana.csob.cz/api/v1.8/payment/init

But no problem at production (URL https://api.platebnibrana.csob.cz/api/v1.8/payment/init)

jstuchlik-mnt commented 2 years ago

Dobrý den,

požadavek byl předán na servis.

S pozdravem

-- Jan Stuchlík IT Support Specialist

dkomarek2 commented 2 years ago

Hello,

I replied to your colleague Lukas Halda's email.

Best regards,

Daniel Komárek IT application specialist