OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Same order No for different orders

This topic contains 7 replies, has 2 voices, and was last updated by  Ilya Antypenko 4 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #41385

    esakkiraj_s
    Participant

    I am developing new payment bundle.
    I have placed two orders using in two different payment methods.But In shop front end order history two orders are having same order number with different payment methods.
    Orocommerce supports multiple payment method for single order?.

    Attachments:
    1. paymentmethod-128x72
Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #41387

    Ilya Antypenko
    Participant

    Hello esakkiraj_s

    > I have placed two orders using in two different payment methods.But In shop front end order history two orders are having same order number with different payment methods.

    In this case you should see 2 orders with their own payment methods.
    Otherwise it looks like you somehow attached second payment transaction to the previous order.

    > Orocommerce supports multiple payment method for single order?.

    Yes, PaymentBundle supports multiple payment methods for one order, but for now we don’t have any existing payment method which use this feature.

    #41388

    esakkiraj_s
    Participant

    Hello Ilya Antypenkoit,
    Thanks for your reply

    > it looks like you somehow attached second payment transaction to the previous order.
    Yes
    second payment transaction attached to previous order.In which scenario this happens?
    There is any documentation available

    #41389

    Ilya Antypenko
    Participant

    > In which scenario this happens?

    We don’t have something like this in the OroCommerce.
    So, I suppose it’s some bug in your payment integration.
    Please verify that PaymentTransaction::$entityIdentifier and PaymentTransaction::$entityClass are related to the correct order on “purchase” action of your payment integration.

    #41390

    esakkiraj_s
    Participant

    Hello Ilya Antypenkoit,
    Thanks for your reply

    In purchase action i have used below code to get order object.Is it correct?
    If its wrong means there is any other method available to get correct order object.

    $order = $this->doctrineHelper->getEntity(
    $paymentTransaction->getEntityClass(),
    $paymentTransaction->getEntityIdentifier()
    );

    #41391

    Ilya Antypenko
    Participant

    Yes, it looks right.

    You can check that your payment transaction is assigned to the right order using oro_payment_transaction table in a DB.

    #41392

    esakkiraj_s
    Participant

    I have checked oro_payment_transaction table id(oro_payment_transaction)216,217 are assigned to one order number

    #41397

    Ilya Antypenko
    Participant

    You can check that built-in payment methods like “Payment Term” or “Money Order” are working well in your system and then try to find the issue which causes linking of the payment transactions to the same order in your payment integration.

Viewing 7 replies - 1 through 7 (of 7 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top