ApiPayIns class provides methods to create and manage pay-in transactions, which represent funds being paid into a wallet.
Methods
Create
Create a new pay-in object.The PayIn object to create. Must have
PaymentDetails and ExecutionDetails set.Optional idempotency key for safe retries
\MangoPay\PayIn - The created PayIn object
Example:
Get
Get a pay-in object by ID.The unique identifier of the pay-in
\MangoPay\PayIn - The PayIn object
Example:
CreateRefund
Create a refund for a pay-in transaction.The ID of the pay-in to refund
The Refund object to create
Optional idempotency key for safe retries
\MangoPay\Refund - The created Refund object
Example:
GetRefunds
Retrieve a list of refunds for a pay-in.The ID of the pay-in
Pagination object (passed by reference)
Filtering options
Sorting options
\MangoPay\Refund[] - Array of Refund objects
Example:
GetExtendedCardView
Retrieve detailed card information for a web payment.The ID of the pay-in
\MangoPay\PayInWebExtendedView - Extended card details
Example:
CreatePayPal
Create a PayPal web pay-in.PayIn object configured for PayPal
Optional idempotency key
\MangoPay\PayIn
Example:
CreateGooglePay
Create a Google Pay direct pay-in.PayIn object configured for Google Pay
Optional idempotency key
\MangoPay\PayIn
Example:
CreateRecurringRegistration
Create a recurring payment registration.The recurring registration object
Optional idempotency key
\MangoPay\PayInRecurringRegistrationRequestResponse
GetRecurringRegistration
Get a recurring payment registration.The ID of the recurring registration
Optional idempotency key
\MangoPay\PayInRecurringRegistrationGet
UpdateRecurringRegistration
Update a recurring payment registration.The update object with registration ID
Optional idempotency key
\MangoPay\PayInRecurringRegistrationGet
GetPaymentMethodMetadata
Look up metadata from BIN or Google Pay token.Payment method metadata object
Optional idempotency key
\MangoPay\PaymentMethodMetadata
PayIn Entity
ThePayIn entity represents a pay-in transaction.
Properties
The unique identifier of the pay-in
Unix timestamp of when the pay-in was created
Custom data for your use
The user ID of the author
The user ID whose wallet is credited
The ID of the wallet to credit
The amount debited from the payment source
The amount credited to the wallet (DebitedFunds - Fees)
The fees taken from the transaction
The status of the transaction:
CREATED, SUCCEEDED, FAILEDThe result code of the transaction
The result message explaining the result code
Unix timestamp of when the transaction was executed
The transaction type:
PAYINThe transaction nature:
REGULAR, REFUND, REPUDIATIONThe payment type:
CARD, BANK_WIRE, DIRECT_DEBIT, PAYPAL, PAYCONIQ, GOOGLEPAY, etc.Payment-specific details object (type depends on PaymentType)
How the pay-in is executed:
WEB, TOKEN, DIRECT, PREAUTHORIZED, RECURRING_ORDER_EXECUTIONExecution-specific details object (type depends on ExecutionType)
The ID of the recurring payment registration
The payment category:
ECommerce (default), TelephoneOrderReference for fraud prevention profiling session
3DS authentication result for card transactions