PayPal: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[file:PayPal.jpg]]
[[file:PayPal.jpg]]


'''Description'''
== Description ==


The PayPal control allows you to collect money from PayPal for sales, subscriptions and donations. PayPal is available in many countries. It’s much easier to set up and use than a credit card.
The PayPal control allows you to collect money from PayPal for sales, subscriptions and donations. PayPal is available in many countries. It’s much easier to set up and use than a credit card.
Line 14: Line 14:




'''Properties'''
== Properties ==


{| class = "wikitable"
{| class = "wikitable"
Line 25: Line 25:
|}
|}


'''Events'''
== Events ==


Standard [[events]] are supported.
Standard [[events]] are supported.


'''Example'''
== Example ==


<pre>
<pre>
Line 35: Line 35:
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 41: Line 41:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[adsense|ADSENSE]]
[[adsense|AdSense]]
 
[[Category:Language Reference]]

Revision as of 16:49, 17 August 2012

Description

The PayPal control allows you to collect money from PayPal for sales, subscriptions and donations. PayPal is available in many countries. It’s much easier to set up and use than a credit card.

First, set yourself up as a PayPal Merchant. Assuming you already have a PayPal account, go to the Merchant Services tab on the main screen. On the left, you will see a tab called “Website Payments Standard”. Click on that and follow the instructions.

Once you are set up as a merchant, you will need to set up your product. The easiest way to do that is on the Merchant Services page: Choose the “Buy Now button” option. Enter a number of fields, including item name, item ID (a reference number for your own use), price, currency (21 choices!), shipping and tax info. Once complete, click on ‘Create Button’.

It will go to a new page, showing the code for the button. You’re interested in the string just after “value=”. In this case, it is “ZB9QQKBKK7XYE”. Copy into hostedButtonID in the control’s properties.


Properties

hostedButtonID The ID number assigned by PayPal.
TransactionType Buy, Donate, Subscribe or Unsubscribe. Kind of PayPal transaction. Determines which icon appears.
addField(field,value) Additional fields to send to PayPal. Both are strings Examples of fields are “item_name”, “item_number”,”custom”, where "custom" is a valid PayPal user defined field that is ultimately passed to the Instant Payment Notification server script.

Events

Standard events are supported.

Example

PayPal1.addField("custom","my custom string")

Output

(the PayPal payment screen appears)

Related Items

AdSense