Glossary

Callback

An address on your app that another service calls later to report the result of something you asked it to do.

In plain words

You drop a phone off for repair and leave your number: "call me when it is ready". The repair shop calls you back later. A callback URL is that phone number for apps: you give a payment provider an address on your app, and it sends the result there when the customer has finished.

Safety

Anyone who learns the address can send a fake result, so never trust a callback alone. Check that it matches something you started, process it only once, and confirm the result with the provider before you act on it.

See Accept M-Pesa payments in Laravel.

Found this useful?

Every lesson stays free. Tap the thumbs up so we know what works, or say thanks with a soda or a coffee: it pays for hosting and new lessons.

Buy me a sodaBuy me a coffee

Want more on this?

Tell us which part was not clear, ask for a follow-up lesson, or request a lesson on any topic. We read every request.

I would like
Only to tell you when it is ready.

WhatsApp

Join the channelChat with us

Free lessons and updates in the channel. Questions about learning or training? Chat with us.