I don’t think that a standard paper milk carton could handle the pressurized contents of a carbonated soft drink. It’d have to be thicker, stronger paper and the sealing system would need to be more durable.
what if opening the container releases the carbonation from a pellet
Which would raise the question as to whether or not it is really any more environmentally friendly...