PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins
/
sf-booking
/
payment-gateway
/
MangoPay
<?php namespace MangoPay; /** * Class to management MangoPay API for pay-ins */ class ApiPayIns extends Libraries\ApiBase { /** * Create new pay-in object * @param \MangoPay\PayIn $payIn \MangoPay\PayIn object * @return \MangoPay\PayIn Object returned from API */ public function Create($payIn, $idempotencyKey = null) { $paymentKey = $this->GetPaymentKey($payIn); $executionKey = $this->GetExecutionKey($payIn); return $this->CreateObject('payins_' . $paymentKey . '-' . $executionKey . '_create', $payIn, '\MangoPay\PayIn', null, null, $idempotencyKey); } /** * Get pay-in object * @param string $payInId Pay-in identifier * @return \MangoPay\PayIn Object returned from API */ public function Get($payInId) { return $this->GetObject('payins_get', $payInId, '\MangoPay\PayIn'); } /** * Create refund for pay-in object * @param string $payInId Pay-in identifier * @param \MangoPay\Refund $refund Refund object to create * @return \MangoPay\Refund Object returned by REST API */ public function CreateRefund($payInId, $refund, $idempotencyKey = null) { return $this->CreateObject('payins_createrefunds', $refund, '\MangoPay\Refund', $payInId, null, $idempotencyKey); } /** * Retrieves a list of Refunds pertaining to a certain PayIn * @param string $payInId ID of PayIn for which to retrieve Refunds * @param \MangoPay\Pagination $pagination Pagination object * @param \MangoPay\FilterRefunds $filter Filtering object * @param \MangoPay\Sorting $sorting Sorting object * @return array List of the PayIn's Refunds */ public function GetRefunds($payInId, & $pagination = null, $filter = null, $sorting = null) { return $this->GetList('refunds_get_for_payin', $pagination, '\MangoPay\Refund', $payInId, $filter, $sorting); } private function GetPaymentKey($payIn) { if (!isset($payIn->PaymentDetails) || !is_object($payIn->PaymentDetails)) { throw new Libraries\Exception('PaymentDetails is not defined or it is not object type'); } $className = str_replace('MangoPay\\PayInPaymentDetails', '', get_class($payIn->PaymentDetails)); return strtolower($className); } private function GetExecutionKey($payIn) { if (!isset($payIn->ExecutionDetails) || !is_object($payIn->ExecutionDetails)) { throw new Libraries\Exception('ExecutionDetails is not defined or it is not object type'); } $className = str_replace('MangoPay\\PayInExecutionDetails', '', get_class($payIn->ExecutionDetails)); return strtolower($className); } /** * Retrieves a more detailed view of details concerning * the card used to process a Web payment. * @param string $payInId ID of the PayIn to retrieve card details for * @return \MangoPay\PayInWebExtendedView Object returned from API */ public function GetExtendedCardView($payInId) { return $this->GetObject('get_extended_card_view', $payInId, '\MangoPay\PayInWebExtendedView'); } }
[+]
..
[-] ApiBankingAliases.php
[edit]
[-] ClientLogoUpload.php
[edit]
[-] UboDeclarationRefusedReasonType.php
[edit]
[-] FilterDisputes.php
[edit]
[-] PayInPaymentDetailsBankWire.php
[edit]
[-] BusinessType.php
[edit]
[-] ApiCards.php
[edit]
[-] DisputeDocumentPage.php
[edit]
[-] Refund.php
[edit]
[-] Pagination.php
[edit]
[-] ApiTransfers.php
[edit]
[-] PayInExecutionDetailsExternalInstruction.php
[edit]
[-] ApiResponses.php
[edit]
[-] DocumentPageConsult.php
[edit]
[-] ApiCardRegistrations.php
[edit]
[-] PlatformCategorization.php
[edit]
[-] AVSResult.php
[edit]
[-] Event.php
[edit]
[-] ApiBankAccounts.php
[edit]
[-] PayInTemplateURLOptions.php
[edit]
[-] ApiWallets.php
[edit]
[-] ApiPayIns.php
[edit]
[-] PayOutStatus.php
[edit]
[-] Wallet.php
[edit]
[-] PayInExecutionType.php
[edit]
[-] User.php
[edit]
[-] ApiDisputeDocuments.php
[edit]
[-] PayInPaymentDetailsCard.php
[edit]
[-] Card.php
[edit]
[-] PayInExecutionDetailsWeb.php
[edit]
[-] PayInPaymentDetailsDirectDebit.php
[edit]
[-] FilterPreAuthorizations.php
[edit]
[-] PayInExecutionDetails.php
[edit]
[-] Money.php
[edit]
[-] KeyValueArray.php
[edit]
[-] Repudiation.php
[edit]
[-] ApiRefunds.php
[edit]
[-] BankAccountDetailsCA.php
[edit]
[-] PayInPaymentDetailsPaypal.php
[edit]
[-] PayOutPaymentType.php
[edit]
[-] Hook.php
[edit]
[-] NaturalUserCapacity.php
[edit]
[-] Mandate.php
[edit]
[-] CardPreAuthorizationStatus.php
[edit]
[-] ReportType.php
[edit]
[-] DeclaredUboStatus.php
[edit]
[-] ApiUboDeclarations.php
[edit]
[-] PayInPaymentDetailsPreAuthorized.php
[edit]
[-] BankAccountDetails.php
[edit]
[-] ApiReports.php
[edit]
[-] Client.php
[edit]
[-] PayOutPaymentDetails.php
[edit]
[-] ApiCardPreAuthorizations.php
[edit]
[-] ApiHooks.php
[edit]
[-] MangoPayApi.php
[edit]
[-] BankingAlias.php
[edit]
[-] Transfer.php
[edit]
[+]
Libraries
[-] Sector.php
[edit]
[+]
Psr
[-] SecurityInfo.php
[edit]
[-] ShippingAddress.php
[edit]
[-] ApiDisputes.php
[edit]
[-] Address.php
[edit]
[-] RefundReasonDetails.php
[edit]
[-] ApiMandates.php
[edit]
[-] BankingAliasIBAN.php
[edit]
[-] FilterBase.php
[edit]
[-] FundsType.php
[edit]
[-] FilterRefunds.php
[edit]
[-] EMoney.php
[edit]
[-] ReportRequest.php
[edit]
[-] DisputeReason.php
[edit]
[-] CardRegistration.php
[edit]
[-] DisputeReasonType.php
[edit]
[-] FilterReports.php
[edit]
[-] PayIn.php
[edit]
[-] FilterDisputeDocuments.php
[edit]
[-] Transaction.php
[edit]
[-] CardPreAuthorizationPaymentStatus.php
[edit]
[-] DebitedBankAccount.php
[edit]
[-] KycPage.php
[edit]
[-] DisputeStatus.php
[edit]
[-] EventType.php
[edit]
[-] Dispute.php
[edit]
[-] CardRegistrationStatus.php
[edit]
[-] PayInPaymentDetailsDirectDebitDirect.php
[edit]
[-] ApiUsers.php
[edit]
[-] DisputeDocumentType.php
[edit]
[-] PayInExecutionDetailsDirect.php
[edit]
[-] CardPreAuthorization.php
[edit]
[-] KycDocument.php
[edit]
[-] FilterTransactions.php
[edit]
[-] PayOut.php
[edit]
[-] CurrencyIso.php
[edit]
[-] BankAccountDetailsGB.php
[edit]
[-] Autoloader.php
[edit]
[-] FilterEvents.php
[edit]
[-] KycDocumentRefusedReasonType.php
[edit]
[-] LegalPersonType.php
[edit]
[-] PersonType.php
[edit]
[-] PayInWebExtendedView.php
[edit]
[-] Sorting.php
[edit]
[-] UboRefusedReasonType.php
[edit]
[-] SortDirection.php
[edit]
[-] DeclaredUbo.php
[edit]
[-] KycDocumentType.php
[edit]
[-] UboDeclaration.php
[edit]
[-] SettlementTransfer.php
[edit]
[-] ApiPayOuts.php
[edit]
[-] PayInStatus.php
[edit]
[-] CardValidity.php
[edit]
[-] PayInPaymentDetails.php
[edit]
[-] KycLevel.php
[edit]
[-] DisputeDocument.php
[edit]
[-] UboDeclarationStatus.php
[edit]
[-] ApiEvents.php
[edit]
[-] BankAccountDetailsUS.php
[edit]
[-] PayOutPaymentDetailsBankWire.php
[edit]
[-] Billing.php
[edit]
[-] autoload.php
[edit]
[-] ApiRepudiations.php
[edit]
[-] UserNatural.php
[edit]
[-] BankAccountDetailsOTHER.php
[edit]
[-] PayInPaymentType.php
[edit]
[-] BankingAliasType.php
[edit]
[-] UserLegal.php
[edit]
[-] DisputeDocumentStatus.php
[edit]
[-] FilterKycDocuments.php
[edit]
[-] DisputeType.php
[edit]
[-] ApiClients.php
[edit]
[-] Response.php
[edit]
[-] BankAccountDetailsIBAN.php
[edit]
[-] ApiKycDocuments.php
[edit]
[-] BankAccount.php
[edit]
[-] KycDocumentStatus.php
[edit]