PHP code example of code-wallet / client
1. Go to this page and download the library: Download code-wallet/client 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/ */
code-wallet / client example snippets
odeWallet\Client\PaymentIntents;
$testData = [
'destination' => "E8otxw1CVX9bfyddKu3ZB3BVLa4VVF9J7CTPdnUwT9jR",
'amount' => 0.05,
'currency' => 'usd',
];
// Create a payment request intent
$response = PaymentIntents::create($testData);
// After some time, you can verify the status of the intent
$status = PaymentIntents::getStatus($response['id']);
echo $status;