Skip to content

Commit 3f773cf

Browse files
committed
fix(custom-payment): Create transaction directly paid when order amount is zero (free)
1 parent 85f6bc7 commit 3f773cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/apps/custom-payment/src/custom-payment-create-transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default async (appData: AppModuleBody) => {
5151
currency_symbol: params.currency_symbol,
5252
amount: amount.total,
5353
status: {
54-
current: 'pending',
54+
current: amount.total > 0.01 ? 'pending' : 'paid',
5555
},
5656
flags: [
5757
'app-custom-payments',

0 commit comments

Comments
 (0)