PayPal Payment – PHP Script

Overview

This is a PayPal Payment PHP class. You can easily import it into your own work.

Included the exmaple payment. Open the index.php

Features

  • Make a PayPal Payment
  • Add the multiple items
  • Sandbox or Live mode

Requirements

  • PayPal Account
  • PHP 5.3 or newer

Instructions

How to use:

1, Make the PayPal App
Make the Rest API App in: https://developer.paypal.com/

2, PayPal API configuration in settings.php
Open up settings.php and fill configuration viable with your paypal api live or sandbox cliendid and clientsecret code.

Demo:
Load the index.php, click the start payment and test with sandbox account.

Codes are well commented and you can modify as you wish and have fun.

Related