Comments (20)
Hey @wedowebapps can you share your code?
from react-paystack.
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.
@ahmadmicro can you share your code?
from react-paystack.
@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.
@ahmadmicro @wedowebapps can I close this issue, please?
from react-paystack.
Paystack callback works only once a day angular4paystack
from react-paystack.
@ajanieniolasolomon react lib or angular4 lib??
from react-paystack.
from react-paystack.
I didn't work on the Angular lib, I worked react and vue lib cc @steveamaza
from react-paystack.
paystack callback event still not firing
from react-paystack.
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.
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.
Also, @Oladapodaniel when did it stop working?
from react-paystack.
It suddenly stopped working for me too
from react-paystack.
Same problem here, callbacks were working and all of a sudden doesn't work anymore
from react-paystack.
I also faced the same issue
Solution: Just downgrade to 4.0.3
from react-paystack.
Hi @jerozeek it's callback is working fine for me. Can you share your snippet so i can review?
from react-paystack.
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.
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.
The callback function is not working on v 5.0.0
from react-paystack.
Related Issues (20)
- OnSuccess & OnClose Function not working HOT 7
- Security Vulnerabilities With Package HOT 6
- Add disabled prop to PayStackButton HOT 2
- Paystack with sanity.io
- TypeScript support HOT 1
- Subscription Start Date HOT 1
- Could not resolve dependency npm install error HOT 1
- onSuccess not accepting props HOT 3
- Ok
- Passing payment options
- The `invoice.update` event isn't getting called in webhook HOT 1
- How do I properly set it up on Next Js HOT 3
- close paystack popup HOT 9
- Cannot load paystack inline script when using SharedArrayBuffer
- pass in access code to either Popup or Button to retrieves the transaction details, HOT 3
- Error when initialising paystack HOT 1
- Export Currency to be accessed by users
- Google Tag Inclusion in Package HOT 1
- why is the amount calculated in kobo HOT 4
- Version 5.0.0m not compatible with react 18.2.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-paystack.