Most of the bookings on booking.com takes place through credit card or visa Mastercard or rupay card. I would suggest asking u friend to pay for you though his card. second option is to filter the search and look out for options which does not require credit cards. there are many hostels where you can pay at the hostel itself. thirdly u can also directly contact the hostel and ask them if there is any other way to pay.. for ex. via paytm etc.
You can simply book a hotel before going without any charges to be paid. You can directly call to that hotel number and tell them abt your visit they will provide u another mode of payments. As i do when i went goa.