amazon-payments-magento-2-plugin icon indicating copy to clipboard operation
amazon-payments-magento-2-plugin copied to clipboard

Cannot Process Credit Memo - Deprecated functionality: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /vendor/amzn/amazon-pay-magento-2-module/Gateway/Request/SettlementRequestBuilder.php on line 131

Open amcguireweb opened this issue 4 months ago • 1 comments

What I expected

To process credit memo successfully.

What happened instead

Error: Deprecated functionality: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /vendor/amzn/amazon-pay-magento-2-module/Gateway/Request/SettlementRequestBuilder.php on line 131

Steps to reproduce the issue

Submit order with Amazon Pay as payment method, and then attempt to process a credit memo.

Your setup

  • Magento version: 2.4.6-p3
  • Amazon Pay Extension Version: 5.17.1
  • Magento Edition: Enterprise Cloud

Line 131: rtrim($paymentDO->getPayment()->getParentTransactionId(), '-capture'),

For some reason, $paymentDO->getPayment()->getParentTransactionId() = null here.

amcguireweb avatar Oct 17 '24 15:10 amcguireweb