mercadopago
Version:
Mercadopago SDK for Node.js
17 lines (16 loc) • 706 B
TypeScript
/**
* Implementation of the cancel-payment-intent operation for Point devices.
*
* Sends a `DELETE /point/integration-api/devices/{device_id}/payment-intents/{id}`
* request to abort a pending payment intent on the terminal.
*
* @module point/cancelPaymentIntent
*/
import type { CancelPaymentIntentResponse } from '../commonTypes';
import type { PointCancelPaymentIntentClient } from './types';
/**
* Cancel a pending payment intent on the specified Point device.
*
* @returns Confirmation containing the cancelled payment intent ID.
*/
export default function cancelPaymentIntent({ device_id, payment_intent_id, config }: PointCancelPaymentIntentClient): Promise<CancelPaymentIntentResponse>;