Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.7 PayPal Payflow Pro Error #10023

Closed
cadencelabs-master opened this issue Jun 22, 2017 · 12 comments
Closed

2.1.7 PayPal Payflow Pro Error #10023

cadencelabs-master opened this issue Jun 22, 2017 · 12 comments

Comments

@cadencelabs-master
Copy link

Preconditions

  1. Magento 2.1.7
  2. Set Payment Method in Stores->Configuration->Sales->Payment Methods->Paypal Payflow Pro (Includes Express Checkout)

Steps to reproduce

  1. Add product to cart
  2. Go to checkout
  3. Place order using PayPal Payflow Pro

Expected result

  1. Successful Checkout

Actual result

  1. An error occurred on the server. Please try to place the order again.

As far as I can tell, this error can be traced to:

file: vendor/magento/module-paypal/Controller/Transparent/Response.php
line: 83

The code is:

$this->transaction->getResponseObject($this->getRequest()->getPostValue());

However, if you are using Payflow pro with the transparent option, this controller is actually executed in the context of a GET action -- meaning getPostValue() returns nothing

The code should be updated to get the parameters from GET

$response = $this->transaction->getResponseObject($this->getRequest()->getParams());

You can see the final response from paypal is:

302 from payflowlink.paypal.com
Location: yourstore.com/paypal/transparent/response/?SECURETOKEN... (GET request)

@webtheorydesigns
Copy link

I am having a similar issue with my Magento/paypal pro transaction, but I dont see the order being processed in Orders, do you?

@cadencelabs-master
Copy link
Author

This issue is related to PayPal Payflow pro not allowing the creation of an order, so it may be unrelated.

@webtheorydesigns
Copy link

Right, it could be. The only error I get is "An error occurred on the server. Please try to place the order again."

I am able to see the transaction hit my paypal account, and being authorized, but from what Paypal support says, its waiting on Magento to complete the reference transaction authorization. Not sure if that helps you in any way, just thought id add it.

@cadencelabs-master
Copy link
Author

Oh yea; then this seems related. It's the same behavior we're getting.

@webtheorydesigns
Copy link

Interesting... I wonder if its worth rolling back to 2.1.6... Not sure if that would help, but I am running out of ideas.

@cadencelabs-master
Copy link
Author

Did you try the solution I posted?

@webtheorydesigns
Copy link

Is this the solution?

The code should be updated to get the parameters from GET

$response = $this->transaction->getResponseObject($this->getRequest()->getParams());

@cadencelabs-master
Copy link
Author

Yes

@webtheorydesigns
Copy link

Thanks for this post! True life saver! I am now receiving a different type of error, but I think thats paypal related. ('Verified: 10574-This card authorization verification is not a payment )

FYI - I made the change you suggested in Notepad++ and saved the file with UTF-8 encoding.

@joni-jones
Copy link
Contributor

Hi, @cadencelabs-master described flow, not an issue, this is the expected behavior. The PayPal should always send response to paypal/transparent/response by POST, not a GET.

You need to configure Return URL Method in your manager.paypal.com account:
Service Settings -> Hosted Checkout Pages -> Set Up -> Payment Confirmation section.
payment confirmation

The Enter Return URL is not necessary because Magento always sends it.

@morsalex
Copy link

Hello, maybe is not relevant but in the version 2.1.7 i cannot find the button to disable paypal payflow and credit line. Is there any bug with the version?

@veloraven
Copy link
Contributor

According to contributor guide, tickets without response for two weeks should be closed.
If this issue still reproducible please feel free to create the new one: format new issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result and specify Magento version.

@Mistrb
Copy link

Mistrb commented Jan 30, 2018

I was having the same issue on 2.1.10. I changed the setting in Paypal and it fixed it!

3821890333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants