nBill Community nBill Home Page
21/May/2012, 10:55:52 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Click Here for the nBill home page, or take a tour.  
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: How can I offer multiple forms of payment?  (Read 10080 times)
Geoffrey Smith
Jr. Member
**
Offline Offline

Posts: 32



View Profile WWW
« on: 23/March/2007, 11:38:51 PM »

having walked through the Order Form tutorial on the website. I now have an understanding of how to set up an order form, however it seems that the order form is tied to one payment gateway.

What I would like to happen is after the client has confirmed the order, rather than be whisked off to the selected payment gateway, that they be given a choice of payment gateways, which could include the likes of a bank transfer, western union and so on.

Can anybody explain how this might be done now, or if not, could it be included in the next release of netshine billing?

Many thanks,

Geoffrey
Logged

This breath is all I have
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #1 on: 24/March/2007, 09:16:19 AM »

This can be done already. Just create a dropdown or options list field on your order form, and assign 'Payment Gateway' as the 'Order Value' (in the edit field popup). In the list options for the field, use the gateway name as the value, and whatever display value you like. The selected gateway will then be used (in fact, this is now in place on the Netshine Billing website - see the end of the purchase order form).

[Edit: The following is no longer necessary - please see the next post, below]
If one of your options is to not pay online at all (eg. to allow payment by bank transfer or cheque), you will need to add a little code to the 'Advanced' tab. For example, if your payment choice field was called 'payment_method', and (in addition to a choice of gateways) had an option with a value of 'X' and a display value of 'Pay offline', you could use the following code in the 'Submit Code' on the 'Advanced' tab:

Code:
if (mosGetParam($_POST, 'payment_method') == 'X') {$suppress_payment = true;}

The $suppress_payment flag will then stop the form being redirected to a payment gateway, and it will just display a message saying 'thank you for your order'.
« Last Edit: 31/May/2007, 02:00:45 PM by netshine » Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #2 on: 10/April/2007, 08:30:15 AM »

Please note, as of version 1.1.1, it is no longer necessary to add any custom code to acheive this. Instead of using an option value of 'X' on the 'payment_method' field, as shown in the above example, use a value of '-1'. Then you won't need any code on the 'Advanced' tab. The above setup will still work though, so if you already have it set up that way you can leave it alone if you want.
Logged
Christina
Jr. Member
**
Offline Offline

Posts: 4


View Profile
« Reply #3 on: 18/May/2007, 04:24:10 AM »

Hi
I have created the order form and have a field that uses option list to specify the different forms of payment I would like - cash, cheque and paypal. How do I create individual options for each list item - ie cash goes to a page saying thankyou, please visit us at ... to pay - cheque does the same, and paypal then goes to the payment gateway?

Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #4 on: 18/May/2007, 08:58:24 AM »

Try setting the option value for both cheque and cash to -1, and use the gateway name as the value for the gateway option, as described above. If you want to customise the message that is displayed for offline payments (by default it is just 'Thank you for your order'), you can amend this in the language file (/administrator/components/com_netinvoice/language/english/frontend.english.php - line 47).

Edit: This is also no longer necessary, as you can specify a thank you message on the order form (details tab) instead of changing the language file.
« Last Edit: 03/June/2008, 09:39:55 AM by netshine » Logged
Christina
Jr. Member
**
Offline Offline

Posts: 4


View Profile
« Reply #5 on: 18/May/2007, 02:48:59 PM »

Great thanks,

I'll give that a go.
Logged
kbrokes
Jr. Member
**
Offline Offline

Posts: 25


View Profile
« Reply #6 on: 08/October/2007, 12:18:05 AM »

When setting up an order form as described, is it possible for the subscribing user to be emailed an invoice when they choose an offline payment option?

I feel certain I've missed something here, because I have both the Vendor and My Profile set to receive invoices as attachments.

When a new user attempts to register AND pay using an offline payment system, this is what occurs:

1) New user fills out registration form
2) New user is passed to the payment options order form, chooses offline payment
3) New user confirms details
4) New user is presented with 'Thank you for your order.' as an on-site message
5) Admin receives notification of pending order
6) New user gets no emails or other messages from site
7) User can't login because their payment is pending - therefore can't get their invoice

Ideally, they'd get an invoice mailed to them with instructions on how to pay. In our previous system, we had that in our invoice template, and that's easy enough to change in nBill. It's just that the new user receives no invoice via email, so they stay pending in the system.

