mercadopago
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -88,2 +88,3 @@ import { ApiResponse } from '../../types'; | ||
verification_code?: string; | ||
bank_transfer_id?: string; | ||
}; | ||
@@ -90,0 +91,0 @@ export declare type Barcode = { |
@@ -27,3 +27,3 @@ "use strict"; | ||
AppConfig.PRODUCT_ID = 'bc32b6ntrpp001u8nhkg'; | ||
AppConfig.SDK_VERSION = '2.0.7'; | ||
AppConfig.SDK_VERSION = '2.0.8'; | ||
AppConfig.Headers = { | ||
@@ -30,0 +30,0 @@ AUTHORIZATION: 'Authorization', |
{ | ||
"name": "mercadopago", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Mercadopago SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -53,4 +53,9 @@ ![SDK Node Mercado Pago](https://github.com/lucmkz/sdk-nodejs/assets/31546923/84211022-6fc5-4db1-8772-117eca84f2d9) | ||
// Step 5: Make the request | ||
payment.create({ body }).then(console.log).catch(console.log); | ||
// Step 5: Create request options object - Optional | ||
const requestOptions = { | ||
idempotencyKey: '<IDEMPOTENCY_KEY>', | ||
}; | ||
// Step 6: Make the request | ||
payment.create({ body, requestOptions }).then(console.log).catch(console.log); | ||
``` | ||
@@ -57,0 +62,0 @@ |
179888
4430
146