I want to find in code place, where PayPal query sends, with Payflowpro Credit/Debit card payment method on checkout. Please, help me with it.

1 Answer 1


If you need a place where exactly PayPal Payflow sends request from Magento to PayPal gateway then you need \Magento\Paypal\Model\Payflow\Service\Gateway::postRequest method. This method uses curl to perform all operations, like authorize, capture, void, etc.

But if you need the place, where Magento sends request from payment card form to PayPal, you need to look through app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/payflowpro-method.js.

  • Yes, I have researched payflowpro-method.js, but could't find exact place with PayPal request, only processing of placeOrderHandler. And, how I understand, this handler is changed somewhere. Do you now, where?
    – Skorzhyk
    Nov 23, 2017 at 14:04
  • What exact request do you need?
    – joni jones
    Nov 23, 2017 at 14:34
  • Where credit card data is sent to PayPal. Actually, I need to change card number because my format is 0000-0000-0000-0000, and required only numbers. So I find where can do it.
    – Skorzhyk
    Nov 23, 2017 at 14:37
  • You are not able to do it because PayflowPro integration uses Magento Transparent Redirect, that means all card fields are rendered in the iframe and directly will be sent to PayPal gateway.
    – joni jones
    Nov 23, 2017 at 14:55
  • I know, and want to change field itself after click Place Order but before it sends to PayPal.
    – Skorzhyk
    Nov 23, 2017 at 15:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.