diff options
| -rw-r--r-- | routes/square.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/routes/square.ts b/routes/square.ts index f7902e11..8ac559a9 100644 --- a/routes/square.ts +++ b/routes/square.ts @@ -64,7 +64,10 @@ export default { const { data, type, merchant_id } = body; const { payment } = data.object; - if (type === "payment.created" && payment.source_type === "CASH") { + if ( + type === "payment.created" && + (payment.source_type === "CASH" || payment.source_type === "EXTERNAL") + ) { const { amount_money: { amount, currency }, } = payment; |
