#ac_green925

1 messages · Page 1 of 1 (latest)

lone jacinthBOT
iron glen
#

Hi 👋

Sorry can you be a bit more clear about what you are trying to do and what the behavior is you are seeing?

silver cloud
#

So, basically we grant 10% discounts to subscribers to a certain product. It's a new platform for us, so there hasn't been mass user migration to the new system. Therefore, we have to give partial refunds on some orders

#

an example: pi_3Ni72kJ9sFn2Cbty1eaullQX

#

It had worked in the past, however it stopped working sometime last week..we figured out it was an issue with the Wordpress plugin. That had been updated and has fixed the issue with the plugin

#

However, when I try and do a partial capture directly in the Stripe dashboard I continue getting this error

#

""message": "Invalid level3: pricing must be consistent. Sum(unit_cost * quantity + tax_amount - discount_amount) + shipping_amount != total charged. In this case, 97500 != 87750."
"type": "invalid_request_error"

iron glen
#

Can you share the request ID where you get this error message?

silver cloud
#

this is an order I cancelled, but if you look down a little bit in the logs you'll see the 400 error

#

pi_3No5hzJ9sFn2Cbty0Y0StYgw

#

However, these were processed before the Wordpress plugin update

iron glen
#

This Payment Intent was created with a different set of data

#

Likely based on the WP plugin

#

Based on the error message you are receiving when you attempt to capture less than the total amount I think it is the level 3 line item data that is causing this issue

silver cloud
#

So, do you think now that this error is fixed any new payments that come in will be fine?

#

and it's only the old ones that will be affected?

#

I guess I should run a test payment

#

I'm not a super sophisticated developer or anything, sorry if these are bad questions

iron glen
#

These Payment Intents are being configured by the WP plugin that creates them. I have no insight into why they are being created in any particular way. I would recommed you reach out to them for support with your specific use case. I wish I could help but I don't have access to their code to review what is happening