2.26.0 • Published 12 months ago

fondy-checkout-vue v2.26.0

Weekly downloads
192
License
MIT
Repository
github
Last release
12 months ago

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

NameTypeDefaultDescriptionPriority
methodsArray'card'support card, sepa, banklinks_eu, receipt.
methods_disabledArray[]support card, sepa, banklinks_eu, receipt.
card_iconsArray'mastercard', 'visa'support mastercard, visa, mir, prostir, diners, american_express , jcb, maestro, union_pay.
banklinks_eu_iconsArray[]
local_methods_iconsArray[]
crypto_iconsArray[]
loans_iconsArray[]
emoney_iconsArray[]
wallets_iconsArray[]
titleStringoptions or server
linkStringformat urlserver or options
full_screenBooleantrue
localesArrayallsupport cs, de, en, es, fr, hu, it, ko, lv, pl, ro, ru, sk, uk.
api_domainString'api.fondy.eu'
endpointObject
active_tabString'card'support card, sepa.server or options
active_methodString''server or options
logo_urlStringformat urloptions or server
offerta_urlStringformat urloptions or server
buttonBooleantrue
feeBooleanfalse
emailBooleanfalseserver or options
fieldsBooleanfalse
default_countryString
countriesArray
langBooleantrue
themeObject
show_menu_firstBooleanfalse
disable_requestBooleanfalseno requests are sent to the server
show_button_amountBooleantruedisplaying the amount on the button
subscriptionObject
loadingStringformat url
hide_button_titleBooleanfalse
amount_readonlyBooleantrue

options.endpoint

NameTypeDefaultDescription
gatewayString'/latest/checkout-v2/index.html'
buttonString'/latest/checkout-v2/button/index.html'

options.theme

NameTypeDefaultDescription
typeString'light'support light, dark.
presetString'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

NameTypeDefaultDescription
typeString'disable'support disable, hidden, shown_edit_on, shown_edit_off, shown_readonly
periodsArray'day', 'week', 'month'support day, week, month.
quantityBooleanfalse
trialBooleanfalse
unlimitedBooleantrue
readonlyBooleanfalse

params

NameTypeDefaultDescriptionPriority
merchant_idInteger1396424
order_descStringoptions or server
amountIntegernull
currencyString'USD'
response_urlStringformat url
langStringbrowser languageserver or options
required_rectokenStringsupport Y, N, y, n.
verificationStringsupport Y, N, y, n.
verification_typeStringsupport amount, code
tokenStringlength 40
buttonStringlength 20-80
offerBooleanfalse
recurring_dataObject
customObject
customer_dataObject

params.recurring_data

NameTypeDefaultDescription
everyInteger1
periodString'month'support day, week, month.
amountInteger0
end_timeStringformat YYYY-MM-DD
start_timeStringformat YYYY-MM-DD
quantityInteger0
trial_periodString''
trial_quantityInteger0

params.customer_data

NameTypeDefaultDescription
customer_nameString
customer_addressString
customer_zipString
customer_cityString
customer_countryStringdictionary countries
customer_stateString
phonemobileStringformat phone
emailStringformat 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>
2.26.0

12 months ago

2.25.2

1 year ago

2.25.1

1 year ago

2.25.0

1 year ago

2.24.1

1 year ago

2.24.0

1 year ago

2.24.3

1 year ago

2.24.2

1 year ago

2.23.1

1 year ago

2.23.0

1 year ago

2.19.6

1 year ago

2.19.5

2 years ago

2.22.0

1 year ago

2.21.0

1 year ago

1.14.1

2 years ago

2.19.4

2 years ago

2.19.2

2 years ago

2.19.3

2 years ago

2.19.0

2 years ago

2.17.2

2 years ago

2.19.1

2 years ago

2.17.1

2 years ago

2.18.0

2 years ago

2.16.3

2 years ago

2.16.4

2 years ago

2.16.1

2 years ago

2.16.2

2 years ago

2.16.0

2 years ago

2.15.2

2 years ago

2.15.3

2 years ago

2.15.1

3 years ago

2.15.0

3 years ago

2.14.0

3 years ago

2.13.0

3 years ago

2.12.1

3 years ago

2.12.0

3 years ago

2.11.1

3 years ago

1.14.0

3 years ago

2.11.0

3 years ago

2.10.0

3 years ago

2.9.5

3 years ago

2.9.2

3 years ago

2.9.1

3 years ago

2.9.4

3 years ago

2.9.3

3 years ago

2.9.0

3 years ago

1.13.2

3 years ago

2.8.1

3 years ago

2.8.2

3 years ago

2.8.0

3 years ago

2.6.1

3 years ago

2.5.3

3 years ago

2.5.2

3 years ago

2.5.1

3 years ago

2.5.0

3 years ago

2.4.0

3 years ago

2.3.4

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.4

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

1.13.1

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

1.13.0

4 years ago

1.12.0

4 years ago

1.11.2

4 years ago

1.11.1

4 years ago

1.11.0

4 years ago

1.10.0

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.5

4 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.3

5 years ago

1.1.2

5 years ago