PHP code example of loevgaard / dandomain-pay-php-sdk

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

    

loevgaard / dandomain-pay-php-sdk example snippets



use Loevgaard\Dandomain\Pay\Model\Payment;

/**
* The $request need to implement the PSR7 ServerRequestInterface
 * 
 * @var \Psr\Http\Message\ServerRequestInterface $request
 */
$payment = Payment::createFromRequest($request);
bash
$ composer