Quote:
Originally Posted by Hex_legend
Just a suggestion / thought, not sure how well it would work.
How about having a profile field in the User CP for the paypal button and editing postbit / postbit_legacy template to include the profile field ID if its filled in.
That will then put the paypal button on a users postbit that has the paypal field filled out.
Just an idea.
|
Thanks for that but this is a specific thread based need rather one for a user to use all the time...we have the donate button in our footer on each page and it works no problem - just when it's inside a post itself the security token error happens.
Quote:
Originally Posted by FRDS
i dont see what the paypal code would have to do with security token mismatch error but maybe you'll have to add
Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
some where in the paypal code then, as i think thats the only solution
|
Thanks - I'll try that. I'll report back success or failure.
--------------- Added [DATE]1223925323[/DATE] at [TIME]1223925323[/TIME] ---------------
Quote:
Originally Posted by FRDS
i dont see what the paypal code would have to do with security token mismatch error but maybe you'll have to add
Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
some where in the paypal code then, as i think thats the only solution
|
No unfortunately that didn't work. Same problem.
Quote:
Your submission could not be processed because a security token was invalid.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
|
This is the source code - maybe someone can see an inbuilt reason why this would happen inside a post:
Quote:
<center>
<p></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="Paypal">
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="XXXXXXX">
<input type="hidden" name="item_name" value="XXXX Donation Welcome!">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_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_US/i/scr/pixel.gif" width="1" height="1">
</form>
<p></p>
</center>
|
note the extra code you suggested inserting is there.