You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following example code shows how to use the library to create, updated and delete payment requests (see the [NoFrixion API documentation](https://docs.nofrixion.com/reference/sandbox) for a full MoneyMoov API reference and instructions on signing up for a sandbox account).
20
+
The following example code shows how to use the library to create, update and delete payment requests (see the [NoFrixion API documentation](https://docs.nofrixion.com/reference/sandbox) for a full MoneyMoov API reference and instructions on signing up for a sandbox account).
21
21
22
22
```php
23
23
// Client for handling Payment Request API endpoints
24
24
use Nofrixion\Client\PaymentRequestClient;
25
+
25
26
// Models for creating/updating Payment Requests
26
27
use Nofrixion\Model\PaymentRequests\PaymentRequestCreate;
27
28
use Nofrixion\Model\PaymentRequests\PaymentRequestUpdate;
29
+
28
30
// Model returned by payment request client on creation/update
29
31
use Nofrixion\Model\PaymentRequests\PaymentRequest;
30
32
31
33
use Nofrixion\Util\PreciseNumber;
32
34
33
35
$apiUrl = "https://api-sandbox.nofrixion.com/";
34
-
// A merchant token is required for creating and modifying payment requests
36
+
// A merchant token can be used for creating and modifying payment requests - this MUST be securely stored.
35
37
$token = getenv("MERCHANT_TOKEN_SANDBOX");
36
38
37
39
$client = new PaymentRequestClient($apiUrl, $token);
0 commit comments