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

Implement the PaymentAuthorize, PaymentSync, Refund and RefundSync flows for Paystack #7315

Open
Tracked by #7292
jarnura opened this issue Feb 19, 2025 · 0 comments · May be fixed by #7286
Open
Tracked by #7292

Implement the PaymentAuthorize, PaymentSync, Refund and RefundSync flows for Paystack #7315

jarnura opened this issue Feb 19, 2025 · 0 comments · May be fixed by #7286
Assignees

Comments

@jarnura
Copy link
Member

jarnura commented Feb 19, 2025

Follow the steps outlined in the add_connector.md file.

Implement the PaymentAuthorize, PaymentSync, Refund, RefundSync, and Webhooks flows for Paystack connector.
Connector doc (Paystack): https://paystack.com/docs/payments/payment-channels/

  • Payment Authorize:
    Authorize call to be made via Electronic Fund Transfer (payment method).
    Implement impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Paystack to make Payment Authorize call.
  • Payment Sync:
    Implement impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Paystack in paystack.rs to make Payment Sync call.
  • Refund:
    Implement impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Paystack in paystack.rs to make Refund call.
  • RefundSync:
    Implement impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Paystack in paystack.rs to make Refund Sync call.
  • Webhooks:
    There are two types of webhooks Payment, and Refund which to be implemented in impl webhooks::IncomingWebhook for Paystack in paystack.rs to receive the incoming webhooks sent by the connector.

Modify the get_headers() and get_url() according to the connector documentation.

Implement the Request and Response types and proper status mapping(Payment and Refund) in the transformers.rs file.

Webhooks - Paystack sends a webhook with payment and refund status, we have to catch those and update in the db as well.

Run the following commands before raising the PR -

cargo clippy
cargo +nightly fmt --all

Ref PR: #7286

@jarnura jarnura changed the title Implement the Complete Payment Flows for Paystack: Implement the PaymentAuthorize, PaymentSync, Refund and RefundSync flows for Paystack Feb 19, 2025
@ImSagnik007 ImSagnik007 self-assigned this Feb 19, 2025
@ImSagnik007 ImSagnik007 linked a pull request Feb 20, 2025 that will close this issue
14 tasks
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 a pull request may close this issue.

2 participants