Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Calling Pay Card Operation from custom Operation

Posted on by Microsoft Employee

Hi,

I've added a custom Operation Handler in Modern POS and I need to call the existing Pay Card operation form my custom operation.

All I want to do is a complete payment transaction from my custom button but with passing some extra properties.

AX Dynamics 365 Update 12

Modern POS

Thanks,

Shabaz Chishty

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Calling Pay Card Operation from custom Operation

    The major difference between the two buttons would be that when my custom button is pressed, my Payment Connector should know that it was raised from custom button and also read the passed extra property and proceed the payment accordingly.

    In case of standard it will proceed the standard way.

    Your work around seems a way to me. As you said, "better than nothing". :-)

    I'll give it a try.

    Thanks a lot.

  • Oksana Kovaliova Profile Picture
    Oksana Kovaliova 3,595 on at
    RE: Calling Pay Card Operation from custom Operation

    I do not see any request that can be used to start PayCard operation from custom button - maybe try to request from Microsoft support either.

    What should be difference from business prospective between your and standard buttons?

    You can extend standard 'pay card' handlers to add some properties - check PaymentSample - but in this case properties will always be added.

    As a workaround, I would ass message dialog to PrePaymentTrigger - and ask cashier, when he clicks on standard button, if custom/standard logic should be executed - I know, it's not super user-friendly, but 'better than nothing'

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Calling Pay Card Operation from custom Operation

    Okay,

    I'll surely report it to the Support.

    On another note, Can I simply trigger the standard payment method from my button, and add some properties with it? All I need, is to know at the connector which button has raised the payment, mine or standard?

    Thank you so much.

  • Oksana Kovaliova Profile Picture
    Oksana Kovaliova 3,595 on at
    RE: Calling Pay Card Operation from custom Operation

    It's limitation for now, unfortunately, that transaction is not finished automatically. If it's business critical, try to report to Microsoft via Support - maybe they will plan this for next release

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Calling Pay Card Operation from custom Operation

    Thanks for the reply.. I'm happy somebody replied at last.. :-)

    Tried that already. Also tried AddPreProcessedTenderLineToCartRequest, It adds the preprocessed tender line to cart and also updates the balance amount to zero.

    But still doesn't concludes the transaction.

    I wrote my own cart Checkout request using the DataServiceRequest, it sends all the right parameters but returns an invalid Cart status error.

  • Oksana Kovaliova Profile Picture
    Oksana Kovaliova 3,595 on at
    RE: Calling Pay Card Operation from custom Operation

    Hi,

    Try to use AddTenderLineToCartClientRequest to add payment line. POS should include sample how to execute this request

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Calling Pay Card Operation from custom Operation

    Is anybody there.......?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans