Método
- Node.js
import { Malga } from "malga";
const malga = new Malga({
apiKey: "8468a624-68c1-49a3-b9f1-a22455053a38",
clientId: "ebb9c69c-4ad6-49fd-a565-a35cb4c967b3",
});
await malga.sessions.find("7936be48-fd3d-4d55-a9b3-c1b776a2cbab");
- Response
{
id: '7936be48-fd3d-4d55-a9b3-c1b776a2cbab',
name: 'Link de Pagamento',
status: 'created',
isActive: true,
clientId: 'ebb9c69c-4ad6-49fd-a565-a35cb4c967b3',
orderId: null,
amount: 100,
currency: 'BRL',
capture: null,
merchantId: '2ed73b94-175a-438d-ae73-d11902492b75',
dueDate: '2023-12-31T03:00:00.000Z',
description: null,
statementDescriptor: null,
items: [
{
name: 'Produto 1',
description: null,
unitPrice: 100,
quantity: 1,
tangible: null
}
],
paymentLink: '',
paymentMethods: [
{
paymentType: 'pix',
expiresIn: 500
},
{
paymentType: 'credit',
installments: 1,
recurrence: null
},
{
paymentType: 'boleto',
expiresDate: '2023-12-31T00:00:00.000Z',
instructions: null
},
{
paymentType: 'drip',
successRedirectUrl: null,
cancelRedirectUrl: null
}
],
createdAt: '2023-01-31T00:00:00.000Z',
updatedAt: '2023-01-31T00:00:00.000Z',
publicKey: 'd6041197-4158-473d-82de-8594bbe69b59',
multiplePayments: {
allow: true,
maxPayments: 5,
paymentCount: 0,
pendingCount: 0,
status: 'active'
},
}
Parâmetros
Lista de todos os parâmetros suportados pelo método.uuid
required
ID da Sessão