Credit Card Bill

I recently got a credit card so I am fairly new at this I did an online transaction of 17000 But I returned the product and the bill for my card is generated on 15th of the month.my due date to pay the cc bill is 2nd of next month my overall bill was 22000 out of which 17000 have been refunded. But the bill is of 22000 wil I be charged interest if I pay the 5000 or I have to the the full 22000 please help