Advances Use Case

This scenario includes the Hoox Immediate Discount reward, allowing merchants to utilize external budgets from credit card issuers by giving a discount reward to a specific transaction. This requires a time gap between the payment validation process and the Hoox transaction API call. Therefore, to implement this scenario, merchant should implement four API calls:

  1. Hoox Encrypt - to generate the hashes.

  2. Request Offer - to request a Hoox offer for a customer.

  3. Validate Hashes - to validate the payment method, and act according to the response. If the payment method is validated, the reward value should be deducted from the transaction total amount. If not validated, it is for the merchant to decide whether to present an alert to the user, suggesting them to change their payment method, or continue without granting the reward to the buyer.

  4. Hoox Transaction - to close the cycle and inform Hoox that the purchase has been completed and the reward was granted to the buyer.

This section will walk you through the implementation of the advanced use case.

Last updated