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.57k stars 9.32k forks source link

PayPal Payflow Pro not redirected to success page #37695

Closed chirag-taraviya closed 1 year ago

chirag-taraviya commented 1 year ago

Preconditions and environment

Steps to reproduce

PayPal Payflow Pro setup Checkout with PayPal Payflow Pro credit card

screen loading not redirect to Successpage.

FYI response got from paypal success.

Expected result

Redirect to success page after successful payment

Attached log of paypal flow pro image

Actual result

Loading screen and not redirect to success page even payment is successful

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @chirag-taraviya. 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. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 year ago

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

thomas43222 commented 1 year ago

If you're experiencing issues with PayPal Payflow Pro not redirecting to the success page after a transaction, there could be a few possible causes and solutions to consider:

Configuration Issues: Double-check your integration setup and configuration for PayPal Payflow Pro. Ensure that you have provided the correct return URL or success page URL in your integration code or PayPal account settings. Verify that the integration parameters, such as the return URL or response handling, are set up correctly.

IPN (Instant Payment Notification) Configuration: PayPal Payflow Pro uses IPN to notify your system about transaction status updates. Make sure that your IPN settings are correctly configured. Check if you have set up the correct IPN URL in your PayPal account settings and that your server is able to receive and process IPN notifications.

Error Handling and Logging: Implement proper error handling and logging in your integration code. This can help you identify any errors or issues that might be occurring during the transaction process. Check your error logs to see if any errors are being logged related to the redirection to the success page Water beads guns.

chirag-taraviya commented 1 year ago

@thomas43222 we have production user account with PayPal Payflow Pro. I created new user for Test and Magento 2 development site. I am able to get proper response and status is approved. while I try test payment i got following error from url https://pilot-payflowlink.paypal.com/

Some required information is missing or incorrect. Please correct the fields below and try again.

  Error: Secure Token is not enabled. Please return to the website from where you started your purchase and try again.

Any Idea?

chirag-taraviya commented 1 year ago

Dose anyone have idea to solve this issue?

m2-assistant[bot] commented 1 year ago

Hi @engcom-Dash. 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-Dash commented 1 year ago

Hi @chirag-taraviya ,

Thanks for reporting this issue,

Verified the issue in latest stable instance 2.4.7-beta1 and the issue is not reproducible, kindly recheck the behaviour.

Steps to reproduce: 1.Install magento install 2.Setup Paypal Payflow pro payment in Sales>Payments methods>>Paypal payflow pro 3.Place the order with simple product in store front

Kindly refer the below screenshot:

Screenshot 2023-07-20 at 6 31 57 PM Screenshot 2023-07-20 at 6 35 27 PM

We can place the order with Paypal pay-flow pro with latest magento instance. Note:Kindly update your magento instance with latest one.

Thanks.

HyflerSD commented 1 week ago

Hello i'm on magento 2.4.7 and I still have many customers who are having this issue of the spinning wheel. I looked at a lot of the logs and noticed very long response times. Could this be because of my server or is this to do with payflow? What happens in many of these cases is that the payflow response from the redirect is the last thing that happens, the subsequent charge request does not trigger. Even after multiple attempts for some customers it does not work. However it works for other customers, but still takes a long time (over 15 seconds after hitting place order for most customer. I've also attached a video from our monitoring tool

infinite.webm

