Skip to content

Commit

Permalink
chore(payment-subscriptions): add field to credit card
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Sep 5, 2024
1 parent 9eb4df7 commit 5edf632
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/lib/pagarme/payment-subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ const createPayment = async (params, appData, storeId, customer) => {
card_token: params.credit_card && params.credit_card.hash,
card: {
billing_address: address
}
},
recurrence_model: params.installments_number ? 'instalment' : 'standing_order',
initiated_type: 'partial_shipment'
}
} else if (paymentMethod === 'pix') {
payment.pix = {
Expand Down

0 comments on commit 5edf632

Please sign in to comment.