Closed terryupton closed 1 year ago
We are getting the same error. Judging by the error message and PayPal response, it looks like the Refund is being sent through correctly at PayPal, but the way that the gateway is handling the response is incorrect? @lukeholder any ideas?
We've had the same error reported to us but in our case it is also affecting full refunds, not just partial. Screenshots attached. PayPal dashboard reports as refunded successfully but Craft fails to record this due to 'Cannot use object of type stdClass as array' error. Any news on when this can be looked at? Thanks.
Craft Pro: 3.7.55.3 Craft Commerce Pro: 3.4.17.2 PayPal Checkout for Craft Commerce: 1.3.3
This is getting reported at my company too. The issue has been open for a couple of months, and it causes issues for our Accounting dept. Any update? @nfourtythree @lukeholder ?
Also getting the same error as everyone else on full refund attempts. No detail in the web.log
, just this...
2022-10-28 15:51:15 [-][3956][-][error][commerce] Error refunding transaction: xxxxxxxxxxxxxxxxxxxxx
_SESSION = [
...
'cp-error' => 'Couldn’t refund transaction: (Cannot use object of type stdClass as array)'
]
Craft CMS 3.7.59 Craft Commerce 3.4.18 PayPal Checkout for Craft Commerce 1.3.3
Any updates on this yet @nfourtythree @lukeholder ?
Client has once again reported this issue today and it's a little embarrassing to inform them that it still has not been looked at when I told them I had reported it over 2 months ago.
Any update on this yet @nfourtythree @lukeholder ?
Hi all
Thank you for the reports and information regarding this issue.
Just to clarify things:
3.x
of Commerce and version 1.x
of the plugin?We will look into this issue based on the information above. Please let us know if there is any extra or additional information.
Thanks!
@nfourtythree Ours was a full refund issue. So it's looking like both full and partial.
Hi all
We have just pushed up a fix for this issue.
The fix will be included in the next release of the plugin which will be out shortly.
To get this early, change your craftcms/commerce-paypal-checkout
requirement in your project's composer.json
to:
"require": {
"craftcms/commerce-paypal-checkout": "v1.x-dev#9fd85c45cfe6e03ddc32fb881a67fc4148694f2c as 1.3.3",
"...": "..."
}
Then run composer update
.
Thanks.
Version 1.3.4
is now out with this fix.
Thanks!
Description Every-time my client ties to put through a partial refund on the Craft Commerce order back-end, it shows as failed. However, the refund is actually processed correctly within PayPal.
The gateway message reads:
Gateway Message | "Cannot use object of type stdClass as array"
Here is a dump of the JSON feedback:
Some screenshots:
Additional info