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

Payment/init failed, reason: <url> malformed #379

Closed GekMDN closed 6 years ago

GekMDN commented 6 years ago

Good day. During the intergration of the payment system, I experienced the following error, "payment/init failed, reason: malformed". What could be the problem? And how can I solce it? MerchantID - M1MIPS1813. Best regards, Evgneii Modniy.

aKocian commented 6 years ago

Dear Evgneii,

your request is registered as an issue TSGSMIPS-6061 and forwarded to responsible service technician.

Best regards, Alexander Kocian

mrazekl commented 6 years ago

Hello,

please, tell me when did u tried this order? I saw two attempts with Merchant ID M1MIPS1813 from yesterday , but both of these payment/init has been successful.

GekMDN commented 6 years ago

Excuse me, at the cart of http://ariana-koberce.cz/ when I try initialize payment by cart. Succsesfull payment was made here http://ariana-koberce.cz/csob/.

ratajskym commented 6 years ago

What is url that you are sending request to ? According to your log, it seems that is somehow malformed.

zheselevko commented 6 years ago

----- Thu, 19 Apr 2018 11:19:48 +0000 ----- payment/init data to sign:: 'M1MIPS1813|136|20180419111948|payment|card|1000000|CZK|false|http://ariana-koberce.cz/index.php?route=tmdqc/tmdcheckout|POST|Shopping at ...|1|1000000|test...|Shipping|1|0|PPL|test|test|CZ'

ratajskym commented 6 years ago

This is not url of CSOB payment gateway

zheselevko commented 6 years ago

this is what the log file writes

zheselevko commented 6 years ago

$url = "https://iapi.iplatebnibrana.csob.cz/api/v1.5"; this address is in the settings

zheselevko commented 6 years ago
preparing cart data: [ { "name": "Shopping at ...", "quantity": 1, "amount": 1000000, "description": "test..." }, { "name": "Shipping", "quantity": 1, "amount": 0, "description": "PPL" } ] data to sign: "M1MIPS1813|141|20180419122813|payment|card|1000000|CZK|false|http://ariana-koberce.cz/index.php?route=tmdqc/tmdcheckout|POST|Shopping at ...|1|1000000|test...|Shipping|1|0|PPL|test|test|CZ" prepared payment/init request: { "merchantId": "M1MIPS1813", "orderNo": "141", "dttm": "20180419122813", "payOperation": "payment", "payMethod": "card", "totalAmount": 1000000, "currency": "CZK", "closePayment": "false", "returnUrl": "http://ariana-koberce.cz/index.php?route=tmdqc/tmdcheckout", "returnMethod": "POST", "cart": [ { "name": "Shopping at ...", "quantity": 1, "amount": 1000000, "description": "test..." }, { "name": "Shipping", "quantity": 1, "amount": 0, "description": "PPL" } ], "description": "test", "merchantData": null, "customerId": "test", "language": "CZ", "signature": "" } processing payment/init request ... payment/init failed, reason: <url> malformed
ratajskym commented 6 years ago

You have succesfull transaction from todays morning 2018-04-19 09:13:45

What did you change since then ?

zheselevko commented 6 years ago

payment/init failed, reason: Merchant blocked. please unlock Merchant I need a couple more tests to do

Mspisar commented 6 years ago

Hello,

please send your request to an email: akceptacekaret@csob.cz.

thanks

best regards

Milan Spisar

zheselevko commented 6 years ago

Hey. can not get payment status. paid for it or not. Do not tell me how to get it?

ratajskym commented 6 years ago

How do you mean, you can not get payment status ? Everything is in documentation

zheselevko commented 6 years ago

After cancellation of payment on the side of the bank, the api still gives the result "resultCode": 0, "resultMessage": "OK",

mjanek commented 6 years ago

Hello, it is ok. What number is in your "paymentStatus": ???

"payId":"d165e3c4b624fBD", "dttm":"20140425131559", "resultCode": 0, "resultMessage":"OK", "paymentStatus": 1, "

zheselevko commented 6 years ago

paymentStatus 3 or 4

mjanek commented 6 years ago

If you read https://github.com/csob/paymentgateway/wiki/eAPI-v1.7-EN#transaction-life-cycle you learn that it is ok.

3 - payment cancelled 4 - payment confirmed - in this step, you need to go to posmerchant and confirm this transaction. Or if you want automatic settlement you need change method "closePayment" like this: "closePayment": true