Stripe payment error - Forum | JoomShaper
Staff replied EasyStore

Stripe payment error

Asked by Pedro 1 year ago Last activity 1 year ago

Hello, I'm getting the following error:

Erro Stripe: Prices require an unit_amount or unit_amount_decimal parameter to be set.

9 replies

Pedro Asked this

Hello, removed all and added again. Error continues.

Pedro Asked this

Checking in stripe logs it's missing the product value:

{
  "cancel_url": "xpto",
  "line_items": {
    "0": {
      "price_data": {
        "currency": "eur",
        "product_data": {
          "name": "D. Carlos I 200 Réis 1903 Prata "
        }
      },
      "quantity": "1"
    }
  },
  "metadata": {
    "order_id": "7",
    "payment_type": "stripe"
  },
  "mode": "payment",
  "payment_intent_data": {
    "metadata": {
      "order_id": "7"
    }
  },
  "shipping_options": {
    "0": {
      "shipping_rate_data": {
        "display_name": "Portugal Continental",
        "fixed_amount": {
          "amount": "630",
          "currency": "eur"
        },
        "type": "fixed_amount"
      }
    }
  },
  "success_url": "xpto"
}
Pedro Asked this

Apparently PayPal also doesn't work...

Issue: AMOUNT_MISMATCH. Description: Should equal item_total + tax_total + shipping + handling + insurance - shipping_discount - discount.. UNPROCESSABLE_ENTITY : The requested action could not be performed, semantically incorrect, or failed business validation..

Pedro Asked this

I noticed I didn't the last version of EasyStore and updated it.

With Stripe now I get the error:
Erro Stripe: Quantity is required. Add quantity to line_items[0]

With PayPal now I get the error:
Issue: INVALID_PARAMETER_SYNTAX. Description: The value of a field does not conform to the expected format.. Issue: MISSING_REQUIRED_PARAMETER. Description: A required field / parameter is missing.. INVALID_REQUEST : Request is not well-formed, syntactically incorrect, or violates schema..

Mehtaz Afsana Borsha Staff

Hi

Could you please keep a full site backup and install the latest version of EasyStore? And also please update your payment plugins . Then please reset your payment plugin settings.

Pedro Asked this

Hi, PayPal sandbox seems to be working, Stripe still gives error:

Erro Stripe: Quantity is required. Add quantity to line_items[0]

Mehtaz Afsana Borsha Staff

Hi

Please reset your payment plugin settings.

Pedro Asked this

What do you mean with reset? In the list of payment options I removed it and then added it again. Is that it or am I supposed to do something else?

Mehtaz Afsana Borsha Staff

Hi,

Yes, you have to done all the settings again, then clear your Joomla and Browser cache, then check again.

David Collado

Do you people test what you push out, you have disabled so many websites from selling products online. Time to refund all your customers for your mishaps. You should be embarrased.

Log in to reply.