PhonePe Payment for Drupal Commerce
This module integrates Drupal Commerce with PhonePe, allowing customers to pay for orders using PhonePe's various payment methods like UPI, cards, and wallet. It facilitates payment initiation and processing through the PhonePe Payment API.
Enables Drupal Commerce orders to be paid using PhonePe payment methods.
PhonePe is a popular digital wallet and online payment application that supports instant money transfers and payments through UPI, cards, and wallet services.
This module provides a Drupal Commerce PhonePe integration and includes a client library to initiate and process payments using the PhonePe Payment API.
Configuration:
- Add the PhonePe Payment gateway from:
admin/commerce/config/payment-gateways/add - Enter the machine name of the profile type to be used for API-related customer details in the Profile textbox.
(Default profile type:customer) - The selected profile type must include an Address field/entity.
- Add a phone/mobile field to the selected profile type with the machine name:
field_mobile
Important: Ensure that the mobile number field is added to the selected profile type.
You can add fields here:
/admin/config/people/profile-types/manage/customer/fields
For UAT testing and setup guidance, refer to:
https://developer.phonepe.com/v1/docs/uat-testing
Note: PhonePe SDK v2 is implemented in the 5.x branch.