2.9.4 • Published 9 months ago

capacitor-khipu v2.9.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

capacitor-khipu

Capacitor plugin for Khipu

Install

npm install capacitor-khipu
npx cap sync

iOS setup

No need for aditional steps

Android setup

Main Khipu repository

For Android to be able to locate the khenshin aar you need to add the maven repository of khenshin to the allproyects section of the android/build.gradle file.

Something like:

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://dev.khipu.com/nexus/content/repositories/khenshin' }
    }
}

Note that google() and mavenCentral() repos are usually already added.

Jetpack compose and Kotlin

Khipu client for Android use Jetpack Compose technology, in order to do that the kotlin plugin must be enabled.

In the android/build.gradle file add the classpath for the org.jetbrains.kotlin:kotlin-gradle-plugin:<version> artifact

buildscript {
    
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:8.2.1'
        classpath 'com.google.gms:google-services:4.4.0'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

Note that the classpath for com.android.tools.build:gradle:<version> and com.google.gms:google-services:<version> are usually already there.

Then in the android/app/build.gradle file add the plugin at the top of the file

apply plugin: 'com.android.application'
apply plugin: 'org.jetbrains.kotlin.android'

Note that the com.android.application plugin is usually already there.

API

startOperation(...)

startOperation(options: StartOperationOptions) => Promise<KhipuResult>
ParamType
optionsStartOperationOptions

Returns: Promise<KhipuResult>


Interfaces

KhipuResult

PropType
operationIdstring
exitTitlestring
exitMessagestring
exitUrlstring
result'OK' | 'ERROR' | 'WARNING' | 'CONTINUE'
failureReasonstring
continueUrlstring
eventsKhipuEvent[]

KhipuEvent

PropType
namestring
timestampstring
typestring

StartOperationOptions

PropType
operationIdstring
optionsKhipuOptions

KhipuOptions

PropType
localestring
titlestring
titleImageUrlstring
skipExitPageboolean
theme'light' | 'dark' | 'system'
colorsKhipuColors
showFooterboolean
showMerchantLogoboolean
showPaymentDetailsboolean

KhipuColors

PropType
lightBackgroundstring
lightOnBackgroundstring
lightPrimarystring
lightOnPrimarystring
lightTopBarContainerstring
lightOnTopBarContainerstring
darkBackgroundstring
darkOnBackgroundstring
darkPrimarystring
darkOnPrimarystring
darkTopBarContainerstring
darkOnTopBarContainerstring
2.9.4

9 months ago

2.9.3

10 months ago

2.9.2

12 months ago

2.9.1

12 months ago

2.9.0

12 months ago

2.8.1

1 year ago

2.8.0

1 year ago

2.7.0

1 year ago

2.5.0

1 year ago

2.5.2

1 year ago

2.6.0

1 year ago

2.5.1

1 year ago

2.5.3

1 year ago

2.4.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago