web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Calling Pay Card Operation from custom Operation

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    on at

    Is anybody there.......?

  • Oksana Kovaliova Profile Picture
    3,597 on at

    Hi,

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

  • Community Member Profile Picture
    on at

    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
    3,597 on at

    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
    on at

    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
    3,597 on at

    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
    on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans