Skip to content

Commit

Permalink
fix(create-transaction): fix recurrence_model
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Sep 6, 2024
1 parent b2c3c96 commit fe774f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/lib/pagarme/payment-subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const createPayment = async (params, appData, storeId, customer) => {
card: {
billing_address: address
},
recurrence_model: params.installments_number ? 'installment' : 'standing_order',
recurrence_model: params.installments_number && params.installments_number > 1 ? 'installment' : 'standing_order',
initiated_type: 'partial_shipment'
}
} else if (paymentMethod === 'pix') {
Expand Down

0 comments on commit fe774f8

Please sign in to comment.