Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 154

Skyr0s
Code is Art
Profile
Posts: 196
Reg: Jan 26, 2012
Hong Kong
4,310
03/10/12 04:19 AM (13 years ago)

In-app payments

Hello again everyone. I know that many of you submit your apps for free, or for non-profitable organizations, but hope for a little tip from users once in a while. This is very easy to do. If you are using a PayPal account to receive donations, just add the sample code below (Note that you can only add this for HTML files, and that the code must be added in the Source): <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_donations"> <input type="hidden" name="business" value="ADD YOUR EMAIL HERE!"> <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> Make sure you change the email on the third line. If you want to create your own button, just go to this URL: https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=MZa4FzLk7ED8d6poH9UWBHMi2-cwrUb08KtDXQJlYCUA5_COBOCFQF_jkDu&dispatch=5885d80a13c0db1f8e263663d3faee8dcbcd55a50598f04d927139403713ca13
 
Dana T
Aspiring developer
Profile
Posts: 63
Reg: Feb 19, 2012
USA
4,230
like
03/10/12 05:37 AM (13 years ago)
This is pretty cool...where exactly do we copy and paste this code?? can you tell I'm not into this coding business...but copying and pasting is easy enough :)
 
Skyr0s
Code is Art
Profile
Posts: 196
Reg: Jan 26, 2012
Hong Kong
4,310
like
03/10/12 05:44 AM (13 years ago)
Lets say you have a Custom HTML, Plain Text Page. Look in the toolbar for the Source Button. This will put you in HTML Editing. If you do not know HTML, then I will quickly explain: Everything in HTML is contained within tags, that look like this: <p>Add your content here </p> Each type of display has his own type of tag. For instance, <p> </p> corresponds to a paragraph. <h1> </h1> corresponds to a big title. The "/" marks the end of the tag. So, now that you have your source, try and identify each element of your page. In between each tag, you have custom text. Lets say you want your Donate button to be under the Title and above the following text. You will therefore look for the tag that "contains"" the title, and paste that code after the </xxx> tag. Good Luck !
 
Skyr0s
Code is Art
Profile
Posts: 196
Reg: Jan 26, 2012
Hong Kong
4,310
like
03/10/12 05:46 AM (13 years ago)
Here is a concrete example of one of my files with the Donate button (raw HTML): <p> <title></title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <meta content="width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=1;" name="viewport" /> <style type="text/css"> html{background-color:transparent;height:100%;width:100%;} body{background-color:transparent;font-size:11pt;font-family:helvetica;} img{border:0px;} </style></p> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <p> Please consider donating, to help us write more, and keep the app up to date.</p> <p> The money raised will go to the purchase of a domain for our team. </p> <p> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_donations"> <input type="hidden" name="business" value="ADD YOUR EMAIL HERE!"> <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> </p> <p> There is no target, please donate willingly.</p> I hope you understand more clearly :D
 
Dana T
Aspiring developer
Profile
Posts: 63
Reg: Feb 19, 2012
USA
4,230
like
03/10/12 05:47 AM (13 years ago)
Food for thought...I'll do some trial and error and see what I can come up with...thanks!
 
Trendz85
Aspiring developer
Profile
Posts: 122
Reg: Feb 28, 2012
Manchester
1,220
like
03/10/12 06:12 AM (13 years ago)
thats a prety awesome idea there and thanks for the simple input method of just C & P the code
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
03/10/12 06:40 AM (13 years ago)
Something to remember, Apple will not let you drop in a Paypal button.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.