PHP code example of signativa / mundiapi
1. Go to this page and download the library: Download signativa/mundiapi 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/ */
signativa / mundiapi example snippets
$basicAuthUserName = 'basicAuthUserName'; // The username to use with basic authentication
$basicAuthPassword = 'basicAuthPassword'; // The password to use with basic authentication
$client = new MundiAPILib\MundiAPIClient($basicAuthUserName, $basicAuthPassword);
$customers = $client->getCustomers();
function createAccessToken(
$customerId,
$request,
$idempotencyKey = null)
$customerId = 'customer_id';
$request = new CreateAccessTokenRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->createAccessToken($customerId, $request, $idempotencyKey);
function updateCustomer(
$customerId,
$request,
$idempotencyKey = null)
$customerId = 'customer_id';
$request = new UpdateCustomerRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->updateCustomer($customerId, $request, $idempotencyKey);
function deleteAccessTokens($customerId)
$customerId = 'customer_id';
$result = $customers->deleteAccessTokens($customerId);
function getCustomer($customerId)
$customerId = 'customer_id';
$result = $customers->getCustomer($customerId);
function getAddresses(
$customerId,
$page = null,
$size = null)
$customerId = 'customer_id';
$page = 52;
$size = 52;
$result = $customers->getAddresses($customerId, $page, $size);
function getAccessToken(
$customerId,
$tokenId)
$customerId = 'customer_id';
$tokenId = 'token_id';
$result = $customers->getAccessToken($customerId, $tokenId);
function getAddress(
$customerId,
$addressId)
$customerId = 'customer_id';
$addressId = 'address_id';
$result = $customers->getAddress($customerId, $addressId);
function createCard(
$customerId,
$request,
$idempotencyKey = null)
$customerId = 'customer_id';
$request = new CreateCardRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->createCard($customerId, $request, $idempotencyKey);
function renewCard(
$customerId,
$cardId,
$idempotencyKey = null)
$customerId = 'customer_id';
$cardId = 'card_id';
$idempotencyKey = 'idempotency-key';
$result = $customers->renewCard($customerId, $cardId, $idempotencyKey);
function createCustomer(
$request,
$idempotencyKey = null)
$request = new CreateCustomerRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->createCustomer($request, $idempotencyKey);
function updateAddress(
$customerId,
$addressId,
$request,
$idempotencyKey = null)
$customerId = 'customer_id';
$addressId = 'address_id';
$request = new UpdateAddressRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->updateAddress($customerId, $addressId, $request, $idempotencyKey);
function getAccessTokens(
$customerId,
$page = null,
$size = null)
$customerId = 'customer_id';
$page = 52;
$size = 52;
$result = $customers->getAccessTokens($customerId, $page, $size);
function updateCustomerMetadata(
$customerId,
$request,
$idempotencyKey = null)
$customerId = 'customer_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->updateCustomerMetadata($customerId, $request, $idempotencyKey);
function deleteAddress(
$customerId,
$addressId,
$idempotencyKey = null)
$customerId = 'customer_id';
$addressId = 'address_id';
$idempotencyKey = 'idempotency-key';
$result = $customers->deleteAddress($customerId, $addressId, $idempotencyKey);
function updateCard(
$customerId,
$cardId,
$request,
$idempotencyKey = null)
$customerId = 'customer_id';
$cardId = 'card_id';
$request = new UpdateCardRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->updateCard($customerId, $cardId, $request, $idempotencyKey);
function getCards(
$customerId,
$page = null,
$size = null)
$customerId = 'customer_id';
$page = 52;
$size = 52;
$result = $customers->getCards($customerId, $page, $size);
function deleteCard(
$customerId,
$cardId,
$idempotencyKey = null)
$customerId = 'customer_id';
$cardId = 'card_id';
$idempotencyKey = 'idempotency-key';
$result = $customers->deleteCard($customerId, $cardId, $idempotencyKey);
function getCustomers(
$name = null,
$document = null,
$page = 1,
$size = 10,
$email = null,
$code = null)
$name = 'name';
$document = 'document';
$page = 1;
$size = 10;
$email = 'email';
$code = 'Code';
$result = $customers->getCustomers($name, $document, $page, $size, $email, $code);
function deleteAccessToken(
$customerId,
$tokenId,
$idempotencyKey = null)
$customerId = 'customer_id';
$tokenId = 'token_id';
$idempotencyKey = 'idempotency-key';
$result = $customers->deleteAccessToken($customerId, $tokenId, $idempotencyKey);
function createAddress(
$customerId,
$request,
$idempotencyKey = null)
$customerId = 'customer_id';
$request = new CreateAddressRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->createAddress($customerId, $request, $idempotencyKey);
function getCard(
$customerId,
$cardId)
$customerId = 'customer_id';
$cardId = 'card_id';
$result = $customers->getCard($customerId, $cardId);
$charges = $client->getCharges();
function getCharge($chargeId)
$chargeId = 'charge_id';
$result = $charges->getCharge($chargeId);
function confirmPayment(
$chargeId,
$request = null,
$idempotencyKey = null)
$chargeId = 'charge_id';
$request = new CreateConfirmPaymentRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->confirmPayment($chargeId, $request, $idempotencyKey);
function updateChargeCard(
$chargeId,
$request,
$idempotencyKey = null)
$chargeId = 'charge_id';
$request = new UpdateChargeCardRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->updateChargeCard($chargeId, $request, $idempotencyKey);
function getCharges(
$page = null,
$size = null,
$code = null,
$status = null,
$paymentMethod = null,
$customerId = null,
$orderId = null,
$createdSince = null,
$createdUntil = null)
$page = 52;
$size = 52;
$code = 'code';
$status = 'status';
$paymentMethod = 'payment_method';
$customerId = 'customer_id';
$orderId = 'order_id';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $charges->getCharges($page, $size, $code, $status, $paymentMethod, $customerId, $orderId, $createdSince, $createdUntil);
function cancelCharge(
$chargeId,
$request = null,
$idempotencyKey = null)
$chargeId = 'charge_id';
$request = new CreateCancelChargeRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->cancelCharge($chargeId, $request, $idempotencyKey);
function retryCharge(
$chargeId,
$idempotencyKey = null)
$chargeId = 'charge_id';
$idempotencyKey = 'idempotency-key';
$result = $charges->retryCharge($chargeId, $idempotencyKey);
function updateChargePaymentMethod(
$chargeId,
$request,
$idempotencyKey = null)
$chargeId = 'charge_id';
$request = new UpdateChargePaymentMethodRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->updateChargePaymentMethod($chargeId, $request, $idempotencyKey);
function updateChargeMetadata(
$chargeId,
$request,
$idempotencyKey = null)
$chargeId = 'charge_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->updateChargeMetadata($chargeId, $request, $idempotencyKey);
function captureCharge(
$chargeId,
$request = null,
$idempotencyKey = null)
$chargeId = 'charge_id';
$request = new CreateCaptureChargeRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->captureCharge($chargeId, $request, $idempotencyKey);
function updateChargeDueDate(
$chargeId,
$request,
$idempotencyKey = null)
$chargeId = 'charge_id';
$request = new UpdateChargeDueDateRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->updateChargeDueDate($chargeId, $request, $idempotencyKey);
function createCharge(
$request,
$idempotencyKey = null)
$request = new CreateChargeRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->createCharge($request, $idempotencyKey);
function getChargeTransactions(
$chargeId,
$page = null,
$size = null)
$chargeId = 'charge_id';
$page = 52;
$size = 52;
$result = $charges->getChargeTransactions($chargeId, $page, $size);
function getChargesSummary(
$status,
$createdSince = null,
$createdUntil = null)
$status = 'status';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $charges->getChargesSummary($status, $createdSince, $createdUntil);
$recipients = $client->getRecipients();
function updateRecipientMetadata(
$recipientId,
$request,
$idempotencyKey = null)
$recipientId = 'recipient_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateRecipientMetadata($recipientId, $request, $idempotencyKey);
function updateRecipientTransferSettings(
$recipientId,
$request,
$idempotencyKey = null)
$recipientId = 'recipient_id';
$request = new UpdateTransferSettingsRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateRecipientTransferSettings($recipientId, $request, $idempotencyKey);
function getAnticipation(
$recipientId,
$anticipationId)
$recipientId = 'recipient_id';
$anticipationId = 'anticipation_id';
$result = $recipients->getAnticipation($recipientId, $anticipationId);
function getRecipients(
$page = null,
$size = null)
$page = 144;
$size = 144;
$result = $recipients->getRecipients($page, $size);
function getBalance($recipientId)
$recipientId = 'recipient_id';
$result = $recipients->getBalance($recipientId);
function getAnticipations(
$recipientId,
$page = null,
$size = null,
$status = null,
$timeframe = null,
$paymentDateSince = null,
$paymentDateUntil = null,
$createdSince = null,
$createdUntil = null)
$recipientId = 'recipient_id';
$page = 144;
$size = 144;
$status = 'status';
$timeframe = 'timeframe';
$paymentDateSince = date("D M d, Y G:i");
$paymentDateUntil = date("D M d, Y G:i");
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $recipients->getAnticipations($recipientId, $page, $size, $status, $timeframe, $paymentDateSince, $paymentDateUntil, $createdSince, $createdUntil);
function createAnticipation(
$recipientId,
$request,
$idempotencyKey = null)
$recipientId = 'recipient_id';
$request = new CreateAnticipationRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->createAnticipation($recipientId, $request, $idempotencyKey);
function updateRecipientDefaultBankAccount(
$recipientId,
$request,
$idempotencyKey = null)
$recipientId = 'recipient_id';
$request = new UpdateRecipientBankAccountRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateRecipientDefaultBankAccount($recipientId, $request, $idempotencyKey);
function getRecipient($recipientId)
$recipientId = 'recipient_id';
$result = $recipients->getRecipient($recipientId);
function getTransfer(
$recipientId,
$transferId)
$recipientId = 'recipient_id';
$transferId = 'transfer_id';
$result = $recipients->getTransfer($recipientId, $transferId);
function getTransfers(
$recipientId,
$page = null,
$size = null,
$status = null,
$createdSince = null,
$createdUntil = null)
$recipientId = 'recipient_id';
$page = 144;
$size = 144;
$status = 'status';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $recipients->getTransfers($recipientId, $page, $size, $status, $createdSince, $createdUntil);
function updateRecipient(
$recipientId,
$request,
$idempotencyKey = null)
$recipientId = 'recipient_id';
$request = new UpdateRecipientRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateRecipient($recipientId, $request, $idempotencyKey);
function createRecipient(
$request,
$idempotencyKey = null)
$request = new CreateRecipientRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->createRecipient($request, $idempotencyKey);
autoload.php