Flutterwave / React-Native

React Native library for Flutterwave for Business (F4B) v2 and v3 APIs.
https://developer.flutterwave.com/
MIT License
6 stars 13 forks source link

Fluttterwave does not initiate the transaction. #60

Closed jet2018 closed 1 year ago

jet2018 commented 1 year ago

Am trying to integrate this library in my react native This is my button's code.

<FlutterwaveButton
    onRedirect={handleOnRedirect}
    options={{
        tx_ref: generateTransactionRef(20),
        authorization: pub_key,
        customer: {
            email: 'ezrajet9@gmail.com'
        },
        amount: amount,
        currency: 'NGN',
        payment_options: 'card, mobilemoney'
    }}
    style={{ height: 34, color: "#fff" }}
    textColor={"#fff"} className="bg-orange-500 ml-auto mr-2 text-white">
    <Text className="text-white" style={{ fontFamily: "teleka_regular" }}> Deposit { amount}</Text>
</FlutterwaveButton> 

The button shows very well, but there is nothing happening when I click it. Anything am doing wrong, I seem to be following the guide.

jet2018 commented 1 year ago

I switched to using PayWithFlutterwave and it worked, so I guess no more use for this issue