bazzar/vendor/t_pay/docs/TransactionAPIApi.md

9.1 KiB
Raw Permalink Blame History

\TransactionAPIApi

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

Method HTTP request Description
api_gw_api_key_chargeback_any_post POST /api/gw/{api_key}/chargeback/any any
api_gw_api_key_chargeback_status_post POST /api/gw/{api_key}/chargeback/status status
api_gw_api_key_chargeback_transaction_post POST /api/gw/{api_key}/chargeback/transaction transaction
api_gw_api_key_transaction_blik_post POST /api/gw/{api_key}/transaction/blik blik
api_gw_api_key_transaction_create_post POST /api/gw/{api_key}/transaction/create create
api_gw_api_key_transaction_get_post POST /api/gw/{api_key}/transaction/get get
api_gw_api_key_transaction_report_post POST /api/gw/{api_key}/transaction/report report

api_gw_api_key_chargeback_any_post

crate::models::RefundAnyResponse api_gw_api_key_chargeback_any_post(api_key, refund_any_data) any

The method used to refund part of the transaction amount.

NOTICE: This method works only in production mode!
To test this method, you need to create the transaction in production mode with your own API access.

Parameters

Name Type Description Required Notes
api_key String The api key. [required]
refund_any_data Option<RefundAnyFields> Request body.

Return type

crate::models::RefundAnyResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_gw_api_key_chargeback_status_post

crate::models::RefundStatusResponse api_gw_api_key_chargeback_status_post(api_key, refund_transaction_data) status

The method used to check transaction refunds statuses.
Some refunds statuses may be not available immediately after calling refund methods due to gathering refund details process.

Parameters

Name Type Description Required Notes
api_key String The api key. [required]
refund_transaction_data Option<RefundTransactionFields> Request body.

Return type

crate::models::RefundStatusResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_gw_api_key_chargeback_transaction_post

crate::models::RefundAnyResponse api_gw_api_key_chargeback_transaction_post(api_key, refund_transaction_data) transaction

The method used to refund full transaction amount. You can get transaction title from 'create' method when generating the transaction.

NOTICE: This method works only in production mode!
To test this method, you need to create the transaction in production mode with your own API access.

Parameters

Name Type Description Required Notes
api_key String The api key. [required]
refund_transaction_data Option<RefundTransactionFields> Request body.

Return type

crate::models::RefundAnyResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_gw_api_key_transaction_blik_post

crate::models::BlikResponse api_gw_api_key_transaction_blik_post(api_key, blik_data) blik

This method allows sending a BLIK code in direct communication between merchant and BLIK system. In create method you should set 150 as a value for parameter group, this is a BLIK payment channel. Method returns parameter result equal to 1 which means that payment popup has been successfully displayed at customer mobile application. After accepting payment by the customer, tpay.com system sends a standard notification to merchant's endpoint declared in wyn_url parameter (this parameter should be sent in 'create' method.)

NOTICE: to test this method, you need to create the transaction with 'create' method and replace title parameter value with the returned title.
Blik method works with the specific set of parameters depending on payment type case. Please see BLIK workflow section.

Parameters

Name Type Description Required Notes
api_key String The api key. [required]
blik_data Option<BlikFields> Request body.

Return type

crate::models::BlikResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_gw_api_key_transaction_create_post

crate::models::CreateResponse api_gw_api_key_transaction_create_post(api_key, basic_data) create

This method allows you to prepare transaction for a customer. The method returns transaction title required for other API methods and redirection link for a customer.
This method also returns account details for manual money transfers.

Parameters

Name Type Description Required Notes
api_key String The api key. [required]
basic_data Option<CreateFields> Transaction data.

Return type

crate::models::CreateResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_gw_api_key_transaction_get_post

crate::models::GetResponse api_gw_api_key_transaction_get_post(api_key, get_data) get

This method allows you to get all information about the transaction by sending previously generated title.

Parameters

Name Type Description Required Notes
api_key String The api key. [required]
get_data Option<GetFields> Request body.

Return type

crate::models::GetResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_gw_api_key_transaction_report_post

crate::models::ReportResponse api_gw_api_key_transaction_report_post(api_key, report_data) report

This method returns payments report for the declared time range, generated in CSV format (semicolon separators) and encoded in base64 - the same format as in merchant panel. If you like to arrange result as an associative array, you can use the ready <a href="https://github.com/tpay-com/tpay-php/blob/master/tpayLibs/examples/TransactionReportsApi.php" target="_blank">script from Tpay PHP library.

Parameters

Name Type Description Required Notes
api_key String The api key. [required]
report_data Option<ReportFields> Request body.

Return type

crate::models::ReportResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]