razorpay.errors.BadRequestError: The amount must be an integer

Solution 1
import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET"))
order_amount = 50000
order_currency = 'INR'
order_receipt = 'order_rcptid_11'
notes = {'Shipping address': 'Bommanahalli, Bangalore'} #OPTIONAL
client.order.create(amount=order_amount, currency=order_currency, receipt=order_receipt, notes=notes)
Solution 2
        order_amount = int(99 * 100)  #9900
        order_currency = 'INR'
        order_receipt = 'order_rcptid_11'
    order = razorpay_client.order.create({ 'amount' : order_amount, 'currency' : order_currency, 'receipt' : order_receipt, 'payment_capture' : '1'}) 
client.order.create(amount=order_amount, currency=order_currency, receipt=order_receipt, notes=notes)