-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
Zohaib edited this page Feb 9, 2023
·
3 revisions
This page describes the ExpressPay Android SDK Setup guide.
You should get the following information from the administrator to begin working with the Payment Platform.
| Info | Description |
|---|---|
| CLIENT_KEY | Unique key to identifying the account in Payment Platform (used as request parameter) |
| CLIENT_PASS | Password for Client authentication in Payment Platform (used for calculating hash parameter) |
| PAYMENT_URL | URL to request the Payment Platform |
Where to get this information? Follow the introduction guide.
The ExpressPay Android SDK supports two initialization methods: explicit and implicit.
- In
AndroidManifest.xmlprovide themeta-datawith following credentials:
<meta-data
android:name="com.expresspay.sdk.CLIENT_KEY"
android:value="merchant-client-key" />
<meta-data
android:name="com.expresspay.sdk.CLIENT_PASS"
android:value="merchant-client-pass" />
<meta-data
android:name="com.expresspay.sdk.PAYMENT_URL"
android:value="merchant-payment-url" />The ExpressPay Android SDK credentials are the mirror of the Payment Platform fields. See above.
- Call the SDK initialization in the
Application:
override fun onCreate() {
super.onCreate()
ExpressPaySdk.init(this)
}- Call the SDK initialization in the
Application:
override fun onCreate() {
super.onCreate()
ExpressPaySdk.init(
this,
"merchant-client-key",
"merchant-client-pass",
"merchant-payment-url",
)
}- ExpressPay Android SDK requires the Internet permission:
<uses-permission android:name="android.permission.INTERNET" />-
In case the SDK is not initialized the
ExpressPaySdkIsNotInitializedExceptionwill be thrown. -
To use the testing environment, please use test cards.
Website: https://expresspay.sa
Phone: +966920033633
Email: sale@expresspay.sa
Address: ExpressPay, Olaya Street, Riyadh, Saudi Arabia
© 2023 - 2024 ExpressPay. All rights reserved.