Welcome, Guest
Username: Password: Remember me

TOPIC: Payment system can not change order status

Payment system can not change order status 3 years 1 month ago #3451

  • cinec
  • cinec's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Dear moderator,
I installed a plugin for online payment for Bulgarian online payment system E-pay based on Paypal.E-pay sends payment information to a hidden url address where our plugin that process it should reflect payment in the database, but it is not happening. So it can't change order status from "Unpaid" to "Paid" in database. I recieve a code from E-pay like this:

[data:protected] => Array
(
[encoded] => SU5WT0lDRT0xMDAxMjIxODY6U1RBVFVTPUVYUElSRUQK
[checksum] => f5f93597cf5a7629f3303ff16a4c2ee34e499b99
)
What can I do to make it work proper?
The administrator has disabled public write access.

Payment system can not change order status 3 years 1 month ago #3452

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1536
  • Thank you received: 240
  • Karma: 27
Hi,

It depends on what you send to the payment gateway and what it returns to you.

You may need to decode the encoded string. If it includes order ID you run an SQL query to update the status of that order in database to paid status, or you can return a standard array to let the component handle that for you, for this way you can take a look at onCMPaymentValidate() function in plugins/cmpayment/paypal/paypal.php to see how you return the array.

Regards,
Hung
The administrator has disabled public write access.