When you request the upgrade, the miles will be deducted from your United MileagePlus frequent flyer account and your credit card will be charged the co-pay amount.
If the upgrade you requested does not clear, the miles will be redeposited and the co-pay will be refunded to your credit card.