For programmers to need to pay by PHP using PayPal,this tested source code is useful. This class uses PayPal REST API.
Specification
ID | STCD_0000000014 |
Language | PHP |
Steps | 235 |
Purpose | Pay by PayPal |
Function | Create order Capture order Get order Refund |
Environment | Ubuntu 20.04.4 LTS PHP Version => 8.2.4 IDE : Visual Studio Code PayPal REST API |
Restriction | free license You can use source code copy as owner . You can customize and distribute it freely. |
Price | 7 dollars or 700 yen (Pay with PayPal) |
References | https://developer.paypal.com/api/rest/ |
Source Code
- PayPal Class




- PayPal restapi functions






Test Result
NO | test case | result |
01 | create order | OK |
02 | capture order | OK |
03 | get order | OK |
04 | refund | OK |
Test Code
*) Modify “path” along your PC environment.

History
2/4/2023 created
Provider Profile
Nick name is “Dead Fish” employed as an engineer in Japan.
I am grad if you need my code.
Thanks !
Download
Get download passwordFollowing files and data are zipped.
├── PayPalClass.php ├── TEST_PayPalClass.php └── paypal_restapi_functions.php
Remarks
None
Comments