[2024-11-14T17:59:42.401747+00:00] main.DEBUG: array ( 'request' => array ( 'user' => '', 'vendor' => 'ntsecurity', 'partner' => 'PayPal', 'pwd' => '', 'verbosity' => 'HIGH', 'BUTTONSOURCE' => 'Magento_2_Community', 'tender' => 'C', 'trxtype' => 'A', 'amt' => 0, 'currency' => 'USD', 'createsecuretoken' => 'Y', 'securetokenid' => 'PTI3SjYfuFjTMcu2u3LKWmzq28IQRziw', 'returnurl' => 'https://www.website.com/paypal/transparent/redirect/', 'errorurl' => 'https://www.website.com/paypal/transparent/redirect/', 'cancelurl' => 'https://www.website.com/paypal/transparent/redirect/', 'disablereceipt' => 'TRUE', 'silenttran' => 'TRUE', 'firstname' => 'User', 'lastname' => 'Lastnallor', 'street' => 'some street', 'city' => 'Salinas', 'state' => 'CA', 'zip' => '93907', 'country' => 'US', 'email' => 'user@email.com', 'shiptofirstname' => 'User', 'shiptolastname' => 'Lastnallor', 'shiptostreet' => 'some street', 'shiptocity' => 'Salinas', 'shiptostate' => 'CA', 'shiptozip' => '93907', 'shiptocountry' => 'US', ), 'result' => array ( 'result' => '0', 'securetoken' => 'FqVKwTig2Ik6Sqzo7fjOe3AO4', 'securetokenid' => 'PTI3SjYfuFjTMcu2u3LKWmzq28IQRziw', 'respmsg' => 'Approved', 'result_code' => '0', ), ) [] [] [2024-11-14T17:59:50.036746+00:00] main.DEBUG: array ( 'PayPal PayflowPro redirect:' => array ( 'ZIP' => '93907', 'BILLTOCOUNTRY' => 'US', 'TRANSTIME' => '2024-11-14 09:59:46', 'FIRSTNAME' => 'User', 'EMAIL' => 'user@email.com', 'ACCT' => '', 'STATETOSHIP' => 'CA', 'RRN' => '9wcgrn8f', 'SECURETOKENID' => 'PTI3SjYfuFjTMcu2u3LKWmzq28IQRziw', 'AVSDATA' => 'YYY', 'COUNTRY' => 'US', 'EXPDATE' => '', 'LASTNAME' => 'Lastnallor', 'VERIFICATIONID' => '9wcgrn8f', 'SHIPTOZIP' => '93907', 'BILLTOFIRSTNAME' => 'User', 'ADDRESSTOSHIP' => 'some street', 'CVV2MATCH' => 'X', 'RESPTEXT' => 'verified', 'SECURETOKEN' => 'FqVKwTig2Ik6Sqzo7fjOe3AO4', 'SHIPTOCITY' => 'Salinas', 'RESPMSG' => 'Verified', 'BILLTOEMAIL' => 'user@email.com', 'AMT' => '0.00', 'TRANSACTIONID' => '9wcgrn8f', 'NAME' => 'User Name', 'SHIPTOCOUNTRY' => 'US', 'BILLTONAME' => 'User Name', 'ADDRESS' => 'some street ', 'PNREF' => 'BP3K9B4FDD6B', 'BILLTOSTREET' => 'some street', 'STATE' => 'CA', 'AVSADDR' => 'Y', 'BILLTOSTATE' => 'CA', 'COUNTRYTOSHIP' => 'US', 'AVSZIP' => 'Y', 'BILLTOZIP' => '93907', 'BILLTOCITY' => 'Salinas', 'SHIPTOSTATE' => 'CA', 'CITYTOSHIP' => 'Salinas', 'NAMETOSHIP' => 'User Name', 'SHIPTOSTREET' => 'some street', 'PROCAVS' => 'Y', 'CITY' => 'Salinas', 'ZIPTOSHIP' => '93907', 'BILLTOLASTNAME' => 'Lastnallor', 'CARDTYPE' => '3', 'RESULT' => '0', ), ) [] [] [2024-11-14T17:59:51.206255+00:00] main.DEBUG: array ( 'PayPal PayflowPro response:' => array ( 'ZIP' => '93907', 'BILLTOCOUNTRY' => 'US', 'TRANSTIME' => '2024-11-14 09:59:46', 'FIRSTNAME' => 'User', 'EMAIL' => 'user@email.com', 'ACCT' => '', 'STATETOSHIP' => 'CA', 'RRN' => '9wcgrn8f', 'SECURETOKENID' => 'PTI3SjYfuFjTMcu2u3LKWmzq28IQRziw', 'AVSDATA' => 'YYY', 'COUNTRY' => 'US', 'EXPDATE' => '', 'LASTNAME' => 'Lastnallor', 'VERIFICATIONID' => '9wcgrn8f', 'SHIPTOZIP' => '93907', 'BILLTOFIRSTNAME' => 'User', 'ADDRESSTOSHIP' => 'some street', 'CVV2MATCH' => 'X', 'RESPTEXT' => 'verified', 'SECURETOKEN' => 'FqVKwTig2Ik6Sqzo7fjOe3AO4', 'SHIPTOCITY' => 'Salinas', 'RESPMSG' => 'Verified', 'BILLTOEMAIL' => 'user@email.com', 'AMT' => '0.00', 'TRANSACTIONID' => '9wcgrn8f', 'NAME' => 'User Name', 'SHIPTOCOUNTRY' => 'US', 'BILLTONAME' => 'User Name', 'ADDRESS' => 'some street', 'PNREF' => 'BP3K9B4FDD6B', 'BILLTOSTREET' => 'some street', 'STATE' => 'CA', 'AVSADDR' => 'Y', 'BILLTOSTATE' => 'CA', 'COUNTRYTOSHIP' => 'US', 'AVSZIP' => 'Y', 'BILLTOZIP' => '93907', 'BILLTOCITY' => 'Salinas', 'SHIPTOSTATE' => 'CA', 'CITYTOSHIP' => 'Salinas', 'NAMETOSHIP' => 'User Name', 'SHIPTOSTREET' => 'some street', 'PROCAVS' => 'Y', 'CITY' => 'Salinas', 'ZIPTOSHIP' => '93907', 'BILLTOLASTNAME' => 'Lastnallor', 'CARDTYPE' => '3', 'RESULT' => '0', ), ) [] []