I feel that this is probably down to my lack of understanding, rather than it being an nBill problem.
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #7 on: 08/October/2007, 08:46:35 AM »

If you have 'pending until paid' set to 'yes' on your order form, the order will be pending until - you guessed it - it has been paid. This is the recommended setting because there is nothing stopping a spambot, or even a person with nothing better to do from submitting forms on your site - and you probably don't want it creating orders and invoices for Mickey Mouse or Mr. asdf.

If someone opts to pay offline, an order and invoice record will only be generated when you activate the pending order in the back end. If you don't want to do that, you can set 'pending until paid' to 'no', but run the risk of unwanted junk being submitted.
Logged
erikp
Jr. Member
**
Offline Offline

Posts: 35


View Profile
« Reply #8 on: 08/July/2008, 01:48:22 AM »

hello very good thread!

I have a similar issue I have 3 option " cash - Credit card - cheque"

I put them in a drop down menu but I would like each option to go to a diferent link.

cash -> link1
credit -> link2
cheque -> Link3

this is mainly because i do not have a payment gateway but we accept credit cards via a third party. is this possible or it their a better way of doing this?

thanks!
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #9 on: 08/July/2008, 08:36:37 AM »

When you say you want them to go to a different link, I assume you mean after they submit the form you want it to redirect either to the payment service provider (in the case of credit card payments), or to 2 different URLs depending on whether they chose cash or cheque.

I'm afraid nBill will not differentiate between cash and cheque - all offline payments would be treated the same and you can only specify one URL to redirect to on submission of the form. The only workaround to that would be to actually write a small payment gateway for either cheque or cash payments - all the gateway would need to do is redirect to the URL of your choice.
Logged
erikp
Jr. Member
**
Offline Offline

Posts: 35


View Profile
« Reply #10 on: 18/September/2008, 10:45:44 PM »

ok i have been reading the thread again o set this up but I can't set it up for some reason.

I need to forms of payment:

1- Credit card payment gateway sends client to a gateway we programmed - directs clients there automatically -
2- Offline payment - directs clients to the thank you page or anywhere else -

How can I set this up?

thanks!
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #11 on: 19/September/2008, 09:11:32 AM »

Ok, here it is again, step-by-step:

  • Create a new field of type 'dropdown list'.
  • Click on the Options... button next to the new field.
  • Add an option which uses the gateway name as the 'value', and whatever you want the user to see as the 'description'
  • Add an option with 'offline' as the value, and 'Pay Offline' (or whatever) as the description.
  • Submit that, then click on the 'edit...' button next to the field, and select 'Payment Gateway' as the 'Order Value' (that is the last setting on the edit field popup).
  • Submit that, then save the form.

Edited: Version 1.2.3 now allows you to use a value of 'offline' instead of '-1' (minus one), which makes order confirmation emails easier to read.
« Last Edit: 11/November/2008, 12:14:45 PM by netshine » Logged
erikp
Jr. Member
**
Offline Offline

Posts: 35


View Profile
« Reply #12 on: 19/September/2008, 10:17:58 PM »

thanks!

working perfectly well
Logged
HSN
Jr. Member
**
Offline Offline

Posts: 8


View Profile
« Reply #13 on: 20/March/2009, 12:05:48 PM »

Hi Russell,

Just a quick Question. ABove you mentioned only being able to redirect to a single page and that no email would be sent out until item is paid.

Is this still the case? Or would an email be sent out?

What I would like to try to achieve is (like cubecart) to only display my bank details for bank transfers, standing orders and cheque payments.
Now im no php coder so im dead in the water, but one thought did occurr to me last night. Would it not be possible to create a "Offline Payments" extension that would be capable of either redirecting to a very specific page (like the current gateways do).

Regards,

Tom.
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #14 on: 20/March/2009, 12:45:07 PM »

You can have the invoice generated and sent, but only if 'pending until paid' is set to 'no'. There is a risk of spam form submissions causing invoices to be generated unnecessarily then, but that is a natural consequence of the functionality.

Your thought about creating an 'offline gateway' is exactly what I was suggesting here:
Quote from: netshine
The only workaround to that would be to actually write a small payment gateway for either cheque or cash payments - all the gateway would need to do is redirect to the URL of your choice.
.

I'm afraid I don't have time at present to write that little gateway myself, but any PHP coder could do it.
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!