Payment gateway - failed process (sagepay)
Hi,
I've almost finished integrating Sage Pay (a payment processor) into Classipress. I can take payments, record transactions and publish ads automatically however, I'm not sure what the process is for a failed transaction.
EDIT - Just to clarify, I'm fine with getting the failed response from sagepay, just not sure if there is a way I can use this in classipress.
I can easily just do nothing (i.e. don't touch the ad, don't record any transaction) but I think it would be better to at least log the failed transaction and take the user to a 'sorry, this hasn't worked because...' page.
Any idea how I might go about this? It looks like the paypal 'cancel' response is to just go back to the home page.
Finally, I see that the paypal payment gateway has a hidden parameter (notify_url) which submits back to the ipn listener to publish the add. Mine doesn't do this but it does go to the add-new-confirm page which then publishes the advert. Is this a problem?
If anyone from appthemes / classipress is reading this, I'm happy to discuss the integration with you should you want to include it in future releases. It's a little rough round the edges at the minute and whilst it does allow for some configuration, some other areas are hard-coded.