an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Installation > How to disable the payment methods?
Last Post 6/19/2012 3:39:53 PM By Brian Rogge. 8 replies.
1/15/2008 6:03:07 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
How to disable the payment methods?

Hello.

I would like to disable the payment methods (Paypal, google, CC, etc ...) and to use the DSC only for orders, and to treat the orders separatelly.

Is there a method to achieve this?

Thanks,

Mitch

DotShoppingCart Staff
1/15/2008 12:22:30 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: How to disable the payment methods?

Well, you could archive this by adding a new Null payment module which basically does nothing. We will add serveral new payment modules such as phone order, pay via check etc in the version 2. They might meet what you are looking for.

DotShoppingCart Staff
1/16/2008 5:29:59 AM
Mitch
Posts: 1
Joined: 4/23/2008
Re: How to disable the payment methods?

Thanks for your answer. I have that Null paymet module, but still Paypal gets into the store. Do i have to comment the rest of them and to leave only the Null one?

Mitch

1/16/2008 1:09:46 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: How to disable the payment methods?

Are you talking about NullCreditCardPaymentProvider? NullCreditCardPaymentProvider disables only the credit card payment modules. What you need here is a NullPaymentProvider which disables all the payment modules. It doesn't exist now. You could comment out all the payment related code and the billing page in the checkout.aspx page. If you go that route, you might have to do all these again when you want to migrate to the future newer version. Creating a NullPaymentProvider is better approach.

DotShoppingCart Staff
6/18/2012 12:33:40 PM
Brian Rogge
Posts: 7
Joined: 6/11/2012
Re: How to disable the payment methods?
Was just reading this old thread.  This is exactly what I want to do:  disable payment processing altogether from the ordering process.  Creating a NullPaymentProvider is listed as the preferred method but no reference on how to do this.
 
Is there a solution for V3?  Is this even possible in V3?
6/19/2012 8:08:35 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: How to disable the payment methods?
There isn't a built-in feature to do that. You will need to change checkout page to archive this.
DotShoppingCart Staff
6/19/2012 10:34:47 AM
Brian Rogge
Posts: 7
Joined: 6/11/2012
Re: How to disable the payment methods?
I can get all the code stripped out except this line in checkout.ascx is using the payment info for the post back. 
 

    protected void btnSubmitOrder_Click(object sender, EventArgs e) {
        if (!Page.IsValid)
            return;

        SubmitOrder(Membership.GetUser(Utils.GetUserName()).Email, paymentOption.CheckoutPaymentType, paymentOption.CreditCard, paymentOption.BillingAddress);
    }
 
If the line is commented out then the submit button doesn't work.  Any suggestions?
 
 
6/19/2012 1:59:53 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: How to disable the payment methods?
You can create a Null CheckoutPaymentType and pass it into SubmitOrder.
DotShoppingCart Staff
6/19/2012 3:39:53 PM
Brian Rogge
Posts: 7
Joined: 6/11/2012
Re: How to disable the payment methods?
That isn't much to go on.  It's been years since I've done any programming in asp.net so I'm pretty lost, obviously. 
 
I'm in V.3 open source.  Not sure which page to update.  Just want to remove billing so I can demo to the client and get him to move on the project. as well as upgrade to V4.x.