2016-10-21 5 views
3

私のアプリケーションにPayUMoneyを統合しようとしています。PayUmoney Android統合の問題

アプリケーションは、次のテスト資格情報を使用すると適切な出力を得ます。

String merchant_key = "kYz2vV"; 
String salt = "zhoXe53j"; 
String base_url = "https://test.payu.in/_payment"; 
String SUCCESS_URL = "https://www.payumoney.com/mobileapp/payumoney/success.php"; 
String FAILED_URL = "https://www.payumoney.com/mobileapp/payumoney/failure.php"; 

&キーをライブの資格情報で置き換えた場合、

String merchant_key = "gtKFFx"; 
String salt = "eCwWELxi"; 
String base_url = "https://secure.payu.in/_payment"; 
String SUCCESS_URL = "https://www.payumoney.com/mobileapp/payumoney/success.php"; 
String FAILED_URL = "https://www.payumoney.com/mobileapp/payumoney/failure.php"; 

エラーが表示されます。私は、次のparamを送っていますどちらの場合も、

enter image description here

"amount" -> "2.00" 
"phone" -> "1234567899" 
"service_provider" -> "payu_paisa" 
"txnid" -> "d14c0152fd952498ebbf" 
"email" -> "[email protected]" 
"hash" -> "b7f634896ec080f9f31424bd7c189e440f4cba573ada744dc2069ac9c79fa2bb95f3c7dc48f65eb123b0dd3c70de0b3fedfedca0ee3c013eb7a52c55e7833b31" 
"surl" -> "https://www.payumoney.com/mobileapp/payumoney/success.php" 
"furl" -> "https://www.payumoney.com/mobileapp/payumoney/failure.php" 
"firstname" -> "test" 
"productinfo" -> "Test" 
"key" -> "gtKFFx"(for live)/"kYz2vV"(for test) 

解決策を教えてください。

ありがとうございました。私はより多くの場合PayU https://github.com/payu-intrepos/Android-SDK-Sample-App

を統合するには、このリンクのサンプルコードを使用している

+0

payumoney資格情報またはpayubiz資格情報は何を使用していますか? –

+0

@AbhishekAgarwalの資格情報は、merchant_keyとsaltについて質問していますか? – Priyanka

+0

@Priyanka、私もpayuの支払いの侵入に苦しんでいる、エミュレータ4.3でデモアプリを実行することはできますか? – Jayesh

答えて

0

、あなたはここにhttps://github.com/payu-intrepos/Documentations/wiki/6.-Android-SDK-Integration

をアンドロイドPayU SDKの統合をチェックアウトすることができます私はあなたが私が行っているすべてのパラメータ に合格していないんだと思いますこれは以下のようなパラメータを使用しています

String merchantKey = "YOUR_KEY"; 

String mandatoryKeys[] = { PayuConstants.KEY, PayuConstants.AMOUNT, PayuConstants.PRODUCT_INFO, 
    PayuConstants.FIRST_NAME, PayuConstants.EMAIL, PayuConstants.TXNID, PayuConstants.SURL, 
    PayuConstants.FURL, PayuConstants.USER_CREDENTIALS, PayuConstants.UDF1, PayuConstants.UDF2, 
    PayuConstants.UDF3, PayuConstants.UDF4, PayuConstants.UDF5, PayuConstants.ENV}; 

String mandatoryValues[] = { merchantKey, "10.0", "myproduct", "firstname", "[email protected]", 
     ""+System.currentTimeMillis(), "https://payu.herokuapp.com/success", 
     "https://payu.herokuapp.com/failure", merchantKey+":[email protected]", 
     "udf1", "udf2", "udf3", "udf4", "udf5", ""+PayuConstants.PRODUCTION_ENV}; 
+0

はpayuのサポートアンドロイドバージョン5.0以下ですか? – Jayesh

+0

これはサポートしていますが、私はminimumSdkLevelが9であるというサンプルアプリケーションをチェックしました。 –

+0

Ya、そうですが、Android 4.3エミュレータでアプリを実行すると、このhttp://stackoverflow.com/questions/のようなエラーが表示されます39995922/java-lang-classnotfoundexception-android-net-network – Jayesh

関連する問題