I have created payment integration with Razorpay, but it does not allow amount with 0. so it is raise a error…
raise BadRequestError(msg)
razorpay.errors.BadRequestError: The amount must be atleast INR 1.00
def create_razorpay_order(amount, currency):
order_data = {
"amount": amount,
"currency": currency,
}
print("order_data",order_data)
order = razorpay_client.order.create(order_data)
return order
I have created this function when i try to pay with amount 0 it raise a error.
New contributor
ashvini Kuhikar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.