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,
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.
Blesta Addons Posted October 9, 2015 Report Posted October 9, 2015 On 10/9/2015 at 4:13 PM, Tyson said: 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 ?
Tyson Posted October 9, 2015 Report Posted October 9, 2015 On 10/9/2015 at 8:56 PM, naja7host said: 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
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
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.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now