Automatic custom payment return to the customer

Adding a payment to access members area for online training. This will allow me to upload videos that are accessible for 24 hours for monthly challenges. Challenges last 28 days and Participants can register through paying £28 per challenge with a refund of £8 upon completion of the challenge, as long as the website records that participant taking part for the whole session for the full 28 days – this should activate a refund of the £8. Is it possible in Wix via code ??

Hi!

To refund your customers a full amount or make a partial refund you will have to do it manually from the transactions overview tab: Wix Stores: Refunding Customers | Help Center | Wix.com

Is this a feature you really want to see as part of Wix Code?
Corvid feature requests board is the perfect place to let us know.
We’ll also keep you updated in the product updates page.