Giter VIP home page Giter VIP logo

connector's Introduction

com.ccommercepayment - Kotlin client library for Payment Gateway

Requires

  • Kotlin 1.3.31
  • Gradle 4.9

Build

First, create the gradle wrapper script:

gradle wrapper

Then, run:

./gradlew check assemble

This runs all tests and packages the library.

Features/Implementation Notes

  • Supports JSON inputs/outputs, File inputs, and Form inputs.
  • Supports collection formats for query parameters: csv, tsv, ssv, pipes.
  • Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in OpenAPI definitions.
  • Implementation of ApiClient is intended to reduce method counts, specifically to benefit Android targets.

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
CardApi v1CardCreditHolderPost POST /v1/card/creditHolder Credit a card.
Card3DsPaymentApi v1PaymentsCard3dsPaymentAuthenticationPost POST /v1/payments/card3ds-payment/authentication Validate authentication.
Card3DsPaymentApi v1PaymentsCard3dsPaymentPost POST /v1/payments/card3ds-payment Check enrollment
Card3DsPaymentApi v1PaymentsCard3dsPaymentPut PUT /v1/payments/card3ds-payment Validate authentication AND authorize / payment
Card3DsPaymentApi v1PaymentsCard3dsPaymentWithAuthenticationDataPost POST /v1/payments/card3ds-payment/with-authentication-data Authorization / payment -with- authentication data
CardPaymentApi v1PaymentsCardPaymentPost POST /v1/payments/card-payment Authorization / payment
DuplicatePaymentApi v1PaymentsDuplicatePaymentBatchPost POST /v1/payments/duplicate-payment/batch Duplicate payment batch
DuplicatePaymentApi v1PaymentsDuplicatePaymentPost POST /v1/payments/duplicate-payment Duplicate payment
PaymentOptionsApi v1PaymentOptionsMerchantsByMerchantIdSitesByMerchantSiteIdGet GET /v1/payment-options/merchants/{merchantId}/sites/{merchantSiteId} Gets payment options
PaymentOptionsApi v1PaymentOptionsPost POST /v1/payment-options Gets payment options for a context
PaymentOptionsApi v1PaymentOptionsValidateEligibilityPost POST /v1/payment-options/validateEligibility Validates eligibility
PaymentSessionApi v1PaymentSessionsByPaymentSessionIdPaymentResultGet GET /v1/payment-sessions/{paymentSessionId}/paymentResult Gets the payment result from its session id.
PaymentSessionApi v1PaymentSessionsPost POST /v1/payment-sessions Creates a payment session.
PaymentsApi v1PaymentsAllByOrderRefMerchantsByMerchantIdSitesByMerchantSiteIdGet GET /v1/payments/all/{orderRef}/merchants/{merchantId}/sites/{merchantSiteId} Gets all payment schedules
PaymentsApi v1PaymentsByOrderRefMerchantsByMerchantIdSitesByMerchantSiteIdByOrderTagGet GET /v1/payments/{orderRef}/merchants/{merchantId}/sites/{merchantSiteId}/{orderTag} Gets payment schedule by tag.
PaymentsApi v1PaymentsByOrderRefMerchantsByMerchantIdSitesByMerchantSiteIdGet GET /v1/payments/{orderRef}/merchants/{merchantId}/sites/{merchantSiteId} Gets payment schedule
PaymentsApi v1PaymentsByOrderRefOperationsCancelOrRefundPut PUT /v1/payments/{orderRef}/operations/cancelOrRefund Cancel or refund
PaymentsApi v1PaymentsByOrderRefOperationsCapturePut PUT /v1/payments/{orderRef}/operations/capture Capture
PaymentsApi v1PaymentsByOrderRefOperationsRecomputePut PUT /v1/payments/{orderRef}/operations/recompute Recompute schedule
SecurityTokenApi v1AuthTokenGet GET /v1/auth/token Authenticate
StoredPaymentMethodsApi v1StoredPaymentMethodsMerchantsByMerchantIdSitesByMerchantSiteIdCustomerRefByCustomerRefGet GET /v1/stored-payment-methods/merchants/{merchantId}/sites/{merchantSiteId}/customerRef/{customerRef} Gets stored payment methods by CustomerRef
StoredPaymentMethodsApi v1StoredPaymentMethodsMerchantsByMerchantIdSitesByMerchantSiteIdStoredPaymentMethodIdByStoredPaymentMethodIdDelete DELETE /v1/stored-payment-methods/merchants/{merchantId}/sites/{merchantSiteId}/storedPaymentMethodId/{storedPaymentMethodId} Deletes a stored payment method
StoredPaymentMethodsApi v1StoredPaymentMethodsMerchantsByMerchantIdSitesByMerchantSiteIdStoredPaymentMethodIdByStoredPaymentMethodIdGet GET /v1/stored-payment-methods/merchants/{merchantId}/sites/{merchantSiteId}/storedPaymentMethodId/{storedPaymentMethodId} Gets a stored payment method
StoredPaymentMethodsApi v1StoredPaymentMethodsPost POST /v1/stored-payment-methods Stores a new payment method.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

connector's People

Contributors

yassir-cds avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.