Jump to content

How To Create Capture And Refund Button In A Order Transaction


Recommended Posts

Posted

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.

Posted
  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 ?

Posted
  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)".

Posted

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

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...