I need a gift voucher payment module for prestashop which will be working as below.
1) When a user clicks on the Gift voucher payment module at the payment page, the customer will be shown a page where the customer will enter the gift voucher total amount.
2) If the gift voucher total amount is equal to or greater than the order total amount, the order will be placed successfully with order state "Awaiting Gift Voucher" .
3) If the Gift Voucher amount is less than the order total, then the customer will be shown the other payment modules, and remaining amount will be paid by any other payment module. At that stage the amount to be paid will be orderTotal - GiftVoucher total amount .