Hello everyone,
I am in the process of integrating PhonePe PG into a payment application. My code functions correctly with test credentials. I require assistance with the following tasks:
- Fetching the amount and customer’s mobile number to create the main payload.
- Passing the merchant_transaction_id as ‘merchantTransactionId’ to create the main payload.
- checksum validation–>Actually Awaiting some clarification from PhonePe for checksum validation process.
- Finalizing the request—if the payment is successful, adding the payment details; if failed or pending, then checking the payment status later and updating the documentation accordingly.
Forked codes can be found at: GitHub - Ulter52/payments: A payments app for frappe
- payments/payment_gateways/doctype/phonepe_settings/phonepe_settings.py
- payments/templates/pages/phonepe_checkout.py
- payments/templates/pages/phonepe_checkout.html
Any improvements or suggestions are welcome.