tirgei / MpesaDaraja

A sample android application to test Safaricom M-Pesa STK push using @twigaeng android-daraja-sdk library
11 stars 8 forks source link

Error opening this project #1

Closed adetheprince closed 7 months ago

adetheprince commented 4 years ago

Desktop\Android Projects\MpesaDaraja-master\app\src\main\java\com\gelostech\mpesadaraja\activities\MainActivity.kt: (75, 30): Unresolved reference: Constants

tirgei commented 4 years ago

Desktop\Android Projects\MpesaDaraja-master\app\src\main\java\com\gelostech\mpesadaraja\activities\MainActivity.kt: (75, 30): Unresolved reference: Constants

What's the issue exactly?

adetheprince commented 3 years ago

looks like that file is missing? Constants.

import com.gelostech.mpesadaraja.commoners.Constants. I know it may contain keys and personal data but would it be possible to see the sample?

tirgei commented 3 years ago

Yeah.. it's supposed to contain these:

object Constants {

    const val PAYBILL = ""
    const val CONSUMER_KEY = ""
    const val CONSUMER_SECRET = ""
    const val CALLBACK_URL = ""
    const val PASSKEY = ""
    const val ACCOUNT_REF = ""
    const val UPDATE_BALANCE_URL = ""

}

You can get them from your Safaricom Portal & the callbacks/update balance from deployment of M-Pesa Daraja Functions