magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.49k stars 9.31k forks source link

Order payment not received - Paypal Express #28853

Closed jamie-selesti closed 4 years ago

jamie-selesti commented 4 years ago

Preconditions (*)

  1. Using Magento 2.3.5-p1
  2. Using PHP 7.3
  3. PayPal Express Checkout enabled and setip

Steps to reproduce (*)

  1. Place an order using Paypal Express

Expected result (*)

  1. Receive payment for the order

Actual result (*)

  1. We had an order whereby Magento told us the order was paid but looking in our Paypal account we don't have the money. image

  2. Looking at the sales_order_payment table entry I can see in the additional_information column we have

{"paypal_express_checkout_shipping_overridden":1,
"paypal_express_checkout_shipping_method":"",
"paypal_payer_id":"REDACTED",
"paypal_payer_email":"REDACTED",
"paypal_payer_status":"unverified",
"paypal_address_status":"Confirmed",
"paypal_correlation_id":"REDACTED",
"paypal_express_checkout_payer_id":"REDACTED",
"paypal_express_checkout_token":"REDACTED",
"method_title":"PayPal",
"paypal_express_checkout_redirect_required":null}

The key thing here is that there isn't a paypal_payment_status in the information as you would expect. Below is what another order's additional_information looks like whose money we did receive

{"paypal_express_checkout_shipping_overridden":1,
"paypal_express_checkout_shipping_method":"",
"paypal_payer_id":"REDACTED",
"paypal_payer_email":"REDACTED",
"paypal_payer_status":"unverified",
"paypal_address_status":"Confirmed",
"paypal_correlation_id":"REDACTED",
"paypal_express_checkout_payer_id":"REDACTED",
"paypal_express_checkout_token":"REDACTED",
"method_title":"PayPal",
"paypal_express_checkout_redirect_required":null,
"paypal_protection_eligibility":"Eligible",
"paypal_payment_status":"completed",
"paypal_pending_reason":"None"}

Therefore the question is why did Magento think the order was fully paid when it was not?

Note, this does bug not always happen so it will be hard to replicate


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 4 years ago

Hi @jamie-selesti. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] commented 4 years ago

Hi @engcom-Lima. 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:

engcom-Lima commented 4 years ago

Hello @jamie-selesti Could you provide more details for reproduce this issue? Please add steps to reproduce.

Thank you!

engcom-Lima commented 4 years ago

@jamie-selesti we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.