mWeb Intent Integration

PhonePe Intent is a bundle responsible for invoking PhonePe, GPay, Paytm & Cred apps and allows users to complete transactions. Invoking the app can be done by two different methods, ie., MIntent and AppIntent, which have differences in pre/post-app invoke experience.

App Intent Vs mIntent

These two methods have differences, mostly in two parts.

Pre-App Invoke 

  • With mIntent, we will have two checks (canMakePayment and hasEnrolledInstrument). canMakePayment will check if the app is present on the user’s device. The hasEnrolledPayment will check if users have instruments set up on their phones.
  • While AppIntent doesn’t have any such pre-check, which can inform if the app isn’t installed on the user’s device. It will check if the user has a whitelisted device that supports the app & only informs users when they try to open the payment.

Post-App Invoke

  • With mIntent, we will also return the transaction completion response & inform merchants if the app is closed, transaction is completed/failed. It won’t be possible with AppIntent. Merchants will have to rely on status check polling.

Merchant can opt for any one or both of them as per their requirements, By default, it will be mIntent with canMakePayment check.