1. Go to this page and download the library: Download juliocapuano/pay-simple-sdk 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/ */
juliocapuano / pay-simple-sdk example snippets
$user_id ='<< PaySimple User ID >>';
$api_key ='<< PaySimple API Key >>';
$is_sanbox = true; // sanbox API for testing (optional)
$paysimple = new PaySimple\V4\PaySimple($user_id, $api_key,[$is_sanbox]);
// instance
$paysimple = new PaySimple\V4\PaySimple($user_id, $api_key,[$is_sanbox]);
// primary methods for specific instances
$customerServiceInstance = $paysimple->customers();
$accountServiceInstance = $paysimple->accounts();
$paymentServiceInstance = $paysimple->payments();
$merchantServiceInstance = $paysimple->merchant();
$recurrentPaymentServiceInstance = $paysimple->recurrentPayments();
// creating customer instance
$customer_data =[...]; // array data
$new_customer = $paysimple->customers()->new($customer_data);
// or
$new_customer = $customerServiceInstance->new($customer_data);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.