Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Commerce forum / Execute a program from...
Commerce forum

Execute a program from PrePaymentTrigger on ModernPOS SDK

Posted on by 140

Hi all

We need to use a dll as payment interface, so this is why we don´t implement the end-to-end payment tutorial, to achieve this we decided do it by ModerPOS which is based in TypeScript.

We override the PrePaymentTrigger because it's cancelable so it suppose that if the interface returns an error or non-success response we could cancel the payment process.

I have never work with typescript/javascript  so I'm finding some problems programing on this SDK.

In the image we wrote some code to test a conditional response, it worked, even we could debug the code, it was performed from line 49 to line 63

In order to test a custom executable program (because we plane to call the assembly from this executable) we wrote the code in line 37 and forward, in that case we don't get any response/error, the breakpoints don't hit and it seems that the error doesn't cancel the operation.

If somebody could tell us what's wrong, we will appreciate it

8508.trigger.PNG

Thanks in advance

Jose Fuentes

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 Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans