Skip to Content Skip to Menu

Developer for CBsubs? Professional? or Other? for future sales

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
9 years 10 months ago #257403 by krileon
PayPal donation buttons don't require anything unique except an email address that will be receiving the payment. You could use an email field for them to supply their PayPal email address then just substitute that email address into a Custom HTML field where you've supplied the HTML for the donate button. Example as follows.

Code:
[cb:if cb_paypalemail!=""] <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_donations"> <input type="hidden" name="business" value="[cb_paypalemail]"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="no_note" value="0"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> [/cb:if]

With the field cb_paypalemail being the PayPal email address it'll first check that the field isn't empty and if it isn't it'll add it as the business in the form so it can be submitted as part of the button. The button HTML is just generic PayPal donate button generated at PayPal so you can customize it however you like.

All of the above just requires core CB 2.x. So I recommend simply trying it out and seeing if it fits your need. The only cost being time.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: Magic2014

Please Log in or Create an account to join the conversation.

  • Magic2014
  • Magic2014
  • OFFLINE
  • Posts: 61
  • Thanks: 9
  • Karma: 2
9 years 10 months ago #257411 by Magic2014
Thanks for getting back Kyle,

We've pretty much got it wrapped up. Wasn't so sure how well PP would integrate into CB, but I guess it does just fine.

Thanks for the info, though.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum