Question

Not seeing plug Payment Processor plugin on R2 instance


Badge

I added my ICCProcessingPlugin in the R2 instance that was working on the R1 instance. When I try to create a Processing center I am not seeing the plug in I created as an option (see screen shot) would anyone be able to advise?

 


20 replies

Badge

this is the 23 r2 instance

Userlevel 7
Badge +5

@Merch make sure you have ‘custom plugin’ turned on on the Enable/Disable Features screen.

Badge

 

Badge

it is turned on

Userlevel 7
Badge +5

@Merch did you recompile the dll for the new version?

Badge

no how do i do that?

Userlevel 7
Badge +5

@Merch you need to open the source code in visual studio, replace the references with the new version taken from 23r2 instance and build it. Then replace the files in the customization package. 

Badge

I always work off of the console in acumatica and then just publish the plug in . Why would i need to modify the dll if i created a new instance sandbox and created a new plug in? wouldnt that happen automatically?

Userlevel 7
Badge +5

@Merch if you publish it as a code file and not as a dll, then yes, you should not need to recompile anything. I’m not sure what else may be the case there.

 

P.S. Although I am not sure if a Credit Card plugin can be detected from the code files and not from a dll at all.

Badge

@Evgeny Afanasiev , would it be possible to advise?

Userlevel 3
Badge

@Merch,
If the Custom Payment Plug-in Feature is enabled and you have a valid implementation of CCProcessingBase.Interfaces.V2.ICCProcessingPlugin interface I would expect that Type selector on the processing screen would populate.

The selector is populated by ProcCenterByPluginTypesSelectorAttribute which is custom selector, that using PXBuildManager (and reflection in it), it basically collects all the implementation of “CCProcessingBase.Interfaces.V2.ICCProcessingPlugin” and skips the disabled ones. Based on the screenshot you’ve provided, it should not skip your custom plugin. So most probably it just was not found at all. I agree with Dmitrii - that the issue could be that the plug-in implemented in Code file and not as DLL. You can try to specify full namespace of interface when inheriting (maybe will help to find the class in App_Runtime), and recycle pool do iis reset to ensure that attributes reinitialized, but for such a solution as Credit Card Plug-in I would recommend to use DLL and not a code item.

Badge

 

@Dmitrii Naumov @Evgeny Afanasiev .

Thank you for all your help

I created an extension library and added the public class ProcessingStartup : CCProcessingBase.Interfaces.V2.ICCProcessingPlugin instead of public class ProcessingStartup : ICCProcessingPlugin as you recommended. when I try start i am seeing many of these errors.

see attached screenshot

Userlevel 3
Badge

Hi @Merch,

When you compiling a dll for Acumatica, you should reference needed assemblies from the Bin folder of Acumatica site of same major version with the target instance. T200 training might be useful, I think it covers at least partially how to build and debug customization in VS: https://openuni.acumatica.com/courses/development/

Badge

@Evgeny Afanasiev @Dmitrii Naumov . After compiling it into an extension I am still having the same issue .. what do you think this could be ? at a total loss here

Userlevel 3
Badge

Hi @Merch, after the DLL with your project is compiled, it should be placed in the Bin folder of the site. IIS will recompile the site, as content of Bin folder changed and you should see you plug-in in the list, once site become available.
Then you need to add this DLL in the Bin folder as a File in the customization project, so you can export it as customization package and upload/publish it to other instances.

Badge

@Evgeny Afanasiev I did that. When inspecting the trace i am seeing this error

So i do think its detecting the plug in but then error shortly after.

Badge

never mind i am seeing that even when i unpublish the plugin

Badge

I see on github you used ADCP would that be related to anything?

Userlevel 3
Badge

Hi @Merch,

No, ADCP is just initials for Acumatica Demo Card Plugin. The only guess I have left is the class you’ve derived from the ICCProcessingPlugin does not have a public access modifier. If it is in place, I’d recommend to create a support case and provide the code that not working for review.

Badge

@Evgeny Afanasiev After playing around with it I got it to show up!

Now though when I click on it I am getting a strange FileLoadException error. 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved