WPIntell

Source evidence

Amount Mismatch error

PhonePe Payment Solutions · support · 2024-01-24T01:44:00+00:00

mixedsentiment
highseverity
0.89relevance
0replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
PI Web Solution resolved
Hi, We have a plugin that allows us to collect partial payment for the order but that is not working with your payment plugin and giving a error of “Amount Mismatch !” we have identified the cause of the issue see if you can give us some solution for this by adding a filter function in your plugin Say order total was 100 and we allowed them to make partial payment of 10 and checkout all this works file and the amount goes through your payment plugin well but after words your payment plugin reruns a check for amount match at 2 places that creates the issue Inside this file of your phonepe-payment-solutions\PPEX_WC_PG_Client.php in function handle_callback_response and check_phonepe_response you are running a check for the order total if you can add a filter function for the function handle_callback_response $amount = sanitize_text_field($order->get_total()); to $amount = apply_filters(‘order_amount_filter’, sanitize_text_field($order->get_total()), $order); function check_phonepe_response $amount_in_rupees = sanitize_text_field($order->get_total()); to $amount_in_rupees = apply_filters(‘order_amount_filter’, sanitize_text_field($order->get_total()), $order); then we will be able to modify the partial amount that was paid for and let the order go through without error

Comments

0 shown

No comments were stored for this source.