...
POSSIBLE PROBLEM (these masses of data are prod-voucherify)
frontend flow
Currently to show the promo code field, we need to configure the sanity with CBA offers (CBA offers is deprecated)
When we applied the promo code on whitelabel, we receive an error: Something went wrong. Please try again.
...
OBS:. This test was done, mocking de codes and apis responses, using apollo studio:
Calling LoyaltyValidatePromoCode
...
Code Block |
---|
{ "input": { "code": "8B9IKPQK", "loyaltyId": "ec5cec01-b41b-509b-9111-310ab5a18154", "shouldRedeem": true } } |
response:
Code Block |
---|
{ "data": { "loyaltyValidatePromoCode": { "code": "8B9IKPQK", "configId": "7bf2c11c-ec68-4d44-abd3-597b3967fcef", "isRedeemed": true, "isValid": true, "message": "", "personalizedOfferId": null, "reason": null, "shouldRedeem": null } } } |
...
Enable feature flag:
ENABLE_PROMO_CODE_AT_CHECKOUT = 'enablePromoCodeAtCheckout'
After configure sanity:
...
After that:
...
To create the promotional codes, we need to access from Voucherify, this vendor is used current by PLK ES in production to create another promo codes on offers page;
...