Browse Source

fix(payments-plugin): Send 200 response from Stripe webhook (#1487)

Without a 200 response, Stripe will continue to retry the webhook endpoint.
Julien 3 years ago
parent
commit
4d55949b05
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/payments-plugin/src/stripe/stripe.controller.ts

+ 1 - 0
packages/payments-plugin/src/stripe/stripe.controller.ts

@@ -116,6 +116,7 @@ export class StripeController {
         }
 
         Logger.info(`Stripe payment intent id ${paymentIntent.id} added to order ${orderCode}`, loggerCtx);
+        response.status(HttpStatus.OK).send('Ok');
     }
 
     private async createContext(channelToken: string): Promise<RequestContext> {