Payment Support

To support payment from mini-apps, some additional components are needed:

Installation#

implement("vn.teko.hestia:terra-iris:$version")
implement("vn.teko.hestia:hestia-payment-controller:$version")

Configure#

Please contact us we will do it for you

Initialize#

After TerraApp is initialized, Iris and HestiaPaymentController will be initialized automatically.

Set host app user ID (optional)#

Should do this when the host app has registered IPN for mini-app payments in Terra Payment service. So the host app can use the hostAppUserId in the IPN body to map with the user, who has created orders in mini-apps.

val hestiaPaymentController = TerraHestiaPaymentController.getInstance(terraApp)
hestiaPaymentController.setHostAppUserId("host-app-user-ID")