How can I create a non uniqe offer code

I have 2 auto renewable subscriptions Beginner for 10$ a month and Advanced for 20$ a month, I want to create an offer code TEN (Takes 10% off on monthly payment for the first 12 months) which can be applicable for both.

My purchase flow in the app allows users to select a product before invoking the payment sheet.

Is there a way my users can use the coupon code "TEN" and get the same benefit for what ever subscription they have selected?.

as of not I have tried adding custom codes and was unsuccessful.

Please help.

How can I create a non uniqe offer code
 
 
Q