Function pallet_ip_pallet::pallet::dispatchables::make_periodic_payment
source · pub fn make_periodic_payment<T: Config>(contract_id: T::ContractId)Expand description
Makes a periodic payment for a contract
Processes the next scheduled payment for a periodic payment contract. Handles payment calculation including any penalties from missed payments.
§Arguments
origin- Must be signed by the payer (licensee/buyer)contract_id- ID of the contract to make a payment for
§Events
Event::PeriodicPaymentMade- When payment is successfully processedEvent::PaymentsCompleted- When this was the final payment dueEvent::PaymentMade- For the actual currency transfer
§Errors
Error::ContractNotFound- If contract doesn’t existError::NotPeriodicPayment- If contract uses one-time payment instead of periodicError::PaymentNotDue- If current block is before next_payment_block or no payments are dueError::InsufficientBalance- If payer doesn’t have enough fundsError::ZeroPayment- If calculated payment amount is zero
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::make_periodic_payment.