payu-intrepos / Android-Custom-Browser

Custom Browser module for SDK
11 stars 9 forks source link

Android integration issue #4

Closed deepak28290 closed 9 years ago

deepak28290 commented 9 years ago

Can some one please look at this issue http://stackoverflow.com/questions/30895857/payu-payment-integration-in-android-issue ?

Franklin2412 commented 9 years ago

After transaction Payu POST the transaction status response back your surl/furl according to the transaction status.

Please make sure that your surl/furl accept POST request.

additional information for PayU SDK integration

Payu inidia uses javascript interface for sending the data back from your surl/furl to app. please refer http://developer.android.com/guide/webapps/webview.html for more information about Javascript interface.

In Android app your surl/fulr should have a javascript function called PayU.onSuccess() or PayU.onFailure();

Sample code:

Failed

Your data will be send to the onActivityResult's intent. if you call intent.getStringExtra("result") will give your data back, in the above case you will get the following value.

{key1: "data1", key2: "data2"}