1. Go to this page and download the library: Download shoperti/payme 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/ */
shoperti / payme example snippets
// Create a new PayMe instance choosing the driver
$config = [
'driver' => 'stripe',
'private_key' => 'secret_key',
'public_key' => 'public_key',
];
$payme = new Shoperti\PayMe\PayMe($config);
// or
$payme = PayMe::make($config);
// Make a charge
$response = $payme->charges()->create('100', 'tok_test', []);
if (!$response->success()) {
return ':(';
}
return 'Hurray!';
$payme = new Shoperti\PayMe\PayMeFactory();
// Make a charge
$response = $payme->make($config)->charges()->create('100', 'tok_test', []);
if (!$response->success()) {
return ':(';
}
return 'Hurray!';
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.