Elepay

object Elepay

Elepay SDK API

This class is supposed to be used as the interface of the SDK. All process is performed through this class.

Functions

Link copied to clipboard

Change the language which is used by elepay SDK internally.

Link copied to clipboard

Change the theme of the elepay SDK ui components.

Link copied to clipboard
fun checkIfGooglePayIsReadyToUse(activity: Activity, resultHandler: (Boolean) -> Unit): Job

Check if Google Pay is ready to use.

Link copied to clipboard

Check if the PayPay app could be open for the payment processing.

Link copied to clipboard

Check if the Rakuten Pay app is installed to use Rakuten Pay.

Link copied to clipboard
fun checkout(checkoutJsonString: String, fromActivity: Activity, resultListener: ElepayResultListener)
fun checkout(checkoutJsonString: String, fromActivity: Activity, resultHandler: (ElepayResult) -> Unit)
fun checkout(checkoutJson: JSONObject, fromActivity: Activity, resultListener: ElepayResultListener)
fun checkout(checkoutJson: JSONObject, fromActivity: Activity, resultHandler: (ElepayResult) -> Unit)

Process the checkout request.

Link copied to clipboard
fun processPayment(chargeDataString: String, fromActivity: Activity, resultListener: ElepayResultListener): Boolean
fun processPayment(chargeDataString: String, fromActivity: Activity, resultHandler: (ElepayResult) -> Unit): Boolean
fun processPayment(chargeData: JSONObject, fromActivity: Activity, resultListener: ElepayResultListener): Boolean
fun processPayment(chargeData: JSONObject, fromActivity: Activity, resultHandler: (ElepayResult) -> Unit): Boolean

Process the payment request.

Link copied to clipboard
fun processSource(sourceString: String, fromActivity: Activity, resultListener: ElepayResultListener): Boolean
fun processSource(sourceString: String, fromActivity: Activity, resultHandler: (ElepayResult) -> Unit): Boolean
fun processSource(sourceJson: JSONObject, fromActivity: Activity, resultListener: ElepayResultListener): Boolean

Process the source request.

fun processSource(sourceJson: JSONObject, fromActivity: Activity, resultHandler: (ElepayResult) -> Unit): Boolean

Process the payment request.

Link copied to clipboard
fun processWechatPayResponse(baseResponse: BaseResp)

Process the Wechat Pay response explicitly.

Link copied to clipboard

Setup elepay SDK.