Coding for Gift Card Usage in Checkout

So I tried using Gifted, and really didn’t like the way that it ran external to the site. I want the ability to offer gift cards in my site and to allow customers to redeem them in the checkout process.

So far I have:

  • Landing page where customers can read about the cards
  • Store product where they can purchase the card.
  • Ability to check balance by querying the database.

At the moment, I am fine creating the database entries themselves, but if this picks up it would be nice to find a way to create the entries themselves and generate a code number for the gift card.

I also need a way to apply the gift card at checkout. I previously used coupon codes, but if the purchase doesn’t exceed the value of the gift card (coupon value) I would have to manually edit the coupon code value for the remaining balance.

Doe anyone have experience doing this without a third party app? I already have the database created and some functionality, I just need to tie it all together. Are there any tutorials for how to do this, or possibly a freelancer that can show me their work and I would consider paying to finish this portion?

Thanks in advance!