New Zenner
- Join Date:
- Mar 2009
- Posts:
- 16
- Plugin Contributions:
- 0
Custom payment mod. Best practise advice needed for making api call in admin?
Hi fellow zenners,
I'm creating a custom payment module and need some advice.
My module is much like the linkpoint api mod and requires a two-stage transaction process; one transaction (xml api call) to the merchant when card details are gathered (done this in before_process method) and a second at a later stage when the item has been delivered. *I don't know how / where to code this second transaction:
*
1) I could update /admin/orders.php and update the update_action code block and check if update status is delivered then make call. This is like a non-standard hacky way of doing it
2) admin_notification method in my mod order class could create a html form which allows the user to action the second transaction api call
**3) **Is there another, zc standardised way of doing this so my mod conforms? I've noticed linkpoint has a 'review' page but don't know how this works.
Any feedback and suggestions are welcomed :bigups:.
Cheers,
Phil