PAYONE-GmbH / magento-1

PAYONE Payment Extension for Magento 1
22 stars 41 forks source link

Problems with wrong status for credit card payments and different store views #468

Closed BioProphyl closed 1 month ago

BioProphyl commented 3 years ago

Since we have added another storeview to our main store, there are problems with some transactions with credit card payments.

Store A has been extended by storeview B.

An existing customer who previously ordered in "Storeview A" now orders in "Storeview B" by credit card.

The credit card payment was successful, but the order state in Magento still remains "unpaid".

In Magento, the transaction has been confirmed in the comment history: "The receipt of payment has been confirmed by PAYONE". The "[BS-Payone] Log - Transaction" shows the state "paid":

8664 530495593

image

payone_cron.log: In the log you can see that apparently the wrong payment method is picked up by the wrong store. In this case, the payment method ID 8 (creditcard) belongs to store A (store_id = 1).

2021-05-28T08:45:08+00:00 INFO (6): Started cronjob
2021-05-28T08:45:08+00:00 INFO (6): executePending: finished 0
2021-05-28T08:45:08+00:00 INFO (6): Finished cronjob
2021-05-28T08:50:04+00:00 INFO (6): Started cronjob
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Execute - Execute TransactionStatus action: paid - store-id: 7
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Execute - Set status to running
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Process - Got order id: 84361 store-id: 7
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Process - Config loaded with config.store-id=7, order.store-id: 7
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Process - Update TransactionStatus
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Process - Update order status
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Process - Add order comment
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Process - Store clearing parameters
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Process - Save before events
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Process - Trigger event payone_core_transactionstatus_all
2021-05-28T08:50:04+00:00 INFO (6): ID: 8664 - Process - Trigger event payone_core_transactionstatus_paid
2021-05-28T08:50:07+00:00 INFO (6): order.id: 84361 - InvoiceCreate - PaymentMethod loaded bypassing the cache
2021-05-28T08:50:07+00:00 INFO (6): ID: 8664 - Execute - Error during service execution, set status to error with message Payment method configuration with id "8" not found.
DEBUG: config.storeId:7, availableMethods: [49 => online_bank_transfer,50 => creditcard,51 => online_bank_transfer_giropay,52 => online_bank_transfer_sofortueberweisung,]
2021-05-28T08:50:07+00:00 INFO (6): ID: 8664 - Execute - Finished

The main problem seems to be that the payment methods are mapped with the wrong store.

hreinberger commented 3 years ago

Hi @BioProphyl this kind off error mostly occured with custom checkout solutions in the past, but should now be largely solved. From what I can see, your checkout experience seems fairly standard to me. This could also boil down to a configuration issue. Could you send a mail to our colleagues at tech[dot]support[at]payone.com with your Merchant ID and a configuration export of the PAYONE plugin? (from the PAYONE menu in the backend) Our support people will try to replicate the config and see if this is a code- or a configuration issue. thanks!