Dealing with Voucher Codes

Hi everyone,

Has anyone done anything with Voucher Codes/Giftcards etc?

I have an app that sells products and uses stripe to pay. One of the items they can buy is Giftcards (£50) to be used or bought for someone else.

  1. I need to be able to allow the purchase of gift cards
  2. Send them to others (as gifts)
  3. Redeemed.

I’d like them to feature them in the products to purchase and store a unique ID (Randomly generate) against them. That code can then be used at check out by them or anyone else (who has that code). Once used it will need to be flagged.

I’m not sure about the best way to do this.

When purchased I can store it in their Order Items and generate the code. I’m not sure of the best way to then redeem this at check out and validated it hasn’t been used.

I guess when it is used I can mark it but how do I do the lookup at check out when they enter the code?

Any help greatly appreciated

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.