tdphong Posted October 9, 2015 Report Posted October 9, 2015 Hi all, Currently, I want to create a capture or refund button in transaction but not change core. So, how can i do that? Thanks, Quote
Tyson Posted October 9, 2015 Report Posted October 9, 2015 You'd have to change the core to add that functionality as you've shown in the screenshot. Alternatively, you could create a plugin and do it from a separate location. Quote
Blesta Addons Posted October 9, 2015 Report Posted October 9, 2015 You'd have to change the core to add that functionality as you've shown in the screenshot. Alternatively, you could create a plugin and do it from a separate location. if we change transaction to refund , it does not execute the refund function in gateway ? Quote
Tyson Posted October 9, 2015 Report Posted October 9, 2015 if we change transaction to refund , it does not execute the refund function in gateway ? If the payment was charged using a gateway, and the gateway supports refunds, then you'll have a checkbox option available that will refund it using the gateway. For example, it might say, "Process this status change with the payment gateway (Stripe)". activa 1 Quote
tdphong Posted October 12, 2015 Author Report Posted October 12, 2015 Hi Tyson, So, how can i create a plugin to integrate both capture and refund button in a order? Can you help me create a example plugin to i can follow it? Thanks, Phong Quote
Tyson Posted October 12, 2015 Report Posted October 12, 2015 I can't create you an example plugin of a capture/refund. This is something you will need to create using your skills as a developer. And how best to do that is up to you. I would suggest making use of the Payments::authorizePayment and Payments::capturePayment model methods which will call your merchant gateway's authorizeCc and captureCc methods. Quote
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.