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

Feat/paystack integration #1354

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from

Conversation

mfontosco
Copy link

Pull Request

Description

This PR integrates Paystack as a payment gateway, enabling secure payment processing. It includes API endpoints for payment initiation, verification, and plan creation.

feat: Added Paystack payment gateway integration

Related Issue

Fixes #(issue)

Type of Change

  • [x ] feat: New feature
    feat: Added Paystack payment gateway integration
  • fix: Bug fix
  • docs: Documentation updates
  • style: Code style/formatting changes
  • refactor: Code refactoring
  • perf: Performance improvements
  • test: Test additions/updates
  • chore: Build process or tooling changes
  • ci: CI configuration changes
  • other:

How Has This Been Tested?

via unit test

  • [x ] Unit tests
  • Integration tests
  • Manual tests

Test Evidence

Screenshot 2025-03-02 012502

Screenshots (if applicable)

Documentation Screenshots (if applicable)

Screenshot 2025-03-02 013639

Checklist

  • My code follows the project's coding style
  • [x ] I have commented my code, particularly in hard-to-understand areas
  • [ x] I have made corresponding changes to the documentation
  • [x ] My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • [x ] Any dependent changes have been merged and published
  • [x ] I have included a screenshot showing all tests passing
  • I have included documentation screenshots (if applicable)

Additional Notes

@mfontosco mfontosco force-pushed the feat/paystack-integration branch from 4547fb6 to b84b496 Compare March 2, 2025 00:51
samuelogboye
samuelogboye previously approved these changes Mar 2, 2025
Copy link

@samuelogboye samuelogboye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


@Post('initialize')
initiate(@Body() createPaystackPaymentDto: CreatePaystackPaymentPlanDto, @Req() req: { user: UserPayload }) {
if (!req.user?.id) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This here is not needed, coz the global middleware handles it for you already

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted boss..

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.

3 participants