Non-Credit Card Orders
Hi,
I am using the latest starter site and I would like to allow a user to place an order with a Purchase Order # instead of a Credit Card.
I have not been able to find out how to enable this functionality and not require a Credit Card to check out.
Please Advise.
[289 byte] By [
Xcel] at [2008-2-4]
There are a couple of things you need to do in order to enable this functionality in the Starter Site. It is on my list of things to blog about but I'll give you a few pointers right now.
The main thing is you need to modify the PaymentControl.Payments property to return PurchaseOrderPayment types. You can either do this by returning a single PurchaseOrderPayment and allowing the user to modify the PurchaseOrderNumber, or you can have the user enter a PurchaseOrderNumber as a separate step.
If you need to do any special processing when the payment is being added to the cart you can check the payment type in PaymentControl.AddPaymentsToCart() and do your work there (there probably won't be any).
Aside from adding a custom UI to configure the Purchase Order, that should be all you need to do to. The MultiplePayment control handles a lot of stuff for you automatically. However, I haven't actually tried it so I could be leaving something out. Let me know if you run into any problems.