PayMitto Transfer Response
Overview
The PayMittoTransferResponse interface defines the structure of a successful transfer response. This response should be returned by your verifyFundsAndCreateTransfer callback after successfully processing a transfer request.
Definition
export interface PayMittoTransferResponse {
transferId: string;
}Properties
| Property | Type | Required | Description |
|---|---|---|---|
| transferId | string | Yes | The unique identifier for the created transfer. This ID can be used to track and reference the transfer in subsequent operations. |
Sample Usage
import type {
PayMittoTransferRequest,
PayMittoTransferResponse
} from 'react-native-paymitto-sdk';
const verifyFundsAndCreateTransfer = async (
request: PayMittoTransferRequest
): Promise<PayMittoTransferResponse> => {
const response = await fetch('https://your-api.com/transfers', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(request),
});
const data = await response.json();
return {
transferId: data.id,
};
};Example Response
{
"transferId": "TXN-2026-0204-ABC123"
}Related
- Verify Funds and Create Transfer - Callback that returns this response
- PayMittoTransferRequest - The request structure sent to your callback
- PayMittoError - Error response structure when transfer fails
