1.5.2 • Published 9 months ago

@feexpay/react-sdk v1.5.2

Weekly downloads
-
License
ISC
Repository
github
Last release
9 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

9 months ago

1.4.30

9 months ago

1.4.33

9 months ago

1.4.32

9 months ago

1.4.35

9 months ago

1.4.34

9 months ago

1.4.36

9 months ago

1.5.2

9 months ago

1.5.1

9 months ago

1.5.0

9 months ago

1.4.11

9 months ago

1.4.10

9 months ago

1.4.40

9 months ago

1.4.42

9 months ago

1.4.41

9 months ago

1.4.400

12 months ago

1.4.401

12 months ago

1.4.6

11 months ago

1.4.5

11 months ago

1.4.4

11 months ago

1.4.3

11 months ago

1.4.2

11 months ago

1.4.1

12 months ago

1.4.0

12 months ago

1.3.256

12 months ago

1.3.255

12 months ago

1.3.254

12 months ago

1.3.253

12 months ago

1.3.259

12 months ago

1.3.258

12 months ago

1.3.257

12 months ago

1.3.251

12 months ago

1.3.250

12 months ago

1.3.267

12 months ago

1.3.266

12 months ago

1.3.265

12 months ago

1.3.264

12 months ago

1.3.269

12 months ago

1.3.268

12 months ago

1.3.263

12 months ago

1.3.28

12 months ago

1.3.262

12 months ago

1.3.29

12 months ago

1.3.261

12 months ago

1.3.260

12 months ago

1.3.27

12 months ago

1.3.238

12 months ago

1.3.31

12 months ago

1.3.32

12 months ago

1.3.30

12 months ago

1.3.270

12 months ago

1.3.35

12 months ago

1.3.36

12 months ago

1.3.34

12 months ago

1.3.37

12 months ago

1.3.271

12 months ago

1.3.38

12 months ago

1.3.239

12 months ago

1.3.245

12 months ago

1.3.244

12 months ago

1.3.243

12 months ago

1.3.81

12 months ago

1.3.242

12 months ago

1.3.249

12 months ago

1.4.9

11 months ago

1.3.248

12 months ago

1.4.8

11 months ago

1.3.247

12 months ago

1.4.7

11 months ago

1.3.246

12 months ago

1.3.241

12 months ago

1.3.240

12 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