It definitely doesn't work at CVS. You probably used it a Walgreens. CVS has their own CVS pay that they want you to use.
CVS joins the digital payment app parade
"Apple, Google and Samsung believe they have an edge because their devices come equipped with payment capability upon delivery to consumers. Users can load payment options into Apple Pay, Android Pay and Samsung Pay, authenticate their identity on the phone while at the cash register and tap or hover their device to complete the transaction.
But for now, CVS and Walmart aren't accepting those three options."
SP works at Walgreens though.