PHP Classes

Go PayPal: Generate HTML for Paypal payment buttons and forms

Recommend this page to a friend!
  Info   View files Example   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 76%Total: 2,495 All time: 1,539 This week: 283Up
Version License PHP version Categories
go-paypal 1.0MIT/X Consortium ...5.0HTML, PHP 5, E-Commerce
Description Author

This class can generate HTML for Paypal buttons and forms.

It can set a list of parameters for the payments and generates HTML to embed in pages several types of buttons and forms to redirect the user to perform the specified payments in the Paypal site.

Currently it can generate buy now buttons, donate buttons, buy gift certificate buttons, buy subscription buttons, add a product to a shopping cart and display the cart and upload a multiple products to buy from a third party shopping cart.


Integrate Paypal in a Web site
How to integrate paypal in my Web site

Paypal Express Checkout
Integrate Paypal in own web site

Picture of Sithu Kyaw
Name: Sithu Kyaw <contact>
Classes: 2 packages by
Country: Myanmar Myanmar
Age: 38
All time rank: 11932 in Myanmar Myanmar
Week rank: 845 Up4 in Myanmar Myanmar Down

GoPayPal Class
PHP PayPal Payment API Helper
Version 	: 1.0
Developer 	: Sithu
(1) Generate HTML Forms for Paypal AI, including Buy now, Donations, Subscriptions, Shopping carts and Gift certificates. 
 	Please look at Example folder or examples.
(2) Process Paypal payments and return transactions from PayPal so you can do all processing.

Supported PayPal API
1. Buy Now
2. Subscriptions
3. Donations
4. Buy Gift Certificates
4. Add To Cart
6. Single Item with PayPal Shopping Cart
7. Multiple Items with Third Party Shopping Cart

Pre-defined constants for all API types
These following constants are needed to use when creating GoPayPal class instant

BUY_NOW				# Buy Now button implementation
ADD_TO_CART			# Add To Cart button implementation
PAYPAY_CART			# Indivitual items with PayPal shopping cart implementation
THIRD_PARTY_CART	# Third-party shopping cart implementation with multiple items
DONATE				# Donate button implementation
GIFT_CERTIFICATE	# Buy Gift Certivicate button implementation
SUBSCRIBE			# Subscribe button implementation

Read the documentation for HTML variables

See more details for usage examples in Example/ Folder
  Files folder image Files  
File Role Description
Files folder imageExample (8 files)
Plain text file GoPayPal.class.php Class GoPayPal Class
Accessible without login HTML file HTML-Variables-for...yments-Standard.htm Doc. PayPal API Variables Documentation
Accessible without login Plain text file README.txt Doc. Read this before use the class

  Files folder image Files  /  Example  
File Role Description
  Accessible without login Plain text file buynow.php Example Buy Now Example
  Accessible without login Plain text file donation.php Example Donation Example
  Accessible without login Plain text file gift_certificate.php Example Buy Gift Certificate Example
  Accessible without login Plain text file index.php Example Example
  Accessible without login Plain text file individual_paypalcart.php Example Single Item Example
  Accessible without login Plain text file payment_complete.php Example Payment Complete Example
  Accessible without login Plain text file subscribe.php Example Subscription Example
  Accessible without login Plain text file thirdpartycart.php Example Third Party Shopping Cart Example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,539
This week:283Up
User Ratings User Comments (3)
 All time
Pretty good class, straightforward way and examples to integr...
8 years ago (kanuj bhatnagar)
I actually use this class.
9 years ago (Assontia Patient)
10 years ago (George Pasparakis)
For more information send a message to info at phpclasses dot org.