I have looked in the forums and for one reason or another can't seem to get my head around the solutions suggested. I have created a registration page so that it has capture facilities.
I have created a paypal paynow button but really not sure how to get this integrated into the registration process. The code for that is below.
Dave🤨 😀
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label">Name*</label>
<input class="cf_inputbox required" maxlength="150" size="50" id="text_0" name="text_0" type="text">
</div>
<div class="clear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label">Username*</label>
<input class="cf_inputbox required" maxlength="150" size="50" id="text_1" name="text_1" type="text">
</div>
<div class="clear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label">Email*</label>
<input class="cf_inputbox required" maxlength="150" size="50" id="text_2" name="text_2" type="text">
</div>
<div class="clear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label">Password*</label>
<input class="cf_inputbox required" maxlength="150" size="30" id="text_3" name="text_3" type="text">
</div>
<div class="clear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label">Confirm Password*</label>
<input class="cf_inputbox required" maxlength="150" size="50" id="text_4" name="text_4" type="text">
</div>
<div class="clear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_captcha">
<label class="cf_label">Image Verification</label>
<span>{imageverification}</span></div>
<div class="clear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Register" name="undefined" type="submit">
</div>
<div class="clear"> </div>
</div>
I have created a paypal paynow button but really not sure how to get this integrated into the registration process. The code for that is below.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="******">
<table>
<tr><td><input type="hidden" name="on0" value="Directory Listing">Directory Listing</td></tr><tr><td><select name="os0">
<option value="Bands">Bands £5.00
<option value="Venues">Venues £10.00
<option value="Rehearsal">Rehearsal £1.00
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
Any clear pointers would be very much appreciated. Dave🤨 😀
Hi davec,
At the moment there are three ways to link to PayPal (Max has talked about a built-in solution in a future version).
a) is to use an OnSubmit URL to send all the form info directly to PayPal. Simple and easy but won't let you save the data or email it.
b) is to build a ReDirect URL and use that to send the info to PayPal after the form processing is complete. There's an example of that here
c) is to use the PHP Curl (or fsock) method to send the info effectively as a 'hidden form'. This is a bit more secure than (b) but a bit fiddler to implement. Search here for Curl and PayPal for examples - I think that there is a Curl plugin too.
Bob
At the moment there are three ways to link to PayPal (Max has talked about a built-in solution in a future version).
a) is to use an OnSubmit URL to send all the form info directly to PayPal. Simple and easy but won't let you save the data or email it.
b) is to build a ReDirect URL and use that to send the info to PayPal after the form processing is complete. There's an example of that here
c) is to use the PHP Curl (or fsock) method to send the info effectively as a 'hidden form'. This is a bit more secure than (b) but a bit fiddler to implement. Search here for Curl and PayPal for examples - I think that there is a Curl plugin too.
Bob
Thanks for such a quick reply.
I need to add a dropdown option for different prices taken from the following code, not sure how to achieve this as the example has a fixed cost.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="4012707">
<table>
<tr><td><input type="hidden" name="on0" value="Directory Listing">Directory Listing</td></tr><tr><td><select name="os0">
<option value="Bands">Bands £5.00
<option value="Venue">Venue £10.00
<option value="Rehearsal">Rehearsal £0.00
</select>
Dave
I need to add a dropdown option for different prices taken from the following code, not sure how to achieve this as the example has a fixed cost.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="4012707">
<table>
<tr><td><input type="hidden" name="on0" value="Directory Listing">Directory Listing</td></tr><tr><td><select name="os0">
<option value="Bands">Bands £5.00
<option value="Venue">Venue £10.00
<option value="Rehearsal">Rehearsal £0.00
</select>
Dave
Hi Dave,
A couple of options here. Probably the best is to put an array at the beginning of the OnSubmit Before box HTML
Note: you may need to format this to 2 decimal places to keep PayPal happy.
Bob
A couple of options here. Probably the best is to put an array at the beginning of the OnSubmit Before box HTML
<?php
$cost_array = array ('Bands' => 5, 'Venue' =>10, 'Rehearsal' => 0, 'None' => 0);
?>
and then look up the value of the select box in the array and apply this as the amount<?php
$event_type = JRequest::getString('os0', 'None', 'post');
$event_fee = $cost_array[$event_type];
/>
then in the url you will need something like$url. = "&amount=$event_fee";
or an equivalent if you use Curl.Note: you may need to format this to 2 decimal places to keep PayPal happy.
Bob
Hi Dave,
I have a paypal plugin which will need you to have a paypal pro account (I'm not sure about the account type name but you need an account id, password and a signature from paypal), this will work only with J1.0.x at the moment but I will make it J1.5 compatible soon, so if you have J1.0.x and have the data above then I can give this to you!
Cheers
Max
I have a paypal plugin which will need you to have a paypal pro account (I'm not sure about the account type name but you need an account id, password and a signature from paypal), this will work only with J1.0.x at the moment but I will make it J1.5 compatible soon, so if you have J1.0.x and have the data above then I can give this to you!
Cheers
Max
Thanks for that Max. I am currently using the latest version of Joomla, obviously if you have a working version for 1.5 that will be great. I have looked at doing something slightly different in the meantime and directing people after registration to a payment page which will be basic HTML.
I now have another issue though which is the missing password in the activation email. I have created another post regading that.
Dave 😀
I now have another issue though which is the missing password in the activation email. I have created another post regading that.
Dave 😀
This topic is locked and no more replies can be posted.