Skip to content

Magento 2.4..3-p1|2 PayflowPro perofrms $0 authorization charge #35600

@0xMatt

Description

@0xMatt

Preconditions and environment

  • Magento version - 2.4.3-p2

On a fresh install of magento 2.4.3-p1 or p2, I enter my paypal credentials and attempt to perform an authorization charge.

The AMT sent is always $0. causing the authorization to fail. This is not the prior secure token transaction request for $0 which does succeed.

Steps to reproduce

  • Fresh install Magento 2.4.3.p1|p2
  • Install sample data
  • Plug in PayPal Payflow Pro credentials, set to test mode. Submit a credit card order with their test cards
  • Place order

Expected result

Order is placed with the correct AMT sent to paypal

Actual result

AMT sent is always $0. Here's a Payflow Pro response dump with some omitted personal data.

[2022-06-09 15:14:37] main.DEBUG: array (
'PayPal PayflowPro response:' =>
array (
'SECURETOKEN' => '7US94OXWkPkKYhiXOicEDBQAR',
'STATE' => '',
'CITYTOSHIP' => '
',
'COUNTRYTOSHIP' => 'US',
'AVSDATA' => 'XXN',
'AMT' => '0.00',
'BILLTOCITY' => 'L',
'ACCT' => '
',
'BILLTOEMAIL' => 'user',
'BILLTOSTREET' => '
',
'SHIPTOCITY' => '
',
'FIRSTNAME' => 'user',
'NAMETOSHIP' => 'user'
'RESULT' => '12',
'ZIP' => '71913,
'BILLTOSTATE' => 'AR',
'BILLTOLASTNAME' => 'user',
'BILLTOCOUNTRY' => 'US',
'EXPDATE' => '
',
'BILLTOFIRSTNAME' => 'user',
'EMAIL' => 'user',
'RESPMSG' => 'Declined: 10606-Transaction cannot be processed.',
'CARDTYPE' => '0',
'STATETOSHIP' => 'AR',
'SHIPTOZIP' => 'zip',
'NAME' => user',
'BILLTOZIP' => 'zip',
'COUNTRY' => 'US',
'ADDRESS' => '
',
'BILLTONAME' => 'user',
'PNREF' => '',
'ZIPTOSHIP' => 'zip',
'ADDRESSTOSHIP' => '
',
'SECURETOKENID' => '',
'SHIPTOCOUNTRY' => 'US',
'SHIPTOSTREET' => '
',
'CITY' => '***',
'SHIPTOSTATE' => 'ca',
'TRANSTIME' => '2022-06-09 08:14:33',
'HOSTCODE' => '10606',
'LASTNAME' => 'user',
),
) [] []

Express checkout works without any issue and sends the correct amounts.

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Labels

Area: PaymentsComponent: PaypalIssue: needs updateAdditional information is require, waiting for responsePriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.3-p2Indicates original Magento version for the Issue report.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions