1.3.25 • Published 12 days ago

@feexpay/react-sdk v1.3.25

Weekly downloads
-
License
ISC
Repository
github
Last release
12 days 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.3.25

12 days ago

1.3.24

19 days ago

1.3.23

19 days ago

1.3.22

21 days ago

1.3.20

23 days ago

1.3.21

22 days ago

1.3.18

24 days ago

1.3.17

25 days ago

1.3.14

2 months ago

1.3.15

2 months ago

1.3.16

2 months ago

1.3.13

2 months ago

1.3.12

2 months ago

1.3.7

6 months ago

1.3.6

6 months ago

1.3.5

6 months ago

1.3.4

8 months ago

1.3.3

10 months ago

1.3.2

10 months ago

1.3.1

10 months ago

1.3.10

6 months ago

1.3.9

6 months ago

1.3.8

6 months ago

1.3.11

6 months ago

1.3.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago