I'm trying to integrate CiviCRM with a payment gateway. I'm using the method notify where user will have to key in credit card detail in payment gateway website.
I have followed CiviCRM guide at
- CiviCRM Wiki: Example of creating a payment processor extension
- CiviCRM Wiki: Create a payment processor extension
However i'm not clear on the return URL. In the payment gateway configuration I can enter the URL so that after the payment is made, it will redirect the user back to my CiviCRM website. However i'm clueless on the value that I should enter.
Update
The payment gateway is senangPay.my (specific to Malaysia, accept visa/mastercard and bank account transfer). The guide for integration is available at http://guide.senangpay.my/manual-integration-api/
The still in progress plugin is available at:
Update 2 (implemented answer from Chris Burgess) Added handlePaymentNotification() but it does not seems to work. It does not execute the function. Refer to GitHub I just added redirect URL to thank you page. However when I tried it just return to main page. FYI when payment gateway redirect the user back to CiviCrm page it will redirect to http://civicrm.secretgroup.my/civicrm/payment/ipn?processor_name=senangpay&status_id=0&order_id=144283261515&transaction_id=14428326334290&msg=Your_payment_was_declined._Please_check_with_your_bank._Thank_you.&hash=07a5b4aa22b086bfe583f97474ca3401&component=event&contactID=39&contributionID=31&contributionTypeID=4&eventID=1&invoiceID=f237d39119b5c7f358127bbf8287e49f&membershipID=&participantID=13&qfKey=2f9e11313ad9d55bec78f759dfdad420_9895
Thanks!