Once you buy the drink and snack pairing, you can scan the codes on the bag and under the bottle cap with your phone. Then, each time you accumulate $2, the money is automatically deposited in your linked Venmo or PayPal account.
You can find the details regarding the PepCoin program online here.
Photo via PepsiCo.