Switch between testing and production purchase links based on debug val