Skip to content

Commit ac81770

Browse files
authored
Merge pull request #98 from topcoder-platform/hotfix-drop-transaction-on-payment
add missing method
2 parents b41c474 + 95e072d commit ac81770

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/shared/global/trolley.service.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,20 @@ export class TrolleyService {
150150
}
151151
}
152152

153+
async removePayment(paymentId: string, batchId: string) {
154+
try {
155+
await this.client.payment.remove(paymentId, batchId);
156+
this.logger.debug(`Removed trolley payment with id ${paymentId}`);
157+
} catch (error) {
158+
this.logger.error(
159+
`Failed to remove trolley payment: '${error.message}'!`,
160+
paymentId,
161+
batchId,
162+
error,
163+
);
164+
}
165+
}
166+
153167
async startProcessingPayment(paymentBatchId: string) {
154168
try {
155169
// generate quote

0 commit comments

Comments
 (0)