For details on hash calculation for TPV, refer here
For UPI
To Pay using UPI, you need to pass beneficiaryAccountNumber param as below
// For single account number mPaymentParams.setBeneficiaryAccountNumber("123456789");mPaymentParams.setIfscCode("SBIN000700");// For multiple account numbersmPaymentParams.setBeneficiaryAccountNumber("123456789|23456782|1234567"); mPaymentParams.setIfscCode("SBIN000700|KTKN2937492|ICIC0002522");
// For single account number mPaymentParams.beneficiaryAccountNumber ="123456789"mPaymentParams.ifscCode ="SBIN000700"// For multiple account numbersmPaymentParams.beneficiaryAccountNumber ="123456789|23456782|1234567"mPaymentParams.ifscCode ="SBIN000700|KTKN2937492|ICIC0002522"
For UPI Collect
After setting the above parameters for UPI Collect transaction, you can get the payment post params using below
// To provide customer VPAmPaymentParams.setVpa("valid VPA");try { mPostData =newPaymentPostParams(mPaymentParams,PayuConstants.UPI).getPaymentPostParams(); } catch (Exception e) {e.printStackTrace(); }
// To provide customer VPA mPaymentParams.vpa ="valid VPA";try { mPostData =PaymentPostParams(mPaymentParams, PayuConstants.UPI).paymentPostParams } catch (Exception e) { e.printStackTrace(); }
For UPI INTENT
After setting the above parameters for UPI INTENT transaction, you can get the payment post params using below