PHP code example of dr3ads / paydock_php_sdk

1. Go to this page and download the library: Download dr3ads/paydock_php_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/ */

    

dr3ads / paydock_php_sdk example snippets

 php

Config::initialise("sandbox", "secret_key", "public_key");

$svc = new Charges();
$response = $svc->create(100, "AUD")
    ->withCreditCard("58377235377aea03343240cc", "4111111111111111", "2020", "10", "Test Name", "123")
    ->call();