upaymentskw / magento

1 stars 0 forks source link

Order Status Remains Pending After Successful Payment - Magento 2.4.1-p1 #1

Open bigboss97lnt opened 3 months ago

bigboss97lnt commented 3 months ago

Description:

We are experiencing an issue with this module in Magento 2.4.1-p1 where the order status remains pending even after a successful payment. This problem persists regardless of whether tokenization is enabled or disabled. Additionally, no invoice or payment transaction is created.

Expected Result:

The order status should change to processing after a successful payment. An invoice should be generated. A payment transaction should be recorded.

Actual Result:

The order status remains pending and then canceled automatically. No invoice is created. No payment transaction is recorded. The order is eventually canceled automatically.

Magento Version: 2.4.1-p1

Logs:

[2024-06-20 07:59:58] main.INFO: UPayments::  create paypage success!, Order [2000000072] [] []
[2024-06-20 08:00:27] main.INFO: Consumer "async.operations.all" skipped as required connection "amqp" is not configured. Unknown connection name amqp [] []

Configuration Tried:

Tokenization on

image

Tokenization off

image

Both configurations resulted in the same outcome.

Additional Information:

Please check the integration and handling of the payment response in the module.

bigboss97lnt commented 3 months ago

Test payment details:

knet response

paymentId=101417711000269109&cardnumber=0dec84b3e3d6153938a19e9264bf4155&otpflag=1&instId=201&transactionAmount_limit=25&tranamount=268cde48f91fb13f410faff327cdc439&creditDebitCheck=D&Otptenant=KFH&paymentInitTime=Tue%20Jun%2025%2014:21:09%20AST%202024&encryptedCardPin=8b586451b0f9781533061eef2b50903c&otpgencount=0&mrchName=Upayments%20Company&langID=EN&udf4=udf4&instcvflg=1&termcvflg=0&custvalidflg=0&brandtype=V&pointsRedemptionflg=0&Expirymonth=10&Expiryyear=2027&pymtPgEiddiscntflg=0&discountedtranamount=&PaymentStatus=INITIALIZED&kfastRegAttemptCount=0

debug.log

main.INFO: UPayments::  create paypage success!, Order [000000895] [] []
main.DEBUG: Request validation failed for action "Mageserv\UPayments\Controller\PayPage\Ipn\Interceptor"
 {"exception":"[object] (Magento\\Framework\\App\\Request\\InvalidRequestException(code: 0): Invalid request received at /home/alwazzan/public_html/vendor/magento/framework/App/Request/CsrfValidator.php:105)"} []