New Payment Plugin Assistance

xpozay
xpozay
Offline
0
I am planning for a new payment plugin. Before I engage a developer I would like to know if certain the following is possible.

Background
- Payments are made offline (cash, cheque, etc.) at the POS
- The payment amount made will be entered by staff in a 3rd party component using the front end.
- Staff do not have access to the IM backend nor front end ie they only use their 3rd party component.

Requirement
- I would like the 3rd party component to pass the payment details (date, amount, payment type, payment note) to Invoices Manager
- Customers will access Invoices Manager for displaying of payments on the front end (normal functionality provided by IM today)

Is it possible to have a plugin which receives all the payment details by a 3rd party component and not a user? Basically a trigger to write the records rather than writing the details directly to the table.

If this is not possible today, is it possible to call the functions that update the payments tables so we can call those. If so, which functions?

Thanks in advance for your assistance.
Responses (2)
  • Accepted Answer

    Wednesday, January 07 2015, 11:55 AM - #Permalink
    0
    Hello,

    the trigger is something you will need to build yourself. Since what you're requiring is not actually IM "informing" you of changes, but actually you inputting new payment info into IM databases, what you need to do is simply to create these new payments in your extension.
    there is NOT a payment API in IM, so what you need to do is directly input this data into the DB. do you know what I mean?
    The reply is currently minimized Show
  • Accepted Answer

    xpozay
    xpozay
    Offline
    Thursday, January 08 2015, 03:25 AM - #Permalink
    0
    Yes I understand. We can write directly to the tables as you have suggested and have done that already with a different invoicing extension. I was hoping we could call a function in IM to do the table update to reduce code management when IM upgrades in the future.

    Thanks
    The reply is currently minimized Show
Your Reply