예제 #1
0
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()
예제 #2
0
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()
예제 #3
0
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()
예제 #4
0
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()