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
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.
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'
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.
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
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.
Hi,
Try to use AddTenderLineToCartClientRequest to add payment line. POS should include sample how to execute this request
Is anybody there.......?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156