react-paystack icon indicating copy to clipboard operation
react-paystack copied to clipboard

My Paystack callback event is not firing from today

Open wedowebapps opened this issue 6 years ago • 20 comments

Hello I have integrated your package in my react app, and it was working fine till yesterday but from today the callback event is not firing,

Can you please help me with this issue ?

wedowebapps avatar Sep 05 '18 07:09 wedowebapps

Hey @wedowebapps can you share your code?

iamraphson avatar Sep 05 '18 15:09 iamraphson

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.

ahmadmicro avatar Sep 08 '18 04:09 ahmadmicro

@ahmadmicro can you share your code?

iamraphson avatar Sep 08 '18 18:09 iamraphson

@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.

iamraphson avatar Sep 08 '18 19:09 iamraphson

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

iamraphson avatar Oct 21 '18 21:10 iamraphson

Paystack callback works only once a day angular4paystack

ajanieniolasolomon avatar Dec 02 '18 09:12 ajanieniolasolomon

@ajanieniolasolomon react lib or angular4 lib??

iamraphson avatar Dec 02 '18 13:12 iamraphson

Angular it works just once in a day

On Sun, 2 Dec 2018, 14:39 Ayeni Olusegun, [email protected] wrote:

@ajanieniolasolomon https://github.com/ajanieniolasolomon react lib or angular4 lib??

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iamraphson/react-paystack/issues/9#issuecomment-443508397, or mute the thread https://github.com/notifications/unsubscribe-auth/AVlX-V-jNxr5i4LhWPW2aqpK3JM4E8UMks5u09glgaJpZM4WaTCY .

ajanieniolasolomon avatar Dec 02 '18 13:12 ajanieniolasolomon

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

iamraphson avatar Dec 02 '18 14:12 iamraphson

paystack callback event still not firing

Larry741 avatar Feb 14 '23 13:02 Larry741

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

Oladapodaniel avatar Mar 21 '23 11:03 Oladapodaniel

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?

iamraphson avatar Apr 02 '23 17:04 iamraphson

Also, @Oladapodaniel when did it stop working?

iamraphson avatar Apr 02 '23 18:04 iamraphson

It suddenly stopped working for me too

michaelihuoma01 avatar May 06 '23 14:05 michaelihuoma01

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

osumoclement avatar Aug 08 '23 09:08 osumoclement

I also faced the same issue

Solution: Just downgrade to 4.0.3

jerozeek avatar Jan 08 '24 13:01 jerozeek

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

iamraphson avatar Jan 08 '24 21:01 iamraphson

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;

jerozeek avatar Jan 10 '24 06:01 jerozeek

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)

Holytech avatar May 03 '24 04:05 Holytech

The callback function is not working on v 5.0.0

femakin avatar May 27 '24 20:05 femakin