checkout

fun checkout(checkoutJsonString: String, fromActivity: Activity, resultListener: ElepayResultListener)

Process the checkout request.

Note: This method is supposed to be used when your project could neither use Kotlin nor support Java 8 lambda expression. If your project is based on Kotlin or can uses Java 8 lambda expressions, consider using the API that takes a ElepayResultHandler callback.

Parameters

checkoutJsonString

The raw string value of the checkout JSON object.

fromActivity

An Activity instance used to show payment processing UI.

resultListener

The result handler


fun checkout(checkoutJson: JSONObject, fromActivity: Activity, resultListener: ElepayResultListener)

Process the checkout request.

Note: This method is supposed to be used when your project could neither use Kotlin nor support Java 8 lambda expression. If your project is based on Kotlin or can uses Java 8 lambda expressions, consider using the API that takes a ElepayResultHandler callback.

Parameters

checkoutJson

A JSON object contains the checkout data.

fromActivity

An Activity instance used to show payment processing UI.

resultListener

The result handler


fun checkout(checkoutJsonString: String, fromActivity: Activity, resultHandler: (ElepayResult) -> Unit)

Process the checkout request.

Parameters

checkoutJsonString

A string value represents the JSON object which contains the checkout data.

fromActivity

An Activity instance used to show processing UI.

resultHandler

The result handler


fun checkout(checkoutJson: JSONObject, fromActivity: Activity, resultHandler: (ElepayResult) -> Unit)

Process the checkout request.

Parameters

checkoutJson

A JSON object contains the checkout data.

fromActivity

An Activity instance used to show processing UI.

resultHandler

The result handler