[Plugin] - Custom Payment plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hi Everyone,

I'm developing a plugin for Ogone payment services. My current approach is developing separate plugins for each payment method.

- ogone.paypal
- ogone.mastercard
- ogone.visa
- ogone.banktransfer
- ogone.american_express
- ...

As you can see, it's quite devious. Is there an approach where i can develop one plugin which contains all of these methods and program some logic depending on the shipping country? All of your input will be greatly appreciated.

Kind regards,
11 years ago
Well, if you want each payment option to have its own radio button on the checkout they have to be in their own projects.

You could always create a helper project (which is not a plugin) to host shared code.
11 years ago
That's what i thought. I'm going to create an helper project - containing settings and general functions. I also want to insert an payment logo and group some of the methods (like: creditcards: mastercard, visa, american express || debitcards: bankcontact, mister cash, maestro). Should i program my own plugin overriding the existing 'checkout/paymentmethod' page?
11 years ago
Did you read this one?
https://www.nopcommerce.com/docs/77/how-to-write-a-nopcommerce-plugin.aspx

In your controller, you should have a PaymentInfo action, which you use as the fifth step in the checkout. If you've created the step correctly, nopCommerce will find it through the method GetPaymentInfoRoute in your PaymentProcessor. In that action you should put any extra payment information.

Every plugin has a friendly name, perhaps you could just embed some html-code (Ogone Visa <img src"..."/>) in the friendly name.
11 years ago
lukeskywalker wrote:
Did you read this one?
https://www.nopcommerce.com/docs/77/how-to-write-a-nopcommerce-plugin.aspx

In your controller, you should have a PaymentInfo action, which you use as the fifth step in the checkout. If you've created the step correctly, nopCommerce will find it through the method GetPaymentInfoRoute in your PaymentProcessor. In that action you should put any extra payment information.

Every plugin has a friendly name, perhaps you could just embed some html-code (Ogone Visa <img src"..."/>) in the friendly name.


Indeed lukeskywalker, I've read this tutorial, and developed several small plugins. for better understanding, i've placed an image so you can see what i mean. This is what I want to accomplish:

http://www.degrandcru.be/payment.jpg

Kind regards
11 years ago
To accomplish that you will indeed have to override some CheckoutController actions... but all the embedded views make it such a pain to develop.

Good luck!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.