Skip to content

ronjunevaldoz/KotlinPaymongo

Repository files navigation

KotlinPaymongo

Paymongo client for kotlin

Build And Publish Maven Central Version Kotlin GitHub

Feature

  • Source
    • Create source
    • Get source by id
  • Payments
    • Create payment
    • List all payments
    • Get payment by id
  • Payment Intents
    • Create payment intent
    • Get payment intent by id and or client key
    • Attach payment intent
  • Payment Method
    • Create payment method
    • Get payment method by id
    • Update payment method by id
    • Get List of possible merchant payment methods
  • Webhooks
    • Create webhook
    • Get webhook
    • Get webhooks
    • Enable/Disable webhook
    • Update webhook
  • Link
    • Create a link
    • Get link by id
    • Get link by reference number
    • Archive link
    • Unarchive link
  • Refunds
    • Refund resource
    • Create refund
    • Retrieve a refund
    • List all refunds
  • Customers

API Reference

https://developers.paymongo.com/reference

Usage

val config = Paymongo.Config.apply{
   secretKey = "sk_123456"
}
val client = PayMongo(config)

Ktor Webhook Integration

https://github.com/ronjunevaldoz/KotlinPaymongo/wiki/Ktor-Webhook

Installation

repositories {
   mavenCentral()
}

Common Dependency

implementation("io.github.ronjunevaldoz:paymongo-kotlin:<VERSION>")

Platform specific dependency (jvm, ios, android, wasmjs)

implementation("io.github.ronjunevaldoz:paymongo-kotlin-<PLATFORM>:<VERSION>")

Related PayMongo community made libraries

https://developers.paymongo.com/docs/community-made-libraries