1.0.37 • Published 4 years ago

payment-modals v1.0.37

Weekly downloads
148
License
-
Repository
-
Last release
4 years ago

Payment Modals

Initial setup

  1. Install the package
    $ npm i payment-modals
  1. Create an element in your DOM with id="payment-modal"

  2. Import default handlePaymentModal value from this library in your project and feel free to use it!

It has several properties, that create modals:

  • window.handlePaymentModal.chooseModal(payNow, submitWithoutPaying, backToForm)

    All it's arguments are callbacks that invoke if appropriate button is pressed

  • window.handlePaymentModal.paymentModal(modalKey, uiData, innerData)

    Each argument is data, needed to configure the init method of SpreedlyExpress

  • window.handlePaymentModal.processingModal()

  • window.handlePaymentModal.errorModal(isOptional, errorRetry, backToForm, errorSkip)

    First argument is a boolean value that represents if the payment is optional Other arguments are callbacks that invoke if appropriate button is pressed

  • handlePaymentModal.successModal(successModalContinue)

    Single callback argument

  • handlePaymentModal.none()

1.0.37

4 years ago

1.0.36

4 years ago

1.0.35

4 years ago

1.0.33

4 years ago

1.0.34

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.26

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.30

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.17

4 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago