Your card is usually declined when the purchase is higher than your available balance, so it helps to check your balance before you pay.
If the amount is too high, you can often split your payment into two transactions using your card and another form of payment.
A decline can also happen if the merchant tries to use the card for a transaction type that is not supported.