Need to trigger Incoming Transaction

Discussion in 'Payments processing' started by keithvaughan, Dec 3, 2014.

  1. keithvaughan

    keithvaughan New Member

    Aug 4, 2014
    I'm working on a custom payment plugin which is trying to accommodate non-instant IPN response. Unlike PayPal, where customer pays directly, my third party service (one that handles mark received payments as paid) might takes some time before they can confirm if a payment has been made for an invoice.

    So, I'm trying to find a way, to trigger the Tansaction_Incoming method when my third party service post the IPN request to my server.

    I have this in mind;
    1. Create a PHP file to handle the IPN post, and parse the request.
    2. In that file, I need to setup everything so it can work with my aMember. (I don't know what are *everything*)
    3. Then, trigger the plugin incoming transaction method from that file.
    Can somebody lead me to the accomplish this? Thanks in advance.
  2. caesar

    caesar aMember Pro Developer Staff Member

    Oct 16, 2009
  3. keithvaughan

    keithvaughan New Member

    Aug 4, 2014
    You are such a great help, caesar.

    I did spend some time looking at other payment plugins, and tried to implement the Transaction class. So far, my plugin can handle:
    1. Sending the invoice detail to the third-party.
    2. Receive the request from the third-party service, and mark the invoice as paid.
    But the problem is, now every time an order is place, no summary or thank you page is being displayed on the screen. Previously I adapt the directAction method from the offline payment plugins, but this new approach seems to have a problem displaying the thank you page.
    (screenshot attached)

    I also wondering, what is the difference between
    Should I pay attention to some rules regarding those two id?

    PS: I did try to contact support, but still no response.

    Attached Files:

Share This Page