PHP code example of haitv282 / simplifycommerce-sdk-php
1. Go to this page and download the library: Download haitv282/simplifycommerce-sdk-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/ */
haitv282 / simplifycommerce-sdk-php example snippets
Simplify::$publicKey = 'YOUR_PUBLIC_API_KEY';
Simplify::$privateKey = 'YOUR_PRIVATE_API_KEY';
$payment = Simplify_Payment::createPayment(array(
"card" => array(
"number" => "5555555555554444",
"expMonth" => 11,
"expYear" => 15,
"cvc" => "123"
),
'amount' => '1000',
'description' => 'prod description',
'currency' => 'USD'
));
print_r($payment);