Skip to content

Commit 34a7776

Browse files
committed
feat: use 0 markup for payments
1 parent 9beb3a7 commit 34a7776

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/services/PaymentService.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ async function createChallenge (challenge, token) {
8080
},
8181
tags: ['Other'],
8282
startDate: new Date(),
83-
billing: { billingAccountId: challenge.billingAccountId }
83+
}
84+
85+
if (challenge.billingAccountId) {
86+
body.billing = {
87+
billingAccountId: challenge.billingAccountId,
88+
markup: 0, // for TaaS payments we always use 0 markup
89+
}
8490
}
8591
try {
8692
const response = await helper.createChallenge(body, token)

0 commit comments

Comments
 (0)