Actions
components.payment_gateway.subcomponents.payments.protected.business_logic.actions.bank_transfer_actions ¶
BankTransferActions ¶
Actions for bank transfer operations including SEPA direct debit payment requests.
Source code in components/payment_gateway/subcomponents/payments/protected/business_logic/actions/bank_transfer_actions.py
create
classmethod
¶
Normal factory
Source code in components/payment_gateway/subcomponents/payments/protected/business_logic/actions/bank_transfer_actions.py
create_null
classmethod
¶
Null factory
Source code in components/payment_gateway/subcomponents/payments/protected/business_logic/actions/bank_transfer_actions.py
create_payment_request ¶
create_payment_request(
session,
/,
*,
creditor_account_id,
amount,
reference,
debtor_financial_instrument_id,
description=None,
currency="EUR",
)
Create a payment request.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
Session
|
SQLAlchemy session to use for DB operations. |
required |
creditor_account_id
|
AccountId
|
ID of the account that will receive the funds. |
required |
amount
|
int
|
Payment amount in minor currency units (e.g., cents for EUR). Must be positive. |
required |
reference
|
str
|
Unique reference for the payment request. Used for tracking and reconciliation. |
required |
debtor_financial_instrument_id
|
FinancialInstrumentId
|
ID of the financial instrument owning the account that will be debited. |
required |
description
|
str | None
|
Optional human-readable description for the payment. Defaults to None. |
None
|
currency
|
str
|
ISO 4217 currency code. Defaults to "EUR". |
'EUR'
|
Returns:
| Name | Type | Description |
|---|---|---|
PaymentRequestId |
PaymentRequestId
|
ID of the newly created payment request. |
Raises:
| Type | Description |
|---|---|
AccountNotFoundException
|
If the creditor account does not exist. |
ProviderNotSupportedException
|
If the account's workspace does not support Adyen. |
Note
This operation is currently only supported for Adyen.
Source code in components/payment_gateway/subcomponents/payments/protected/business_logic/actions/bank_transfer_actions.py
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | |