-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
PUT http://localhost:1337/api/users/1 HTTP/1.1 | ||
POST https://ecommercecms.algomax.fr/api/auth/local HTTP/1.1 | ||
Content-Type: application/json | ||
Authorization: bearer 86131120c2401cf0e477491a0768b11437c8e13e7bc1ad1781b0dba951c0cdd69bb6cf36b480d8f947536ab7bd528e81dfb99639572c96a9d72c12eeeea56afcf31b7441541d48aa5b6f25831796c61c603391de08c796c403f8373328c68ef9d9165754ce03b882d19a31ec1999b016a9bbbf59dac663b13a76639599689d81 | ||
Authorization: bearer 2b2ad6720307563b389fbec622cddfb7e0ea7b7c70f38ba184877758efd45c9b668b2838d6621ec2ff0ab67bb9c53424d5a69e6a1674ddc5b3bc505ae62d1cea010e35241e2774b3152c0c0750154a3d070dc7d891fc1db017dc7f75f19f6966f2d90d29d5bd296f6093ab412df6a45a34cfe1d3647be46859bf362783e4f63e | ||
# Authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzI2NDg5NjQ3LCJleHAiOjE3MjkwODE2NDd9.lzHPjirpqqLJW35RvfSxbzYOUfHxDzttzGupYNCSRrQ | ||
|
||
|
||
{ | ||
"username": "Alfred" | ||
"identifier": "[email protected]", | ||
"password":"abc123" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ import { type Core, factories } from "@strapi/strapi"; | |
import type { ExtendableContext } from "koa"; | ||
import Stripe from "stripe"; | ||
import { z } from "zod"; | ||
// import { io } from "../../.."; | ||
import { io } from "../../.."; | ||
|
||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, { | ||
apiVersion: "2024-06-20", | ||
|
@@ -343,7 +343,7 @@ const createStripeCheckout = async ({ | |
}, | ||
}); | ||
|
||
// io.to(existingOrder.user.id).emit("checkout", session.url); | ||
io.to(existingOrder.user.id).emit("checkout", session.url); | ||
await strapi.plugins.email.services.email.send({ | ||
to: existingOrder.user.email, | ||
from: "Strapi Ecommerce <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters