Chargeback
The merchant can also make a full or partial return of the transaction through CardPay. Returns can only be made on successful payments, including completed pre-authorisations, as well as on payments on which a return has already been made, and the amount of the return must not exceed the original amount of the payment (in the case of a pre-authorisation, it is the amount with which the pre-authorisation was confirmed).
from tatrapayplus.client import TBPlusSDK
from tatrapayplus.models import *
client = TBPlusSDK(
"your-client-id",
"your-client-secret"
)
payment_id = "b54afd37-5bb9-4080-9416-5ec450779087"
chargeback_data = CardPayUpdateInstruction(
operation_type=CardPayUpdateInstructionOperationType.CHARGEBACK,
amount=120,
)
chargeback_response = client.update_payment(payment_id, chargeback_data)