GithubHelp home page GithubHelp logo

alimozdemir / grand.plugin.payments.iyzico Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 0.0 22 KB

GrandNode Iyzico implementation

License: MIT License

C# 86.08% HTML 13.92%
iyzico grandnode nopcommerce nopcommerce-payment

grand.plugin.payments.iyzico's Introduction

GrandNode Payment Iyzico

This repository contains an implementation of Iyzico Payment System on GrandNode. Iyzico has a dotnet API which does not support .net core yet. Therefore, I had to use unoffical version of the API which is implemented by armut.com (it is a popular website in Turkey.) You can take a look into the armut's repository here.

Workflow

The plugin first tries to process as regular payment (ProcessPayment). If the card requires 3d secure payment (Error DEBIT_CARDS_REQUIRES_3DS) the plugin redirects the user to 3d secure payment method (PostProcessPayment). Thus, the payment completes as success or failure. On the failure, the plugin adds a order note that only admins can see.

3D secure

I have added a custom value on the payment form that 3d secure payment method. If the customer selects that checkbox the plugin redirects the user's browser to PaymentIyzicoController.ThreeDPayment Action and shows the html content of iyzico api result. Then PaymentIyzicoController.Handler handle the rest of the payment.

Note for the developers and GrandNode owners.

Iyzico has a different approach than regular payment system. It requires order information at the beginning (ProcessPayment) but GrandNode does not supply those information at that method. For that, I will update my local version which I won't going to share any soon but you can do it yourself and open an/a issue/PR to GrandNode repository. You can start with change the method signatures on IPaymentMethod interface.

grand.plugin.payments.iyzico's People

Contributors

alimozdemir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.