react-paystack
react-paystack copied to clipboard
My Paystack callback event is not firing from today
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 ?
Hey @wedowebapps can you share your code?
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 can you share your code?
@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.
@ahmadmicro @wedowebapps can I close this issue, please?
Paystack callback works only once a day angular4paystack
@ajanieniolasolomon react lib or angular4 lib??
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 .
I didn't work on the Angular lib, I worked react and vue lib cc @steveamaza
paystack callback event still not firing
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
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?
Also, @Oladapodaniel when did it stop working?
It suddenly stopped working for me too
Same problem here, callbacks were working and all of a sudden doesn't work anymore
I also faced the same issue
Solution: Just downgrade to 4.0.3
Hi @jerozeek it's callback is working fine for me. Can you share your snippet so i can review?
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;
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)
The callback function is not working on v 5.0.0