TransactionService

class TransactionService[source]

Methods

get_paddle_redirect

Get the info required to redirect from the paddle to the after pay page.

get

Get a transaction by id.

refund

Refund a transaction.

get_paddle_redirect(*, external_transaction_id)[source]

Get the info required to redirect from the paddle to the after pay page.

The redirect URL will be deleted after this request.

Parameters:
Returns:

The redirect info.

Return type:

PaddlePaymentRedirect

get(*, transaction_id)[source]

Get a transaction by id.

Parameters:
Returns:

The found transaction.

Return type:

CoursePurchase | UserAccessPass

refund(*, transaction_id)[source]

Refund a transaction.

Parameters:
Returns:

The found transaction.

Return type:

CoursePurchase | UserAccessPass