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(payment_providers): Add MoneyHash #2005

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

Conversation

shahwan42
Copy link

Roadmap Task

NA

Context

MoneyHash is a leading payment infrastructure software in Africa and the Middle East. Our biggest features are providing a superior payment orchestration for many payment providers in the region, smart payment routing among other features.

We have common customers, and it's a needed feature to have MoneyHash integrated into Lago.

This PR integrates MoneyHash as a payment provider for Lago's customers.

Description

This PR implements the following changes

  • When a new customer is created in Lago and the "sync with provider" checkbox is checked, a new customer is also created in MoneyHash.
  • Create a payment URL for invoices, allowing customers to pay their invoices via MoneyHash
  • Create Payment Requests that are processed using the customer's payment method.
  • Webhook Handling
    • Transaction Webhooks
      • On the "transaction.purchase.successful" callback, the invoice/payment status is set to "Succeeded."
      • On the "transaction.purchase.failed" callback, the invoice/payment status is set to "Failed."
    • Intent Webhooks
      • On the "intent.time_expired" callback, the invoice/payment status is set to "Failed."
    • Card Token Webhooks
      • On the "card_token.created" and "card_token.updated" callbacks, the customer’s payment method ID is added or updated.
      • On the "card_token.deleted" callback, the customer’s payment method ID is removed.

List any dependencies that are required.
NA

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