From 17e6264bb3bd57b6a0bcfa24b6a7225c8a416b4c Mon Sep 17 00:00:00 2001 From: Emmanuel Auffray Date: Sat, 25 Nov 2023 19:46:29 +1300 Subject: [PATCH] Update README.md fixing sample Node.js code in Markdown --- stripe_terminal/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stripe_terminal/README.md b/stripe_terminal/README.md index fbe3243..2e4f5f7 100644 --- a/stripe_terminal/README.md +++ b/stripe_terminal/README.md @@ -94,10 +94,11 @@ You can see the usage example in the [example folder](example/lib/main.dart) ); ``` -Example backend code to get the connection token written on node.js: - ``` + Example backend code to get the connection token written on node.js: + + ```js import Stripe from "stripe"; - import express from "express" + import express from "express"; const stripe = new Stripe("sk_test_XXXXXXXXXXXXXXXXXX", { apiVersion: "2020-08-27" @@ -116,7 +117,7 @@ Example backend code to get the connection token written on node.js: app.listen(8000, () => { console.log("Server started") }); - ``` + ``` ## Discover and Connect Reader