UNPKG

mercadopago

Version:
17 lines (16 loc) 672 B
/** * Implementation of the create-payment-intent operation for Point devices. * * Sends a `POST /point/integration-api/devices/{device_id}/payment-intents` * request to instruct the terminal to begin a new payment flow. * * @module point/createPaymentIntent */ import type { PointCreatePaymentIntentClient } from './types'; import type { PaymentIntentResponse } from '../commonTypes'; /** * Create a payment intent on the specified Point device. * * @returns The newly created payment intent with its current state. */ export default function createPaymentIntent({ device_id, request, config }: PointCreatePaymentIntentClient): Promise<PaymentIntentResponse>;