vsf-payment-paypal

1.0.1 • Public • Published

Vue Storefront PayPal Payment Extension

PayPal Payment extension for vue-storefront, by Develo Design.

The architecture

Architecture diagram

Installation using NPM:

Add the extension to your Vue Storefront package.json using:

$ npm install vsf-payment-paypal --save

Add vsf-payment-paypal to the extensions/index.js

export default [
  require('@vue-storefront/extension-droppoint-shipping/index.js'),
  require('@vue-storefront/extension-google-analytics/index.js'),
  require('@vue-storefront/extension-mailchimp-subscribe/index.js'),
  require('@vue-storefront/extension-payment-backend-methods/index.js'),
  require('@vue-storefront/extension-payment-cash-on-delivery/index.js'),
  require('@vue-storefront/extension-template/index.js'),
  require('vsf-payment-stripe/index.js'),
  require('src/extensions/cms/index.js'),
 
  require('vsf-payment-paypal/index.js')
]

Add the following also to your config/local.json need set paypal.env to sandbox or production.

"paypal": {
  "env": "sandbox",
  "create_endpoint": "http://localhost:8080/api/ext/paypal-payment/create",
  "execute_endpoint": "http://localhost:8080/api/ext/paypal-payment/execute",
  "style": {
    "size": "small",
    "color": "gold",
    "shape": "pill"
  }
}

Also we can use paypal.style option for more customizable PayPal button view. For more info PayPal.

/vsf-payment-paypal/

    Package Sidebar

    Install

    npm i vsf-payment-paypal

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    44.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • develodesignuser