intergrating a cellphone payment module with hikas

  • Posts: 1
  • Thank you received: 0
11 years 8 months ago #94780

Hi everyone,
I am new in hikashop but has however gone through faqs to see if there is way to solve my problem, and i haven't been lucky.
I have this cellphone api payment module, it is written in php, where the user pays throught heir cellphone to a registered line, the line syncronises the payment message (a code) with a php script on the server that is the api. upon the user paying, they are sent a code, which is the similar code in the server sent by the payment recieving line. The user is then prompted to enter the code in a form to ascertain his/her identity. if the code matches, they are authenticated and the transaction is entered. How can this be incorperated into hikashop payment methods

Last edit: 11 years 8 months ago by Mrosh.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 8 months ago #94803

Hi,

You could create a custom order text field which would be required and the create a payment plugin checking on the code entered in that field using the onBeforeOrderCreate event trigger. And if the code is invalid, you would set the $do variable to false and display an error message that the code is invalid and otherwise you would change the order_status to confirmed in $order.
Our developer documentation has a bit more information on the onBeforeOrderCreate trigger:
www.hikashop.com/en/support/documentatio...#onBeforeOrderCreate

The following user(s) said Thank You: Mrosh

Please Log in or Create an account to join the conversation.

Time to create page: 0.043 seconds
Powered by Kunena Forum