Not sure how many people are like me and always thought Costco only takes Visa.
But actually, credit cards can only be Visa,
debit cards can use PayPal.
So with PayPal you don't need to buy a Shop Card online first.
As long as there's a balance, and you select grocery as your category each month, you can just insert the card to pay and enjoy 5%.
It depends on the store—some places accept Visa debit cards too, so you don't necessarily have to use PayPal.