mercadopago
Version:
Mercadopago SDK for Node.js
10 lines (9 loc) • 488 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = getPaymentIntentStatus;
const restClient_1 = require("../../../utils/restClient");
function getPaymentIntentStatus({ payment_intent_id, config }) {
return restClient_1.RestClient.fetch(`/point/integration-api/payment-intents/${payment_intent_id}/events`, Object.assign({ method: 'GET', headers: {
Authorization: `Bearer ${config.accessToken}`,
} }, config.options));
}