npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fondy-checkout-vue

v2.26.0

Published

Fondy checkout

Downloads

31

Readme

checkout-vue

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

config

{
  options: {},
  params: {},
  button: {}, // button config 
  fields_custom: {},
  messages: {},
  validate: {},
  css_variable: {},
}

options

Name | Type | Default | Description | Priority --- | --- | --- | --- | --- methods | Array | ['card'] | support card, sepa, banklinks_eu, receipt. | methods_disabled | Array | [] | support card, sepa, banklinks_eu, receipt. | card_icons | Array | ['mastercard', 'visa'] | support mastercard, visa, mir, prostir, diners, american_express , jcb, maestro, union_pay.| banklinks_eu_icons | Array | [] | | local_methods_icons | Array | [] | | crypto_icons | Array | [] | | loans_icons | Array | [] | | emoney_icons | Array | [] | | wallets_icons | Array | [] | | title | String | | | options or server link | String | | format url | server or options full_screen | Boolean | true | | locales | Array | [all] | support cs, de, en, es, fr, hu, it, ko, lv, pl, ro, ru, sk, uk.| api_domain | String | 'api.fondy.eu' | | endpoint | Object | | | active_tab | String | 'card' | support card, sepa. | server or options active_method | String | '' | | server or options logo_url | String | | format url | options or server offerta_url | String | | format url | options or server button | Boolean | true | | fee | Boolean | false | | email | Boolean | false | | server or options fields | Boolean | false | | default_country | String | | | countries | Array | | | lang | Boolean | true | | theme | Object | | | show_menu_first | Boolean | false | | disable_request | Boolean | false | no requests are sent to the server | show_button_amount | Boolean | true | displaying the amount on the button | subscription | Object | | | loading | String | | format url | hide_button_title | Boolean | false | | amount_readonly | Boolean | true | |

options.endpoint

Name | Type | Default | Description --- | --- | --- | --- gateway | String | '/latest/checkout-v2/index.html' | button | String | '/latest/checkout-v2/button/index.html' |

options.theme

Name | Type | Default | Description --- | --- | --- | --- type | String | 'light' | support light, dark. preset | String | 'black' | support reset, black, silver, vibrant_silver, vibrant_gold, solid_black, black_and_white, euphoric_pink, heated_steel, nude_pink, tropical_gold, navy_shimmer.

options.subscription

Name | Type | Default | Description --- | --- | --- | --- type | String | 'disable' | support disable, hidden, shown_edit_on, shown_edit_off, shown_readonly periods | Array | ['day', 'week', 'month']| support day, week, month. quantity | Boolean | false | trial | Boolean | false | unlimited | Boolean | true | readonly | Boolean | false |

params

Name | Type | Default | Description | Priority --- | --- | --- | --- | --- merchant_id | Integer | 1396424 | | order_desc | String | | | options or server amount | Integer | null | | currency | String | 'USD' | | response_url | String | | format url | lang | String | browser language | | server or options required_rectoken | String | | support Y, N, y, n. | verification | String | | support Y, N, y, n. | verification_type | String | | support amount, code | token | String | | length 40 | button | String | | length 20-80 | offer | Boolean | false | | recurring_data | Object | | | custom | Object | | | customer_data | Object | | |

params.recurring_data

Name | Type | Default | Description --- | --- | --- | --- every | Integer | 1 | period | String | 'month' | support day, week, month. amount | Integer | 0 | end_time | String | | format YYYY-MM-DD start_time | String | | format YYYY-MM-DD quantity | Integer | 0 | trial_period | String | '' | trial_quantity | Integer | 0 |

params.customer_data

Name | Type | Default | Description --- | --- | --- | --- customer_name | String | | customer_address | String | | customer_zip | String | | customer_city | String | | customer_country | String | | dictionary countries customer_state | String | | phonemobile | String | | format phone email | String | | format email

messages

{
  messages: {
    {en}: {
      {id}: {value},
      ...
    },
    ...
  },
}

validate

{
  validate: {
    {en}: {
      {id}: {value},
      ...
    },
    ...
  },
}

Use

var app = fondy({css selector}, {config})

app.$on('success', function(model) {})
app.$on('error', function(model) {})
app.$on('ready', function(model) {})
app.$on('callback', function(model) {})
app.$on('show-pay', function(model) {})

app.submit()

app.location({method}, {system})

app.setParams({params})

Destroy app

app.$destroy()
app.$el.remove()

Use validate

https://vee-validate.logaretm.com/v3/guide/rules.html#rules

support after, alpha, date_format, decimal, digits, email, max, min, numeric, required, customer_field, phone, numrange, ccard

<input-text name="email" validate="required|email"></input-text>