We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b41c474 + 95e072d commit ac81770Copy full SHA for ac81770
src/shared/global/trolley.service.ts
@@ -150,6 +150,20 @@ export class TrolleyService {
150
}
151
152
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
+
167
async startProcessingPayment(paymentBatchId: string) {
168
try {
169
// generate quote
0 commit comments