Skip to content

saboorgee/klarna-checkout-nopcommerce

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Klarna Checkout for nopCommerce

Klarna Checkout plugin for nopCommerce 3.70.

Features

  • Implemented as a nopCommerce payment method.
  • Supports capture.
    • Automatic capture when the order is marked as shipped.
  • Supports voiding an authorized (but not captured) payment.
  • Supports full refund.
  • Test/live mode.
  • Configuration of snippet colors.
  • Works with the "Google Analytics or Universal Analytics" widget.

Premium Support

Need help? Our Premium Support will get you up and running in no time. Contact us for pricing and more information by dropping an email to info@motillo.se.

Installation

Installation can be done either from the precompiled package or directly from source. The easiest way is to use the package.

After installation, make sure to edit the Checkout/Completed.cshtml view so that the Klarna confirmation snippet is shown.

@Html.Action("ConfirmationSnippet", "KlarnaCheckout", new { orderId = Model.OrderId })

From Package

  1. Download zip from the release page.
  2. Unzip the content into the Plugins folder.
  3. Install and configure the plugin through nopCommerce's administration interface.

From Source

  1. Clone the repository
  2. Make a link from the cloned src directory to the Plugins folder in your nop project.
    1. Open a command prompt (admin privileges might be required)
    2. Type: mklink /J C:\Path\To\nop\Project\Plugins\Motillo.Nop.Plugin.KlarnaCheckout C:\Path\To\Cloned\klarna-checkout-nopcommerce\src
  3. Within the solution, right click the Plugins folder and add a reference to the existing project.
  4. Rebuild solution.
  5. Install and configure the plugin through nopCommerce's administration interface.

After making changes to the plugin, make sure you rebuild the project. Every time the plugin is rebuilt, necessary content is copied to Presentation/Nop.Web/Plugins.

Important Notes

This plugin was created for a specific case where the Klarna Checkout snippet is rendered directly inside the payment info area, which means that the customer won't be redirected to a specific payment page. Therefor nop's ordinary "Complete Payment" button needs to be disabled/hidden when using the plugin, since Klarna has its own "Complete Payment" button. Otherwise you will end up with an unpaid order.

This plugin is inspired by Klarna Checkout by Majako.

Contribution

All contributions are welcome: new features, fixes, tests etc.

License

See the LICENSE file.

About

Klarna Checkout for nopCommerce

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%