From c67cce67fe50d5fa189ca194c498e4547ef07726 Mon Sep 17 00:00:00 2001 From: Dan Haas Date: Mon, 3 Jun 2024 15:15:57 -0400 Subject: [PATCH 1/2] adds button message code --- standard-integration/client/app.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/standard-integration/client/app.js b/standard-integration/client/app.js index cab942a0..2ae91bdd 100644 --- a/standard-integration/client/app.js +++ b/standard-integration/client/app.js @@ -1,5 +1,14 @@ window.paypal .Buttons({ + style: { + shape: "rect", + layout: "vertical", + color: "gold", + label: "paypal", + }, + message: { + amount: "YOUR_AMOUNT_HERE" // This needs to be a number value + }, async createOrder() { try { const response = await fetch("/api/orders", { From dffe23f918b2f0805248bac48c4e957afec7c2f8 Mon Sep 17 00:00:00 2001 From: Dan Haas Date: Tue, 4 Jun 2024 09:41:37 -0400 Subject: [PATCH 2/2] removes style object --- standard-integration/client/app.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/standard-integration/client/app.js b/standard-integration/client/app.js index 2ae91bdd..86ed6d4e 100644 --- a/standard-integration/client/app.js +++ b/standard-integration/client/app.js @@ -1,11 +1,5 @@ window.paypal .Buttons({ - style: { - shape: "rect", - layout: "vertical", - color: "gold", - label: "paypal", - }, message: { amount: "YOUR_AMOUNT_HERE" // This needs to be a number value },