Skip to content

Commit

Permalink
Updated: webhook functionality to Automate Payment Marking for Shopif…
Browse files Browse the repository at this point in the history
…y Orders(hotwax#700)
  • Loading branch information
R-Sourabh committed Apr 25, 2024
1 parent afc0db3 commit 4871d37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"Fulfilled": "Fulfilled",
"Fulfillment": "Fulfillment",
"Fulfillment status": "Fulfillment status",
"Get Paid Transactions": "Get Paid Transactions",
"Go to OMS": "Go to OMS",
"Go to Launchpad": "Go to Launchpad",
"Hard sync": "Hard sync",
Expand Down
4 changes: 2 additions & 2 deletions src/services/WebhookService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const webhookParameters = {
'endpoint': 'cancelOrderShopifyWebhook'
},
'PAYMENT_STATUS': {
'topic': 'orders/paid',
'endpoint': 'orderPaidNotificationFromShopify'
'topic': 'order_transactions/create',
'endpoint': 'getTransactionAndMarkOrderPaid'
},
'RETURNS': {
'topic': 'refunds/create',
Expand Down
2 changes: 1 addition & 1 deletion src/views/Orders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</ion-item>
<ion-item>
<ion-toggle :disabled="!hasPermission(Actions.APP_JOB_UPDATE)" :checked="isPaymentStatus" @ionChange="updateWebhook($event['detail'].checked, 'PAYMENT_STATUS')" color="secondary">
<ion-label class="ion-text-wrap">{{ translate("Payment status") }}</ion-label>
<ion-label class="ion-text-wrap">{{ translate("Get Paid Transactions") }}</ion-label>
</ion-toggle>
</ion-item>
<ion-item lines="none">
Expand Down

0 comments on commit 4871d37

Please sign in to comment.