1.5.2 • Published 8 months ago

@feexpay/react-sdk v1.5.2

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Installation

With npm :

npm install @feexpay/react-sdk

With yarn :

yarn add @feexpay/react-sdk

Initialisation:

To import the library, we can make :

import Feexpay from ‘’@feexpay/react-sdk’’

To init and add the payment button, you add this code in script balise.

<Feexpay
    token = {’/*API KEY*/’}
    id = {’/*Shop's id */ ‘}
    amount = {/*Montant du paiement à effectuer */}
    callback={()=>alert(‘’Pay’’)}
    description={'description'}
    callback_url={"https://www.feexpay.me"}
    callback_info={"callback_info"}
    buttonText="Payer"
    buttonClass={"mt-3"}
    defaultValueField={{'country_iban': "BJ"}}
/>

token (string): your token API key.

id (string): your shop's id.

callback (function): Function called back after payment has been made. This is optional.

callback_url (string): redirect url after payment. This is optional.

amount (int): Amount of payment to be made in XOF.

fieldsToHide (array): By example, you can put fieldsToHide={'email', 'full_name'}

buttonText: The text to be displayed on the payment button before the amount. By example buttonText="Payer".

buttonStyles: Sets of css properties to customize the start button. By example: buttonStyles={{ backgroundColor: "red", color: "black", borderRadius: "25px", width: '25%' }}.

buttonClass (string): Sets of css class name to customize the start button. By example: buttonClass={'mt-4 text-center'}.

defaultValueField: object to auto-complete certain fields. By example: defaultValueField={{'country_iban': "BJ"}}

You can get the shop's id and token API in your account FeexPay in Developer Menu. You won't need to define both callback and callback_url.

1.4.31

8 months ago

1.4.30

8 months ago

1.4.33

8 months ago

1.4.32

8 months ago

1.4.35

8 months ago

1.4.34

8 months ago

1.4.36

8 months ago

1.5.2

8 months ago

1.5.1

8 months ago

1.5.0

8 months ago

1.4.11

8 months ago

1.4.10

8 months ago

1.4.40

8 months ago

1.4.42

8 months ago

1.4.41

8 months ago

1.4.400

11 months ago

1.4.401

11 months ago

1.4.6

10 months ago

1.4.5

10 months ago

1.4.4

10 months ago

1.4.3

10 months ago

1.4.2

10 months ago

1.4.1

11 months ago

1.4.0

11 months ago

1.3.256

11 months ago

1.3.255

11 months ago

1.3.254

11 months ago

1.3.253

11 months ago

1.3.259

11 months ago

1.3.258

11 months ago

1.3.257

11 months ago

1.3.251

11 months ago

1.3.250

11 months ago

1.3.267

11 months ago

1.3.266

11 months ago

1.3.265

11 months ago

1.3.264

11 months ago

1.3.269

11 months ago

1.3.268

11 months ago

1.3.263

11 months ago

1.3.28

11 months ago

1.3.262

11 months ago

1.3.29

11 months ago

1.3.261

11 months ago

1.3.260

11 months ago

1.3.27

11 months ago

1.3.238

11 months ago

1.3.31

11 months ago

1.3.32

11 months ago

1.3.30

11 months ago

1.3.270

11 months ago

1.3.35

11 months ago

1.3.36

11 months ago

1.3.34

11 months ago

1.3.37

11 months ago

1.3.271

11 months ago

1.3.38

11 months ago

1.3.239

11 months ago

1.3.245

11 months ago

1.3.244

11 months ago

1.3.243

11 months ago

1.3.81

11 months ago

1.3.242

11 months ago

1.3.249

11 months ago

1.4.9

10 months ago

1.3.248

11 months ago

1.4.8

10 months ago

1.3.247

11 months ago

1.4.7

10 months ago

1.3.246

11 months ago

1.3.241

11 months ago

1.3.240

11 months ago

1.3.26

1 year ago

1.3.25

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.3.20

1 year ago

1.3.21

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.3.14

1 year ago

1.3.15

1 year ago

1.3.16

1 year ago

1.3.13

1 year ago

1.3.12

1 year ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.11

2 years ago

1.3.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago