You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -
jarnura
changed the title
Implement the Complete Payment Flows for Paystack:
Implement the PaymentAuthorize, PaymentSync, Refund and RefundSync flows for Paystack
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/
Authorize call to be made via Electronic Fund Transfer (payment method).
Implement
impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Paystack
to make Payment Authorize call.Implement
impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Paystack
inpaystack.rs
to make Payment Sync call.Implement
impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Paystack
inpaystack.rs
to make Refund call.Implement
impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Paystack
inpaystack.rs
to make Refund Sync call.There are two types of webhooks Payment, and Refund which to be implemented in
impl webhooks::IncomingWebhook for Paystack
inpaystack.rs
to receive the incoming webhooks sent by the connector.Modify the
get_headers()
andget_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
The text was updated successfully, but these errors were encountered: