2.1.5
Added Feature to Pay with Sadad Number
EdfaSadadPay()
.setOrderId("Unique order_id as string")
.setOrderDescription("Description of the order")
.setOrderAmount(25.0)
.setCustomerName("Merchant customer name here")
.setMobileNumber("Merchant customer mobile number here in format: 966500409598")
.onSuccess { response ->
Log.i("Transaction Success:", response.toString())
Toast.makeText(this, "Transaction Success", Toast.LENGTH_LONG).show()
}
.onFailure { response, exception ->
Log.e("Transaction Failed:", response?.message ?: exception.message ?: "STWR")
Toast.makeText(this, "Transaction Failure", Toast.LENGTH_LONG).show()
}
.initialize { errors ->
// if errors is empty then transaction begins successful else error while initialize
Log.e("Initialize errors", errors.toString())
}Full Changelog: 2.1.4...2.1.5