PHP code example of dojo-engineering / dojo-php
1. Go to this page and download the library: Download dojo-engineering/dojo-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/ */
dojo-engineering / dojo-php example snippets
use Dojo_PHP\ApiFactory;
$apiKey = "YOUR_API_KEY";
$apiPaymentIntent = ApiFactory::createPaymentIntentApi($apiKey);
$req = new CreatePaymentIntentRequest();
$req->setReference("test");
$money = new Money();
$money->setValue(100);
$money->setCurrencyCode("GBP");
$req->setAmount($money);
$pi = $apiPaymentIntent->paymentIntentsCreatePaymentIntent(\Dojo_PHP\API_VERSION, $req);