nBill Community
22/May/2012, 11:37:53 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Click Here
for the nBill home page, or
take a tour
.
Home
Help
Search
Login
Register
nBill Community
>
Version 1.x
>
General Questions/Comments
>
How to allow the user to enter the amount to pay
Pages:
1
2
[
3
]
« previous
next »
Print
Author
Topic: How to allow the user to enter the amount to pay (Read 12361 times)
netshine
Administrator
Hero Member
Offline
Posts: 4,563
Re: How to allow the user to enter the amount to pay
«
Reply #30 on:
17/September/2009, 09:04:07 AM »
Assuming the name of your dropdown field is 'choose_product' (if not, amend the following code accordingly), try this:
$order = array();
$order['net_price'] = format_number(mosGetParam($_POST, 'Payment_Amount'), 2);
$order['tax_amount'] = 0;
$order['tax_rate'] = 0;
$order['product_name'] = "Project Payment";
$order['quantity'] = 1;
$order['product_id'] = intval(mosGetParam($_POST, 'choose_product'));
$orders[] = $order;
Logged
Pages:
1
2
[
3
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Official Announcements
-----------------------------
nBill Extensions (nTicket, nCart, etc.)
-----------------------------
=> nBill Extension Support
-----------------------------
Version 2.x
-----------------------------
=> Installation, Upgrades, and Licensing
=> General Questions/Comments
=> Payment Gateways
=> Language Packs and Translation
=> Community Tips
=> Suggestions
=> General Feedback
=> Documentation
=> Bug Reports
-----------------------------
Version 1.x
-----------------------------
=> Installation and Licensing
=> General Questions/Comments
=> Payment Gateways
=> Language Packs and Translation
=> General Feedback
=> Documentation
=> Bug Reports
-----------------------------
User to User
-----------------------------
=> Services Wanted
Loading...