PayPal Class(PHP)

For programmers to need to pay by PHP using PayPal,this tested source code is useful. This class uses PayPal REST API.

Specification

IDSTCD_0000000014
LanguagePHP
Steps235
PurposePay by PayPal
FunctionCreate order
Capture order
Get order
Refund
EnvironmentUbuntu 20.04.4 LTS
PHP Version => 8.2.4
IDE : Visual Studio Code
PayPal REST API
Restrictionfree license
You can use source code copy as owner .
You can customize and distribute it freely.
Price7 dollars or 700 yen
(Pay with PayPal)
Referenceshttps://developer.paypal.com/api/rest/

Source Code

  • PayPal Class
  • PayPal restapi functions

Test Result

NOtest caseresult
01create orderOK
02capture orderOK
03get orderOK
04refundOK

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 password

Following files and data are zipped.

├── PayPalClass.php
├── TEST_PayPalClass.php
└── paypal_restapi_functions.php

Remarks

None

Comments

Copied title and URL