My credit card was declined, but the bank shows the charge.

When a credit/debit card is declined, the credit/debit card company still pre-authorizes the charge, which will show as a pending charge on your bank statement. Since the card was declined, the transaction will not be completed and the pending charge will disappear from your bank statement in a few business days.