diff --git a/src/providers/boleto-api-caixa/index.js b/src/providers/boleto-api-caixa/index.js index 20e1e4a..775fff8 100644 --- a/src/providers/boleto-api-caixa/index.js +++ b/src/providers/boleto-api-caixa/index.js @@ -60,7 +60,7 @@ const buildPayload = (boleto, operationId) => { documentNumber: String(path(['title_id'], boleto)), }, recipient: { - name: path(['company_name'], boleto), + name: `${path(['company_name'], boleto)} | Pagar.me Pagamentos S/A`, document: { type: recipientDocumentType, number: path(['company_document_number'], boleto), diff --git a/test/unit/providers/boleto-api-caixa/index.js b/test/unit/providers/boleto-api-caixa/index.js index ba9f32c..fab1121 100644 --- a/test/unit/providers/boleto-api-caixa/index.js +++ b/test/unit/providers/boleto-api-caixa/index.js @@ -44,7 +44,7 @@ test('buildPayload with full payer_address', async (t) => { documentNumber: String(boleto.title_id), }, recipient: { - name: boleto.company_name, + name: `${boleto.company_name} | Pagar.me Pagamentos S/A`, document: { type: getDocumentType(boleto.company_document_number), number: boleto.company_document_number, @@ -98,7 +98,7 @@ test('buildPayload with payer_address incomplete', async (t) => { documentNumber: String(boleto.title_id), }, recipient: { - name: boleto.company_name, + name: `${boleto.company_name} | Pagar.me Pagamentos S/A`, document: { type: getDocumentType(boleto.company_document_number), number: boleto.company_document_number,