Updated 18 December 2016
Create an Activity where we want to access payment response from EBS Payment Gateway.
e.g. MyEBSPaymentResponse.java
OnCreate() method:
Intent intent = getIntent();
String payment_id = intent.getStringExtra(“payment_id”);
where, payment_id is response from EBS SDK and contains PaymentId, AccountId, Mode, BillingDetails,DeliveryDetails etc..
In AndroidMainfest.xml:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<activity android:name=".EBSPaymentSuccessActivity" android:label="Success" android:screenOrientation="portrait" android:theme="@style/AppTheme1.NoActionBar" android:windowSoftInputMode="stateHidden|stateUnchanged"> <intent-filter> <data android:host="<host_name>" android:scheme="<package_name>" /> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> </intent-filter> </activity> |
where <host_name> is any your host_name like “EBS”.
and <package_name> is your package_name of main projet.
Note: If you use flavor in project then better use in place of <package_name> to {applicationId}
Resources : EBS Document.
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.