Closed rahuldambare closed 1 month ago
Hi @rahuldambare. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.
@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
I have one observer which add this custom amount item in cart, I think that is not working for magento 2.4.6
<event name="payment_cart_collect_items_and_amounts">
<observer name="paymentfee" instance="MyModule\CoreCredit\Observer\AddCustomAmountItem" />
</event>
public function execute(Observer $observer)
{
/** @var \Magento\Payment\Model\Cart $cart */
$cart = $observer->getEvent()->getCart();
$customAmount = -(float)$this->helper->calculateCreditbalance();
\Magento\Framework\App\ObjectManager::getInstance()->get('Psr\Log\LoggerInterface')->debug('@@@ >>> Payment Check PartSimple\CoreCredit\Plugin >>> ' . $customAmount);
$cart->addCustomItem(__('Credit Amount'), 1, $customAmount, 'creditamount');
}
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @rahuldambare,
Thanks for the report and collaboration!
I need to tell you that, the Braintree module is not part of the bundled extension now in the Magento. Please take a look at this link for more details.
For versions of Adobe Commerce and Magento Open Source earlier than 2.4.0, it was recommended that merchants install and configure the official Braintree payment integration extension from the Commerce Marketplace to replace the core integration. As of 2.4.0, the extension is now included in the core release.
So we request you to please contact the Braintree developers.
Thanks
Summary
I am working on custom discount for Magento using this blog https://meetanshi.com/blog/add-custom-discount-in-magento-2/, but it is not adding that custom discount while sending request to payment Braintree Request not adding custom discount and customer charged full amount .
For Paypal I have made adjustment as per https://github.com/magento/magento2/issues/5735 , which is working fine . module-paypal/Model/Apiu/Nvp.php function callSetExpressCheckout at Line 812 add before "$response = $this->call(self::SET_EXPRESS_CHECKOUT, $request);" this snipped: $request['ITEMAMT'] = $request['AMT'] - $request['TAXAMT'] - $request['SHIPPINGAMT'];
Only facing issue with Braintree payment where custom discount is applied .
Magento version 2.4.6p3 PHP 8
Please check and provide solution for this as its affecting production sales. ` <?php
namespace MyModule\CoreCredit\Model\Quote\Address\Total;
class CustomDiscount extends \Magento\Quote\Model\Quote\Address\Total\AbstractTotal {
} `
Examples
Proposed solution
Custom Discount should add in braintree request or in discount field for Braintree request and final total should be minus of that discount
Release note
No response
Triage and priority