From 00c130e40e701d0324faa75d9066ad5cc392ae0c Mon Sep 17 00:00:00 2001 From: Sebastian Rindom Date: Tue, 9 Feb 2021 11:31:57 +0100 Subject: [PATCH] docs: correct return type --- .../medusa-payment-paypal/src/services/paypal-provider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/medusa-payment-paypal/src/services/paypal-provider.js b/packages/medusa-payment-paypal/src/services/paypal-provider.js index 9d18d7e931..bf78dbf388 100644 --- a/packages/medusa-payment-paypal/src/services/paypal-provider.js +++ b/packages/medusa-payment-paypal/src/services/paypal-provider.js @@ -49,7 +49,7 @@ class PayPalProviderService extends PaymentService { * Fetches an open PayPal order and maps its status to Medusa payment * statuses. * @param {object} paymentData - the data stored with the payment - * @returns {string} the status of the order + * @returns {Promise} the status of the order */ async getStatus(paymentData) { const order = await this.retrievePayment(paymentData) @@ -88,7 +88,7 @@ class PayPalProviderService extends PaymentService { * @returns {object} the data to be stored with the payment session. */ async createPayment(cart) { - const { customer_id, region_id, email } = cart + const { region_id } = cart const { currency_code } = await this.regionService_.retrieve(region_id) const amount = await this.totalsService_.getTotal(cart)