Skip to content

Commit b1aff46

Browse files
author
CryptAPI
committed
readme improvements
1 parent ee07dfc commit b1aff46

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ composer require cryptapi/php-cryptapi
2828
<?php
2929
require 'vendor/autoload.php'; // Where your vendor directory is
3030

31-
use CryptAPI\CryptAPI;
32-
33-
$ca = new Cryptapi($coin, $my_address, $callback_url, $parameters, $pending);
31+
$ca = new CryptAPI\CryptAPI($coin, $my_address, $callback_url, $parameters, $pending);
3432
$payment_address = $ca->get_address();
3533
```
3634

@@ -58,9 +56,7 @@ The URL you provided earlier will be called when a user pays, for easier process
5856

5957
require 'vendor/autoload.php'; // Where your vendor directory is
6058

61-
use CryptAPI\CryptAPI;
62-
63-
$payment_data = Cryptapi::process_callback($_GET, $convert);
59+
$payment_data = CryptAPI\CryptAPI::process_callback($_GET, $convert);
6460
```
6561

6662
Where:
@@ -103,9 +99,7 @@ From here you just need to check if the value matches your order's value.
10399

104100
require 'vendor/autoload.php'; // Where your vendor directory is
105101

106-
use CryptAPI\CryptAPI;
107-
108-
$ca = new Cryptapi($coin, $my_address, $callback_url, $parameters);
102+
$ca = new CryptAPI\CryptAPI($coin, $my_address, $callback_url, $parameters);
109103
$data = $ca->check_logs();
110104
```
111105

0 commit comments

Comments
 (0)