March 20, 2011 at 11:29 pm #2998
I’m not really sure where to start off, but I’ll try to be detailed as possible. I am trying to help a friend who runs training events that wants to promote them via affiliates. He is currently using the Merchant One gateway system. For his last training his programmer created a PHP script to accept payments via the Merchant One api system.
I talked to him a few minutes ago, and he wants to use Merchant One to accept payment when someone registers for the trainings, and use Paypal to pay the affiliates.
What needs to be done to get this working?
In other words, what does the programmer have to add to the already existing payment.php script?March 21, 2011 at 12:45 am #30450
Just now I thought of another issue. Since my friends events are live trainings, there may be people that want refunds. I believe he will have a refund policy of 1 or 2 days into the training. I’m kind of confused on how I’ll be able to tell which person decided to get a refund – as my friend doesn’t want to be awarding an affiliate if someone gets a refund.March 21, 2011 at 2:41 am #30451amin007Participant
Send your programmer to this page and he will be able to do the integration:
If something is unclear or needs more explanation let me know.
Regarding the refund… every commission that is given to the affiliate will have a transaction ID attached to it. This transaction ID is unique and is issued by the payment gateway. So when a refund for a transaction is given all you have to do is go to the “Sales/Comm data” menu and find the transaction ID and delete the commission. If this payment gateway has notification facility after refund (like PayPal) then you can process that notification and communicate with the affiliate plugin to delete the corresponding commission (this way no manual commission delete action is needed).March 22, 2011 at 2:23 pm #30452
I believe Merchant One has some sort of notification facility. Could you explain how to integrate this within the plugin?
AntonioMarch 23, 2011 at 12:25 am #30453amin007Participant
The affiliate platform has a refund handler API (similar to the commission awarding API that I mentioned in the previous post).
When a refund is issued this is what happens
The payment gateway sends the notification to your script -> the script processes the data and sends it to the refund handler API of the affiliate plugin -> the plugin then reverses the commission.
The refund handler API just needs the original transaction ID of the transaction that got refunded and it can take care of the rest.
- You must be logged in to reply to this topic.