def test_checkout_form(razorpay_payment, gateway_params): payment_info = create_payment_information(razorpay_payment) form = create_form(data={'razorpay_payment_id': '123'}, payment_information=payment_info, connection_params=gateway_params) assert isinstance(form, RazorPaymentForm) assert form.is_valid()
def test_checkout_form(razorpay_payment, gateway_params): payment_info = create_payment_information(razorpay_payment) form = create_form( data={'razorpay_payment_id': '123'}, payment_information=payment_info, connection_params=gateway_params) assert isinstance(form, RazorPaymentForm) assert form.is_valid()
def test_checkout_form(razorpay_payment, gateway_config): payment_info = create_payment_information(razorpay_payment) form = create_form( data={"razorpay_payment_id": "123"}, payment_information=payment_info, connection_params=gateway_config.connection_params, ) assert isinstance(form, RazorPaymentForm) assert form.is_valid()