Give user the option to end trial

Hello! I would like to know how a user can end their trial period in the middle of it and start getting charged. For example, if a users trial is 14-days long but lets say with 7 days left they decide that they don't want to use the trial anymore but make a payment. How can I allow them to do so? Thank you