PHP code example of elgigi / lyra-payments
1. Go to this page and download the library: Download elgigi/lyra-payments 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/ */
elgigi / lyra-payments example snippets
array|null getPaymentUuid(LegacyTransactionKey $legacyTransactionKeyRequest)
array|null createPayment(?ThreeDS $threeDSRequest, Payment $paymentRequest, Order $orderRequest, Card $cardRequest, ?Customer $customerRequest, ?Tech $techRequest, ?ShoppingCart $shoppingCartRequest)
array|null updatePayment(Query $queryRequest, Payment $paymentRequest)
array|null updatePaymentDetails(Query $queryRequest, ShoppingCart $shoppingCartRequest)
array|null cancelPayment(Query $queryRequest)
array|null findPayments(Query $queryRequest)
array|null refundPayment(Payment $paymentRequest, Query $queryRequest)
array|null duplicatePayment(Payment $paymentRequest, Query $queryRequest, Order $orderRequest)
array|null validatePayment(Query $queryRequest)
array|null capturePayment(Settlement $settlementRequest)
array|null getPaymentDetails(Query $queryRequest, ?ExtendedResponse $extendedResponseRequest)
array|null verifyThreeDSEnrollment(Payment $paymentRequest, Card $cardRequest, ?Tech $techRequest, ?ThreeDS $threeDSRequest)
array|null checkThreeDSAuthentication(ThreeDS $threeDSRequest)
array|null createToken(Card $cardRequest, Customer $customerRequest)
array|null createTokenFromTransaction(Query $queryRequest, ?Card $cardRequest)
array|null updateToken(Query $queryRequest, ?Card $cardRequest, ?Customer $customerRequest)
array|null getTokenDetails(Query $queryRequest)
array|null cancelToken(Query $queryRequest)
array|null reactivateToken(Query $queryRequest)
array|null createSubscription(Order $orderRequest, Subscription $subscriptionRequest, Card $cardRequest)
array|null updateSubscription(Query $queryRequest, Subscription $subscriptionRequest, ?Payment $paymentRequest)
array|null getSubscriptionDetails(Query $queryRequest)
array|null cancelSubscription(Query $queryRequest)