Discounted Price Feature

💲 Control which of your customer have access to certain events with the steps below!

Discount UI for Checkout Component Feature/Product

Step 1: Clone Repositories

Clone the repositories from the following URL:

11501150

Step 2: Obtain a valid Discount Code from your Mojito Representative

The current set up requires the discount codes to be imported/added to our DB before validation can occur.
Once the codes are imported they are added as discountCodeID if you choose to hardcode for development.

Step 3: Spin up local server and test Code validation

  • Run you local server from your IDE and go to your localhost
  • Once your local server is running, select one of the Buy Now lots.
20082008

-Go through the process of clicking Buy Now and entering your valid Discount Code

10921092
  • In the image below we've entered a valid discount code 'Ceremony'(These are case sensitive).
12541254
  • Mutations used in feature
    • applyDiscountCode - (link to code)
    • createPayment -(link to code)

https://github.com/mojitoinc/mojito-api/blob/4a21a4adcd8cb42daec7e291852b594b811aebac/pkg/graphql/payments.resolvers.go#L568

https://github.com/mojitoinc/mojito-api/blob/4a21a4adcd8cb42daec7e291852b594b811aebac/pkg/service/payment/discount_code.go#L28