Interface AdminPaymentApi

    • Method Detail

      • fixPaymentTransactionState

        void fixPaymentTransactionState​(Payment payment,
                                        PaymentTransaction paymentTransaction,
                                        TransactionStatus transactionStatus,
                                        String lastSuccessPaymentState,
                                        String currentPaymentStateName,
                                        Iterable<PluginProperty> properties,
                                        CallContext context)
                                 throws PaymentApiException
        Modify the state for a given PaymentTransaction and its associated Payment. Should ONLY be used for admin purpose when data is corrupted and will require special privileges.
        Parameters:
        payment - the payment whose state will be updated
        paymentTransaction - the paymentTransaction whose state will be updated
        transactionStatus - the new transactionStatus
        lastSuccessPaymentState - the new lastSuccessPaymentState
        currentPaymentStateName - the new currentPaymentStateName
        properties - plugin properties
        context - a valid context
        Throws:
        PaymentApiException