trongtho1410 Posted October 10, 2014 Report Share Posted October 10, 2014 Hi All, I'm trying to create a Pesapal Gateway plugin. And i completed 90%: - Config Pesapal Gateway in the admin site. - Perform a payment in the client site, get status, amout of transaction, save to database. But i have a issue with the IPN listener from pesapal. I don't know how to create a public page in Blesta to add IPN listener. In this page, i need to get all current gateway configuration and re-update database by transaction_id Can you help me? Joseph H 1 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted October 10, 2014 Report Share Posted October 10, 2014 you are meaning callback ? normally it should /callback/gw/1/your_gate_way/?client_id=xxxx trongtho1410 and Michael 2 Quote Link to comment Share on other sites More sharing options...
trongtho1410 Posted October 11, 2014 Author Report Share Posted October 11, 2014 Thanks for your suggestion. In the validate function of my gateway, how do it get the current meta of system? Quote Link to comment Share on other sites More sharing options...
Tyson Posted October 11, 2014 Report Share Posted October 11, 2014 Thanks for your suggestion. In the validate function of my gateway, how do it get the current meta of system? I'm not sure what you're asking? The service validation method accepts two parameters--the package and the input vars. If there is anything else you need, you would need to query for it directly, or otherwise implement a different solution. I think I looked into Pesapal recently and I had concerns with their IPN. The documentation appeared to suggest that Blesta must continuously request updates from Pesapal regarding a transaction rather than Pesapal sending those updates to Blesta after they update the transaction status. Most gateways I'm aware of don't work this way. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.