Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danielen-meli committed Apr 26, 2024
1 parent 19cd719 commit cd1c5b4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Releases

## VERSION 2.0.10
- Add transaction_details to PaymentCreateRequest

## VERSION 2.0.9
- Add sponsor_id to PaymentCreateRequest

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mercadopago",
"version": "2.0.9",
"version": "2.0.10",
"description": "Mercadopago SDK for Node.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -54,4 +54,4 @@
"node-fetch": "^2.6.12",
"uuid": "^9.0.0"
}
}
}
4 changes: 4 additions & 0 deletions src/examples/payment/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ payment.create({ body: {
transaction_amount: 12.34,
description: '<DESCRIPTION>',
payment_method_id: '<PAYMENT_METHOD_ID>',
transaction_details: {
financial_institution: '<FINANCIAL_INSTITUCION>',
},
payer: {
email: '<EMAIL>'
},
Expand All @@ -23,3 +26,4 @@ requestOptions: {
idempotencyKey: '<IDEMPOTENCY_KEY>'
} }).then(console.log).catch(console.log);


2 changes: 1 addition & 1 deletion src/utils/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class AppConfig {
static readonly BASE_URL = 'https://api.mercadopago.com';
static readonly PRODUCT_ID = 'bc32b6ntrpp001u8nhkg';

static SDK_VERSION = '2.0.9';
static SDK_VERSION = '2.0.10';

static readonly Headers = {
AUTHORIZATION: 'Authorization',
Expand Down

0 comments on commit cd1c5b4

Please sign in to comment.