Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Quicksilver - payment processors

$
0
0

Hello everyone,

I am trying to spin up a custom payment gateway in my own project using the Quicksilver approach.  If I add a new one in Quicksilver, I can make it work.  In my own project, the payment processor never gets called.  I see that you have to create a class implementing AbstractPaymentGateway and IPaymentPlugin in a shared project which is then referenced by Commerce and CMS.  In Quicksilver they also have PaymentMethodBase (implements IPaymentMethod) which is used to spin up payment methods for each gateway.  It appears that you put the magic string, SystemName, into the PaymentMethod you create from PaymentMethodBase, and then make sure to create a Payment type in Commerce Manager using that same magic string, as well as setting its class to the one you put in the shared project.

Then when Quicksilver fires up, there is a new payment method, and it will use your payment gateway code (you also have to add some views to make it not break, but the code is what matters).

Even if I bring in Quicksilver's PaymentMethodBase into my own project and do all the other steps, my payment processor will never be called.

Does anyone have any clues or a working example outside Quicksilver?

Thanks so much!

Kurt


Viewing all articles
Browse latest Browse all 9076

Trending Articles