PHP code example of nofrixion / moneymoov-php

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

    

nofrixion / moneymoov-php example snippets


// Client for handling Payment Request API endpoints
use Nofrixion\Client\PaymentRequestClient;

// Models for creating/updating Payment Requests
use Nofrixion\Model\PaymentRequests\PaymentRequestCreate;
use Nofrixion\Model\PaymentRequests\PaymentRequestUpdate;

// Model returned by payment request client on creation/update
use Nofrixion\Model\PaymentRequests\PaymentRequest;

use Nofrixion\Util\PreciseNumber;

$apiUrl = "https://api-sandbox.nofrixion.com/";
// A merchant token can be used for creating and modifying payment requests - this MUST be securely stored.
$token = getenv("MERCHANT_TOKEN_SANDBOX");

$client = new PaymentRequestClient($apiUrl, $token);

// Creating a Payment request (payment amount is tRequest($result->id, $update);


// DELETING a payment request
$deleted = $client->deletePaymentRequest($result->id);
bash
composer