Skip to content

Commit

Permalink
fix(list-payments): must active payment method as recurrence or payme…
Browse files Browse the repository at this point in the history
…nt type
  • Loading branch information
matheusgnreis authored Mar 29, 2024
1 parent 7089974 commit 9bdf0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/routes/ecom/modules/list-payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ exports.post = async ({ appSdk }, req, res) => {
const methodConfig = configApp[paymentMethod] || {}
let methodEnable = !methodConfig.disable

if (methodEnable && isRecurrence) {
if (isRecurrence) {
methodEnable = methodConfig.enable_recurrence
}

Expand Down

0 comments on commit 9bdf0a4

Please sign in to comment.