bazzar/vendor/t_pay/README.md

7.7 KiB

Rust API client for openapi

Demo transaction/masspayments api key:

Demo cards api key:

The terms seller and merchant are used interchangeably and they both refer to a person or a company registered at tpay.com to accept online payments.
Whenever term merchant panel is used it refers to the part of tpay.com website located at secure.tpay.com/panel.

For sandbox purposes use merchant demo account

ID - 1010, Password - demo

Remember that this is a shared account, so all data passed through will be publicly visible.

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 1.2.1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder and add the following to Cargo.toml under [dependencies]:

    openapi = { path = "./generated" }

Documentation for API Endpoints

All URIs are relative to https://docs.tpay.com/Proxy.php

Class Method HTTP request Description
CardsAPIApi api_cards_api_key_check_post POST /api/cards/{api_key}/check check
CardsAPIApi api_cards_api_key_deregister_post POST /api/cards/{api_key}/deregister deregister
CardsAPIApi api_cards_api_key_presale_post POST /api/cards/{api_key}/presale presale
CardsAPIApi api_cards_api_key_refund_post POST /api/cards/{api_key}/refund refund
CardsAPIApi api_cards_api_key_register_sale_post POST /api/cards/{api_key}/register_sale register sale
CardsAPIApi api_cards_api_key_sale_post POST /api/cards/{api_key}/sale sale
CardsAPIApi api_cards_api_key_securesale_post POST /api/cards/{api_key}/securesale secure sale
CardsAPIApi api_cards_api_key_visacheckout_finish_post POST /api/cards/{api_key}/visacheckout_finish visacheckout finish
CardsAPIApi api_cards_api_key_visacheckout_prepare_post POST /api/cards/{api_key}/visacheckout_prepare visacheckout prepare
MasspaymentsApi api_gw_api_key_masspayment_authorize_post POST /api/gw/{api_key}/masspayment/authorize authorize
MasspaymentsApi api_gw_api_key_masspayment_create_post POST /api/gw/{api_key}/masspayment/create create
MasspaymentsApi api_gw_api_key_masspayment_packs_post POST /api/gw/{api_key}/masspayment/packs packs
MasspaymentsApi api_gw_api_key_masspayment_transfers_post POST /api/gw/{api_key}/masspayment/transfers transfers
TransactionAPIApi api_gw_api_key_chargeback_any_post POST /api/gw/{api_key}/chargeback/any any
TransactionAPIApi api_gw_api_key_chargeback_status_post POST /api/gw/{api_key}/chargeback/status status
TransactionAPIApi api_gw_api_key_chargeback_transaction_post POST /api/gw/{api_key}/chargeback/transaction transaction
TransactionAPIApi api_gw_api_key_transaction_blik_post POST /api/gw/{api_key}/transaction/blik blik
TransactionAPIApi api_gw_api_key_transaction_create_post POST /api/gw/{api_key}/transaction/create create
TransactionAPIApi api_gw_api_key_transaction_get_post POST /api/gw/{api_key}/transaction/get get
TransactionAPIApi api_gw_api_key_transaction_report_post POST /api/gw/{api_key}/transaction/report report

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

pt@tpay.com