How to Hit Refund method In Custome Payment gateway

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
haseeb
Posts: 9
Joined: 24 Feb 2021, 16:34

How to Hit Refund method In Custome Payment gateway

Post by haseeb » 02 Mar 2021, 14:25

"php": "^7.2",
"aimeos/aimeos-laravel": "~2019.10",
"laravel/framework": "^6.0",

hello,
i am using custom payment gateway and I follow this documentation for implementation https://aimeos.org/docs/latest/provider ... e/payment/ . As according to documentation i use Refund() method but problem is that i can access this function when admin change the delivery status to Refunded from back end , can you please tell me how can i do this work.
thanks in advance
status.PNG
status.PNG (9.58 KiB) Viewed 1370 times

User avatar
aimeos
Administrator
Posts: 8012
Joined: 01 Jan 1970, 00:00

Re: How to Hit Refund method In Custome Payment gateway

Post by aimeos » 04 Mar 2021, 13:06

The admin backend currently doesn't handle refunds and pay outs.
Help to implement that is very welcome :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

haseeb
Posts: 9
Joined: 24 Feb 2021, 16:34

Re: How to Hit Refund method In Custome Payment gateway

Post by haseeb » 04 Mar 2021, 16:48

so how it can update order status in database , when i click on save button which controller hits, can you please tell me.

User avatar
aimeos
Administrator
Posts: 8012
Joined: 01 Jan 1970, 00:00

Re: How to Hit Refund method In Custome Payment gateway

Post by aimeos » 05 Mar 2021, 14:35

This is the save() method for the order invoice subpart:
https://github.com/aimeos/ai-admin-jqad ... p#L86-L108

This is where the order data is really stored:
https://github.com/aimeos/ai-admin-jqad ... #L176-L201
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

haseeb
Posts: 9
Joined: 24 Feb 2021, 16:34

Re: How to Hit Refund method In Custome Payment gateway

Post by haseeb » 09 Mar 2021, 06:56

Thanks and Its work for me and now refund is working :D :P

User avatar
aimeos
Administrator
Posts: 8012
Joined: 01 Jan 1970, 00:00

Re: How to Hit Refund method In Custome Payment gateway

Post by aimeos » 09 Mar 2021, 06:58

Cool! Can you share your code?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply