ApiPayIns
class ApiPayIns extends ApiBase (View source)
Class to management MangoPay API for pay-ins
Properties
protected MangoPayApi | $_root | Root/parent instance that holds the OAuthToken and Configuration instance |
from ApiBase |
Methods
Constructor Root/parent instance that holds the OAuthToken and Configuration instance
Create object in API
Get entity object from API
Get lst with entities object from API
Save object in API
Executes a POST request
Cast response object to entity object
Create refund for pay-in object
Create a recurring payment
Get recurring payment
Update recurring payment
Create a Recurring PayIn CIT
Create a Recurring PayIn MIT
Retrieves a list of Refunds pertaining to a certain PayIn
Retrieves a more detailed view of details concerning the card used to process a Web payment.
Create Card PreAuthorized Deposit PayIn
Look up metadata from BIN or Google Pay token
Details
protected mixed
getLogger()
No description
__construct(MangoPayApi $root)
Constructor Root/parent instance that holds the OAuthToken and Configuration instance
protected string
GetRequestUrl(string $key)
Get URL for REST Mango Pay API
protected RequestType
GetRequestType(string $key)
Get request type for REST Mango Pay API
protected object
CreateObject(string $methodKey, object $entity, object $responseClassName = null, string $entityId = null, $subEntityId = null, $idempotencyKey = null)
Create object in API
protected object
GetObject(string $methodKey, object $responseClassName, $firstEntityId = null, $secondEntityId = null, $thirdEntityId = null, $clientIdRequired = true)
Get entity object from API
protected object[]
GetList(string $methodKey, Pagination $pagination, object $responseClassName = null, string $entityId = null, object $filter = null, Sorting $sorting = null, $secondEntityId = null, $clientIdRequired = true)
Get lst with entities object from API
protected object
SaveObject(string $methodKey, object $entity, object $responseClassName = null, $secondEntityId = null, $thirdEntityId = null)
Save object in API
protected object
ExecutePostRequest($methodKey, $entity, $responseClassName, $entityId = null)
Executes a POST request
protected Error
CastResponseToError(object $response)
Cast response object to an error object
protected
CastResponseToEntity(object $response, string $entityClassName, $asDependentObject = false)
Cast response object to entity object
protected array
BuildRequestData(object $entity)
Get array with request data
protected
GetObjectForIdempotencyUrl($url)
No description
PayIn
Get(string $payInId)
Get pay-in object
Refund
CreateRefund(string $payInId, Refund $refund, $idempotencyKey = null)
Create refund for pay-in object
PayInRecurringRegistrationRequestResponse
CreateRecurringRegistration(PayInRecurringRegistration $recurringRegistration, $idempotencyKey = null)
Create a recurring payment
PayInRecurringRegistrationGet
GetRecurringRegistration(string $recurringRegistrationId, $idempotencyKey = null)
Get recurring payment
PayInRecurringRegistrationGet
UpdateRecurringRegistration(PayInRecurringRegistrationUpdate $recurringUpdate, $idempotencyKey = null)
Update recurring payment
PayInRecurring
CreateRecurringPayInRegistrationCIT(RecurringPayInCIT $recurringPayInRegistrationCIT, $idempotencyKey = null)
Create a Recurring PayIn CIT
PayInRecurring
CreateRecurringPayInRegistrationMIT(RecurringPayInMIT $recurringPayInRegistrationMIT, $idempotencyKey = null)
Create a Recurring PayIn MIT
Refund[]
GetRefunds(string $payInId, Pagination $pagination = null, FilterRefunds $filter = null, Sorting $sorting = null)
Retrieves a list of Refunds pertaining to a certain PayIn
PayInWebExtendedView
GetExtendedCardView(string $payInId)
Retrieves a more detailed view of details concerning the card used to process a Web payment.
PayIn
CreateCardPreAuthorizedDepositPayIn(CreateCardPreAuthorizedDepositPayIn $payIn)
Create Card PreAuthorized Deposit PayIn
PayIn
CreateGooglePay(PayIn $payIn, $idempotencyKey = null)
Create new GooglePay Direct pay-in object
PaymentMethodMetadata
GetPaymentMethodMetadata(PaymentMethodMetadata $paymentMethodMetadata, $idempotencyKey = null)
Look up metadata from BIN or Google Pay token
AddPayPalTrackingInformation($payId, PayPalWebTracking $palWebTracking)
No description