Right now I'm trying to solve another problem.
I want to make some changes in DB after Order is successful
To do that I've create a method and pin it to Finalized event:
And after successful payment it doesn't enter this method (I’ve check and it is added to this event at application start)
It goes to url that is define in Continue url.
Also the payment is present in QuickPay management (I'm using test card)
I'm using QuickPay10 configuration in TeaCommerce.
The order just looks finalized at the confirmation page - but behind the sceen its just moved in session to act as finalized. True finalize happens in a server to server call. So if you run locally - then that is the first fail. You need to run on a URL the gateway can make a callback to.
If you do run on a live url then you need to check the Umbraco log files and see for quickpay messages. If you run test mode you will have data logged there for possible errors with the callback.
OK, I understand it, So it is not possible to debug this in visual studio? I mean if this method works as expected? Only if i make my local IIS website visible on the internet?
You cant test the callback locally - but you can do it manual. Find the cart in the Tea Commerce admin and click finalize. Type in the transaction id from quickpay and the amount that was authorized. Then you finalize it and can test your custom code.
OnFinalize event problem
Hello Again :)
Right now I'm trying to solve another problem. I want to make some changes in DB after Order is successful To do that I've create a method and pin it to Finalized event:
And after successful payment it doesn't enter this method (I’ve check and it is added to this event at application start) It goes to url that is define in Continue url. Also the payment is present in QuickPay management (I'm using test card)
I'm using QuickPay10 configuration in TeaCommerce.
Do i do something wrong?
Kind Regards Kamil
Hi Kamil
The order just looks finalized at the confirmation page - but behind the sceen its just moved in session to act as finalized. True finalize happens in a server to server call. So if you run locally - then that is the first fail. You need to run on a URL the gateway can make a callback to. If you do run on a live url then you need to check the Umbraco log files and see for quickpay messages. If you run test mode you will have data logged there for possible errors with the callback.
Kind regards
Anders
OK, I understand it, So it is not possible to debug this in visual studio? I mean if this method works as expected? Only if i make my local IIS website visible on the internet?
You cant test the callback locally - but you can do it manual. Find the cart in the Tea Commerce admin and click finalize. Type in the transaction id from quickpay and the amount that was authorized. Then you finalize it and can test your custom code.
is working on a reply...