Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit 8d94039

Browse files
committed
Add placeholder replacement for order ID
1 parent e9978f5 commit 8d94039

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

dist/integration/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const handler: IntegrationHandler = async (request, context) => {
1313

1414
// todo make this dynamic
1515
const message = text
16+
.replace('{id}', request.body.payload.id)
1617
.replace('{order_reference}', request.body.payload.customer_reference)
1718
.replace('{order_value}', request.body.payload.order_value.formatted_with_symbol);
1819

0 commit comments

Comments
 (0)