Git Product home page Git Product logo

Comments (20)

iamraphson avatar iamraphson commented on September 24, 2024

Hey @wedowebapps can you share your code?

from react-paystack.

ahmadmicro avatar ahmadmicro commented on September 24, 2024

I have exactly the same issue. It was working and all of a sudden the callback not firing anymore. I didn't touch the code.

from react-paystack.

iamraphson avatar iamraphson commented on September 24, 2024

@ahmadmicro can you share your code?

from react-paystack.

iamraphson avatar iamraphson commented on September 24, 2024

@ahmadmicro @wedowebapps I can't replicate the issue at the moment. Nevertheless, I have updated the package. Install the latest package and let me know if the issue is still there.

from react-paystack.

iamraphson avatar iamraphson commented on September 24, 2024

@ahmadmicro @wedowebapps can I close this issue, please?

from react-paystack.

ajanieniolasolomon avatar ajanieniolasolomon commented on September 24, 2024

Paystack callback works only once a day angular4paystack

from react-paystack.

iamraphson avatar iamraphson commented on September 24, 2024

@ajanieniolasolomon react lib or angular4 lib??

from react-paystack.

ajanieniolasolomon avatar ajanieniolasolomon commented on September 24, 2024

from react-paystack.

iamraphson avatar iamraphson commented on September 24, 2024

I didn't work on the Angular lib, I worked react and vue lib cc @steveamaza

from react-paystack.

Larry741 avatar Larry741 commented on September 24, 2024

paystack callback event still not firing

from react-paystack.

Oladapodaniel avatar Oladapodaniel commented on September 24, 2024

Im having this issue too, it has been working before, just realised that it has stopped working, and i didnt change the code in anyway

from react-paystack.

iamraphson avatar iamraphson commented on September 24, 2024

Im having this issue too, it has been working before, just realised that it has stopped working, and i didn't change the code in any way

I will be updating the package today. However, Can you share your sample code?

from react-paystack.

iamraphson avatar iamraphson commented on September 24, 2024

Also, @Oladapodaniel when did it stop working?

from react-paystack.

michaelihuoma01 avatar michaelihuoma01 commented on September 24, 2024

It suddenly stopped working for me too

from react-paystack.

osumoclement avatar osumoclement commented on September 24, 2024

Same problem here, callbacks were working and all of a sudden doesn't work anymore

from react-paystack.

jerozeek avatar jerozeek commented on September 24, 2024

I also faced the same issue

Solution: Just downgrade to 4.0.3

from react-paystack.

iamraphson avatar iamraphson commented on September 24, 2024

Hi @jerozeek it's callback is working fine for me. Can you share your snippet so i can review?

from react-paystack.

jerozeek avatar jerozeek commented on September 24, 2024

Hi @jerozeek it's callback is working fine for me. Can you share your snippet so i can review?

Here is the code as requested. With version 5.0.4(if am not mistaken) the onSuccess and the onClose were not been called after a successful payment. But when I downgraded it worked 100%

import {usePaystackPayment} from "react-paystack";
import {FC} from "react";
import {IPayments, IPaystackResponse, IPaystackConfig} from "@/utils/interface";
import {CustomButtons} from "@/components/custom/custom.buttons";
import PaymentSummary from "@/components/payment.summary";

type Props = {
    onSuccess: (payload: IPaystackResponse) => void,
    onClose: () => void,
    payload: IPayments,
    config: IPaystackConfig
}

const PayWithPaystack:FC<Props> = ({
   onClose,
   onSuccess,
   payload,
   config,
}) => {

    const PaystackHook = () => {

        const initializePayment = usePaystackPayment(config);

        const _onPay = (event: React.FormEvent<HTMLFormElement>) => {
            event.preventDefault();
            // @ts-ignore
            initializePayment(onSuccess, onClose);
        }

        return (
            <div className={"mt-2 lg:w-[500px] w-full p-2"}>
                <PaymentSummary payment={payload} />
                <form onSubmit={_onPay}>
                    <div className={"w-full mt-2"}>
                        <CustomButtons
                            text={"Confirm Payment"}
                            type={"submit"}
                        />
                    </div>
                </form>
            </div>
        );
    };

    return  <PaystackHook/>

}

export default PayWithPaystack;

from react-paystack.

Holytech avatar Holytech commented on September 24, 2024

The callback function is not working please

I just used it now, payment was successful but it stays on the page the payment was initiated from (I am using NextJS)

from react-paystack.

femakin avatar femakin commented on September 24, 2024

The callback function is not working on v 5.0.0

from react-paystack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.