0

I am using league/omnipay from this repo

However, I always get this error as the PurchaseRequest Response

{"status":0,"message":"Paystack Gateway: Paystack Gateway: Format is Authorization Bearer [secret key]"}

What am I missing

2 Answers2

2

Just add Bearer at this point in your code

"Authorization: Bearer sk_live_*************",

That's all

  • 2
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 05 '21 at 14:09
0

Kindly Follow this to make paystack payment with php. Make sure you're using your paystack test key as the secret key

Qudusayo
  • 1,026
  • 9
  • 15