Skip to content

This is a simple PayPal (Standard Checkout) integration using PHP and REST API

License

Notifications You must be signed in to change notification settings

tozielinski/pp-php-ec-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple PayPal REST API example with PHP (and AJAX)

Project status: active – The project has reached a stable, usable state and is being actively developed. Project tags Project license

Usage

You have to create PayPal REST sandbox credentials and copy/move api/config/Config.php.sav to api/config/Config.php. Insert the credentials into api/config/Config.php as client_id and client_secret for the correct environment.

Attention

The approval window will not close automatically, because the return_url is missing in the payload/payment_source/experience_context! After the approval, close the tab or window manually and go back to the checkout-window.

Documentation

A running LAMP environment is necessary. Clone the git to the root folder of that installation.

git clone https://github.com/tozielinski/pp-php-ec-example.git
cd pp-php-ec-example/api/config
cp Config.php.sav Config.php

Now you must add your credentials in Config.php.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

This is a simple PayPal (Standard Checkout) integration using PHP and REST API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages