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

Add Phone Number Field to Payment Request for Phone-Based Payment Channels #44945

Open
maniamartial opened this issue Dec 27, 2024 · 0 comments

Comments

@maniamartial
Copy link

maniamartial commented Dec 27, 2024

Description:

Currently, the Payment Request doctype in ERPNext lacks a dedicated field for capturing the phone number when the payment channel is phone-based. This enhancement proposes adding a Phone Number field to the Payment Request, which will be applicable when the selected payment channel is Phone.

This feature will be particularly useful for scenarios where phone-based payments, such as Mpesa STK Push, are used. By capturing the payer's phone number directly in the Payment Request, the system can streamline payment processing by enabling real-time STK push to the specified phone number.
image

Benefits:

  1. Enhanced Payment Experience:

    • Enables capturing the payer's phone number directly in the Payment Request.
    • Facilitates real-time payment requests for phone-based channels, such as Mpesa.
  2. Improved Integration:

    • Adds flexibility to use phone-based payments across modules like Webshop and POS Standards.
    • Makes it easier to integrate ERPNext with local payment gateways that rely on phone numbers.
  3. Use Case Coverage:

    • Improves the utility of the Payment Request for users in regions where mobile payment systems are dominant.

Implementation:

  • Frontend:

    • Add a Phone Number field to the Payment Request doctype.
    • Conditionally display the Phone Number field when the payment channel is set to Phone.
  • Backend:

    • Validate the phone number format during submission.
    • Ensure the phone number is passed to the appropriate payment gateway for processing.

Compatibility:

This feature is backward-compatible and will not affect existing functionality. The Phone Number field will only be visible and required when the payment channel is set to Phone.

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

No branches or pull requests

1 participant