Stripe Payment Error - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Stripe Payment Error

P

Pedro

EasyStore 10 months ago

Hello, I'm getting the following error:

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

0
13 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 10 months ago #176858

Hi

Thanks for contacting us and sorry for your issue. Please delete your previously set up payment gateways and then add them again. If this does not solve your issue, then share some screenshots here to check it.

Please re-check this documentation and fix your settings.

https://www.joomshaper.com/documentation/easystore/stripe-integration-in-easystore#stripe-webhook-signing-secret-key

-Regards.

0
P
Pedro
Accepted Answer
10 months ago #176912

Need to remove all of them?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 10 months ago #176922

Yeah, But make sure you have a full site backup. And please follow this documentation also.

https://www.joomshaper.com/documentation/easystore/stripe-integration-in-easystore#stripe-webhook-signing-secret-key

0
P
Pedro
Accepted Answer
10 months ago #177019

Hello, removed all and added again. Error continues.

0
P
Pedro
Accepted Answer
10 months ago #177020

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"
}
0
P
Pedro
Accepted Answer
10 months ago #177032

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..

0
P
Pedro
Accepted Answer
10 months ago #177033

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..

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 10 months ago #177167

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.

0
P
Pedro
Accepted Answer
10 months ago #177335

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

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

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 10 months ago #177344

Hi

Please reset your payment plugin settings.

0
P
Pedro
Accepted Answer
10 months ago #178151

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?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 10 months ago #178183

Hi,

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

0
DC
David Collado
Accepted Answer
10 months ago #177982

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.

0