---
title: "Comment by nnachi ejegbu on \"How to Integrate Paystack Payment to your Laravel App\" | Hashnode"
description: "Pls, what do you mean by never call paystack API on frontend, only on server. Pls explain with example. Thanks 👍"
url: "https://hashnode.com/posts/how-to-integrate-paystack-payment-to-your-laravel-app/62e683c6053e6bd578426d6b/comment/654b7f7fdea030f4dec0c02d"
---

[Discussion](https://hashnode.com/posts/how-to-integrate-paystack-payment-to-your-laravel-app/62e683c6053e6bd578426d6b)

Comment [How to Integrate Paystack Payment to your Laravel App](https://hashnode.com/posts/how-to-integrate-paystack-payment-to-your-laravel-app/62e683c6053e6bd578426d6b)

[nnachi ejegbu](https://hashnode.com/@Webglobal)

[Nov 8, 2023](https://hashnode.com/posts/how-to-integrate-paystack-payment-to-your-laravel-app/62e683c6053e6bd578426d6b/comment/654b7f7fdea030f4dec0c02d)

Pls, what do you mean by never call paystack API on frontend, only on server. Pls explain with example. Thanks 👍

[Onilude Segun](https://hashnode.com/@Segtel)

[Nov 8, 2023](https://hashnode.com/posts/how-to-integrate-paystack-payment-to-your-laravel-app/62e683c6053e6bd578426d6b/comment/654b7f7fdea030f4dec0c02d#reply-654b80a691ec4bf2c5decca2)

Making a request to the Paystack API will require you to provide your Paystack Secret Key and doing this from the frontend will mean that if anyone "inspects the website's element" from their browser, the secret key will be seen also and a bad actor can make initialize transactions directly with it

[nnachi ejegbu](https://hashnode.com/@Webglobal)

[Nov 8, 2023](https://hashnode.com/posts/how-to-integrate-paystack-payment-to-your-laravel-app/62e683c6053e6bd578426d6b/comment/654b7f7fdea030f4dec0c02d#reply-654b82aadea030f4dec0c091)

So the example given in your post is the server method as the best?
