Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ Deno.serve(async (req) => {
})

try {
const rawBody = new Uint8Array(await req.arrayBuffer())
await stripeSync.webhook.processWebhook(rawBody, sig)
const rawBody = await req.arrayBuffer()
const bodyString = new TextDecoder().decode(rawBody)
await stripeSync.webhook.processWebhook(bodyString, sig)
return new Response(JSON.stringify({ received: true }), {
status: 200,
headers: { 'Content-Type': 'application/json' },
Expand Down
Loading