All Projects → Nordicwebteamvue → vsf-payment-klarna

Nordicwebteamvue / vsf-payment-klarna

Licence: MIT License
Klarna Checkout for Vue Storefront

Programming Languages

Vue
7211 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to vsf-payment-klarna

opencart-3-sanalpos
OpenCart 3.x Sanal Pos Entegrasyonu Ücretsiz
Stars: ✭ 18 (+12.5%)
Mutual labels:  payment-integration
react-native-payumoney
React Native Payumoney (Android/IOS)
Stars: ✭ 18 (+12.5%)
Mutual labels:  payment-integration
adyen-python-api-library
Adyen API Library for Python
Stars: ✭ 41 (+156.25%)
Mutual labels:  payment-integration
ccashcow
💰 Accept cards & crypto. Payments so easy a cow could do it.
Stars: ✭ 40 (+150%)
Mutual labels:  payment-integration
adyen-node-api-library
Adyen API Library for Node.js
Stars: ✭ 82 (+412.5%)
Mutual labels:  payment-integration
cybersource-sdk-java
Java SDK for CyberSource Simple Order API
Stars: ✭ 44 (+175%)
Mutual labels:  payment-integration
magento2
For any issues or questions please get in touch with us via [email protected]
Stars: ✭ 15 (-6.25%)
Mutual labels:  payment-integration
adyen-salesforce-commerce-cloud
Salesforce Commerce Cloud (formerly Demandware)
Stars: ✭ 63 (+293.75%)
Mutual labels:  payment-integration
laravel-payfort
Laravel Payfort provides a simple and rich way to perform and handle operations for Payfort online payment gateway
Stars: ✭ 14 (-12.5%)
Mutual labels:  payment-integration
Paynow-NodeJS-SDK
NodeJS SDK for Zimbabwe's leading payments gateway, Paynow
Stars: ✭ 23 (+43.75%)
Mutual labels:  payment-integration
vsf-payment-paypal
Paypal payment module for Vue Storefront
Stars: ✭ 46 (+187.5%)
Mutual labels:  vue-storefront
vsf-address-book
Customer address book extension for Vue Storefront - Integration to manage customer’s multiple addresses under my account section
Stars: ✭ 20 (+25%)
Mutual labels:  vue-storefront
omnipay-2checkout
2Checkout driver for the Omnipay PHP payment processing library
Stars: ✭ 25 (+56.25%)
Mutual labels:  payment-integration
adyen-hybris
Adyen Payment plugin for Hybris
Stars: ✭ 23 (+43.75%)
Mutual labels:  payment-integration
creatly-backend
🚀 Creatly backend app
Stars: ✭ 71 (+343.75%)
Mutual labels:  payment-integration
culqi-php
Biblioteca que permite integrar la pasarela de pagos CULQI.
Stars: ✭ 32 (+100%)
Mutual labels:  payment-integration
vsf-payment-braintree
vue storefront braintree online payment gateway
Stars: ✭ 14 (-12.5%)
Mutual labels:  vue-storefront
kco rest java
[DEPRECATED] Official Java SDK library for Klarna Services
Stars: ✭ 25 (+56.25%)
Mutual labels:  klarna-checkout
stripe
Stripe integration with Magento 2
Stars: ✭ 58 (+262.5%)
Mutual labels:  payment-integration
python-daraja
Python Wrapper for interacting with the MPESA Daraja API. More Features to be implemented
Stars: ✭ 20 (+25%)
Mutual labels:  payment-integration

vsf-payment-klarna for VSF 1.11

Frontend

Installation

  • Copy packages/payment-klarna to src/modules/payment-klarna
  • Update modules/client.ts with the following:
    import { KlarnaCheckout } from './payment-klarna'
    ...
    export const registerModules: VueStorefrontModule[] = [
      ...,
      KlarnaCheckout
    ]
    

Config

See config.json for example config

klarna.create

Endpoint for creating order (vsf-api)

klarna.confirmation

Endpoint for retrieving Klana confirmation snippet (vsf-api)

klarna.validate_order

Endpoint called when order total changes (vsf-api)

klarna.showShippingOptions

If set to true available shipping methods will be sent to Klarna and enable Klarnas shipping method form

klarna.options

https://developers.klarna.com/api/#checkout-api__create-a-new-order__options

Some plugins might use other keys

Checkout

In theme/pages/Checkout.vue

import KCO from 'src/modules/payment-klarna/components/KlarnaCheckout'

export {
  ...,
  components: {
    klarna-checkout: KCO
  }
}

And then just <klarna-checkout /> where you want to render it

Confirmation page

Will be found at www.example.com/confirmation and www.example.com/STORECODE/confirmation

See beforeRegistration.ts for more info

Plugins

If you need to extend this library you most likely don't need to fork it, just create a plugin!

There's a few default plugins already made. See the plugins folder for README and inspiration.

API

Installation

  • Copy packages/payment-klarna-bridge to src/api/extensions/payment-klarna-bridge
  • Add payment-klarna-bridge to registeredExtensions in local.json

Config

See config.json for example config

klarna.merchant_urls

Klarna docs: https://developers.klarna.com/api/#checkout-api__create-a-new-order__merchant_urls

Alongside Klarnas variables ({checkout.order.id}, {checkout.order.url} and/or {checkout.order.uri}) you can also use {{sourceCode}} which will be replaced currentStoreView().storeCode and {{dataSourceCode}} which will be replaced currentStoreView().dataSourceCode (useful if you need a different field for the url).

klarna.auth

Your Klarna auth credentials

"auth": {
  "user": "PK0123_something",
  "pass": "password"
},

klarna.endpoints

"endpoints": {
  "order": "https://api.something.klarna.com", // pick from https://developers.klarna.com/api/#api-urls
  // TODO: Integrate to magento2-vsf-kco module
  "validate_order": "" // will be called when total amount changes
},

https://developers.klarna.com/api/#api-urls

Magento 2

Please use this module: https://github.com/kodbruket/magento2-vsf-kco

Development

Requirements

Protip: On Mac run, install Docker and Brew then run brew install node && brew install yarn && brew install docker-compose

Get started

git clone --recurse-submodules https://github.com/kodbruket/vsf-payment-klarna
cd vsf-payment-klarna
yarn # set up git hooks
docker-compose up
# new tab
make es-restore # seed Magento catalog data

Visit http://localhost:3000

e2e

yarn cypress

Tunnel

ssh -R vsf-payment-klarna:80:localhost:8080 serveo.net

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].