Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment Module #1

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Payment Module #1

wants to merge 22 commits into from

Conversation

lizztt
Copy link

@lizztt lizztt commented Jul 8, 2024

I've successfully integrated the payment module into the BomaCare Web Application using the Daraja API. To enable external access to the Daraja API service, I utilized ngrok to establish a tunnel from my local environment. Additionally, I set up a dedicated Daraja API BomaCare App, configuring essential credentials such as consumer_key and consumer_secret in both the .env file and the payment controller.

Furthermore, I created the payment routes within the homeowner group in web.php.

To run this on your machine, follow these steps:

  1. Set up ngrok:
  2. Create an account on ngrok and install it on your local machine.
  3. After installation, copy the ngrok-generated URL.
  4. Configure callback URLs: Paste the ngrok-generated URL into both $callbackUrl in PaymentController.php and
    MPESA_CALLBACK_URL in the .env file.
  5. Configure Environment Variables: Ensure the following environment variables are added to your .env file:

MPESA_CONSUMER_KEY=sF1Yl7KfggOdl7nMtGJ18uuHwzlD4b8GmMX4GFyizEPj4FXL
MPESA_CONSUMER_SECRET=s2lAFyCeLP9vJ9CWtDXoBvYd4Q7goOBRKbjEbGl3x5S2GWtJ3jr3kcLgIUcuAQCN
MPESA_SHORTCODE=174379
MPESA_PASSKEY=bfb279f9aa9bdbcf158e97dd71a467cd2c2e1b68413c5b234cfb479c2e8c9a43
MPESA_ENV=sandbox
MPESA_CALLBACK_URL='insert your callbackUrl here' //This is the forwarding url you get from ngrok. eg. https://123abc.ngrok-free.app

@lizztt lizztt closed this Jul 9, 2024
@lizztt lizztt reopened this Jul 9, 2024
@lizztt
Copy link
Author

lizztt commented Jul 9, 2024

I've updated the welcome.blade.php file to reflect the project's objectives. You'll find this in the update landing page module.

lizztt added 3 commits July 9, 2024 23:17
Update README with project details and instructions
@lizztt
Copy link
Author

lizztt commented Jul 10, 2024

I've updated the readme file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants