payu-intrepos / payumoney-new-sample-app

New Sample App For PayUmoney and PnP SKD integration
40 stars 37 forks source link

why there are payment method selection if it is non-seamless #14

Closed ashu2121 closed 4 years ago

ashu2121 commented 6 years ago

First of all thanks for great work :) i checked example and found switch_disable_wallet = (SwitchCompat) findViewById(R.id.switch_disable_wallet); switch_disable_netBanks = (SwitchCompat) findViewById(R.id.switch_disable_netbanks); switch_disable_cards = (SwitchCompat) findViewById(R.id.switch_disable_cards);

Can u please tell me why these are present if this is non-seamless payment gateway type. what is use case of them here?

Also while i found u had missed response validation that is validate the hash returned by response with server side generated hash code and than display result to end user here is code i found

Hash Generation for Payment Response $responseHashSeq = $salt.'|'.$status.'|udf1|udf2|||||'.$email.'|'.$firstname.'|'.$productinfo.'|'.$amount.'|'.$txnid.'|'.$key; $hash = hash("sha512", $respnsseHashSeq);

Before transaction response is displayed to the user, please verify the authenticity of the transaction by generating a response hash. The hash generated by you should match the one send by PayUmoney in response.

you can found detail here about Response Handling in DOC

let me know what is ur response thanks