From bc2ffa0e862f84d44f79cd98b0d75790931983d5 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 21 May 2025 12:53:16 -0600 Subject: [PATCH] Fix argument name --- examples/payment-processor/plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/payment-processor/plugin.js b/examples/payment-processor/plugin.js index c2583e5..55d97a7 100644 --- a/examples/payment-processor/plugin.js +++ b/examples/payment-processor/plugin.js @@ -156,9 +156,9 @@ exports.init = function () { "dueFormatted": "$12.14" } }, - checkoutSavedMethod: async function ({cardProcessorCustomerID, paymentMethodID, amount}) { + checkoutSavedMethod: async function ({customerID, paymentMethodID, amount}) { // Same as checkout() except using a payment method already on file. - // cardProcessorCustomerID and paymentMethodID are provided by getSavedPaymentMethods below. + // customerID and paymentMethodID are provided by getSavedPaymentMethods below. await global.apis.util.delay(1000); // Replace this with something useful! global.apis.pos.addReceiptPayment( new global.apis.pos.ReceiptPayment( @@ -198,7 +198,7 @@ exports.init = function () { // Return all saved payment methods tied to the provided customer UUID. var methods = []; methods.push({ - customer: "", // Passed to checkoutSavedMethod as cardProcessorCustomerID + customer: "", // Passed to checkoutSavedMethod as customerID customer_uuid: customerUUID, id: "", // Passed to checkoutSavedMethod as paymentMethodID type: "card", // Payment type. Accepted values are card, ach, crypto, cash, check, account, and free.