Skip to content

Commit

Permalink
fix(pagarme): New recurrence_model field on credit card transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Oct 17, 2024
1 parent cebaea3 commit 2a9b6c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/apps/pagarme/src/pagarme-create-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export default async (modBody: AppModuleBody<'create_transaction'>) => {
amount: Math.floor(finalAmount * 100),
installments: installmentsNumber,
card_hash: params.credit_card && params.credit_card.hash,
recurrence_model: 'installment',
// initiated_type: 'PartialShipment',
});
} else if (params.payment_method.code === 'account_deposit') {
const finalAmount = amount.total;
Expand Down

0 comments on commit 2a9b6c4

Please sign in to comment.