amazon-payments-magento-2-plugin
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
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.