PHP code example of paypro / paypro-php
1. Go to this page and download the library: Download paypro/paypro-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
paypro / paypro-php example snippets
$paypro = new \PayPro\Client('pp_...');
# Creating a payment
$payment = $paypro->payments->create(['amount' => 500, 'currency' => 'EUR', 'description' => 'Test Payment']);
# Retrieving all subscriptions
$subscriptions = $paypro->subscriptions->list();
# Retrieving a single customer
$customer = $paypro->customers->get('CUSSDGDCJVZH5K');
$paypro = new \PayPro\Client(['api_url' => 'https://api-test.paypro.nl', 'api_key' => 'pp_...']);
sh
./vendor/bin/php-cs-fixer fix -v .