knox2 / Pesapal

Laravel 5 Package for the Pesapal API
27 stars 38 forks source link

Error while rendering iframe contents #28

Closed odeke closed 4 years ago

odeke commented 4 years ago

Using demo credentials. Iframe returns this following content.

Sorry, an error occurred while processing your request. We are working to fix it as soon as we can.

Full html returned in the iframe is:

PesaPal™ | Unknown Error

Sorry, an error occurred while processing your request. We are working to fix it as soon as we can.

I was able to produce a good iframe using same credentials with plain php using the example code posted here. https://developer.pesapal.com/how-to-integrate/php-sample

knox2 commented 4 years ago

I have not been able to replicate the error you are getting. Check below:

Pesapal

Are you setting the correct values in your .env file?

odeke commented 4 years ago

Yes Sir, I put the demo credentials in the env file.

On Sat, May 16, 2020, 18:32 Timothy Radier notifications@github.com wrote:

I have not been able to replicate the error you are getting. Check below:

[image: Pesapal] https://user-images.githubusercontent.com/2101866/82123693-5df4a900-97a3-11ea-80d9-7899b48128fc.png

Are you setting the correct values in your .env file?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/knox2/Pesapal/issues/28#issuecomment-629663832, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOYQ2BUSWTU5J4QTX223J3RR2WXXANCNFSM4NCRFHVQ .

knox2 commented 4 years ago

Post your Pesapal related .env variables, remove sensitive data

odeke commented 4 years ago

PESAPAL_CONSUMER_KEY="afXA1JykJxxxxxxxxx" PESAPAL_CONSUMER_SECRET="lpemD8xxxxxx" PESAPAL_CURRENCY="USD" PESAPAL_IPN="Api\DonationsController@pesapalIpn" PESAPAL_LIVE="false" PESAPAL_CALLBACK_ROUTE="paymentsuccess"

On Wed, May 20, 2020 at 7:24 PM Timothy Radier notifications@github.com wrote:

Post your Pesapal related .env variables, remove sensitive data

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/knox2/Pesapal/issues/28#issuecomment-631581898, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOYQ2FQANN6XTAUMA3LJJDRSP75PANCNFSM4NCRFHVQ .

wakanyi commented 4 years ago

Am having an issue rendering the iframe correctly. it only shows e-wallet pesapal and mpesa. Kindly assist

knox2 commented 4 years ago

Am having an issue rendering the iframe correctly. it only shows e-wallet pesapal and mpesa. Kindly assist

@wakanyi If the Iframe loads the library correctly, content of the Iframe depends on Pesapal

knox2 commented 4 years ago

PESAPAL_CONSUMER_KEY="afXA1JykJxxxxxxxxx" PESAPAL_CONSUMER_SECRET="lpemD8xxxxxx" PESAPAL_CURRENCY="USD" PESAPAL_IPN="Api\DonationsController@pesapalIpn" PESAPAL_LIVE="false" PESAPAL_CALLBACK_ROUTE="paymentsuccess" On Wed, May 20, 2020 at 7:24 PM Timothy Radier @.***> wrote: Post your Pesapal related .env variables, remove sensitive data — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#28 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOYQ2FQANN6XTAUMA3LJJDRSP75PANCNFSM4NCRFHVQ .

@odeke I'm still unable to replicate this....Contact me directly via timothyradier@gmail.com

wakanyi commented 4 years ago

@knox2 sorry for the late response. I am getting the error below:

Blocked form submission to '/api/postpesapaldirectorderv4/postpayment' because the form's frame is sandboxed and the 'allow-forms' permission is not set.