Payment Upon Signature

Author: Accord Project

payment-upon-signature@0.11.0 Contract ^0.26.0 73cfbdbf25d9a0b5f60f79003bf24f8f7a224e07bf68fe75de4b2defbf6ed59e

This is a generic payment clause applicable to any type of contract that requires some payment at the time of signature.

Download Archive Download Compiled Archive Open in Template Playground Open in VSCode Web

Payment Upon Signature

This is a generic payment clause applicable to any type of contract that requires some payment at the time of signature.

Template Text

Upon the signing of this Agreement, "Dave" shall pay 50 USD to "Dan".

Upon the signing of this Agreement, "Dave" shall pay 50 USD to "Dan".
Upon the signing of this Agreement, {{buyer}} shall pay {{amount}} {{currencyCode}} to {{seller}}.
{
  "$class": "org.accordproject.paymentuponssignature@0.1.0.TemplateModel",
  "buyer": "resource:org.accordproject.party.Party#Dave",
  "seller": "resource:org.accordproject.party.Party#Dan",
  "amount": {
    "$class": "org.accordproject.money.MonetaryAmount",
    "doubleValue": 50,
    "currencyCode": "USD"
  },
  "$identifier": "86070b3c-23db-4091-9bc5-704148c12668",
  "clauseId": "86070b3c-23db-4091-9bc5-704148c12668"
}

Template Model

namespace org.accordproject.paymentuponssignature@0.1.0

import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
import org.accordproject.runtime@0.2.0.{Request,Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto

/**
 * The template model
 */
@template
asset TemplateModel extends Clause {
  o String buyer
  o String seller
  o Double amount
  o String currencyCode
}

// Triggered when contract is signed
transaction ContractSigned extends Request {
}

transaction ContractSignedResponse extends Response {
}

transaction PaymentReceived extends Request {
}

transaction PaymentReceivedResponse extends Response {
}

// Event emitted when a payment obligation is triggered
event PaymentObligationEvent {
  o Double amount
  o String currencyCode
  o String description
}

// State
concept PaymentUponSignatureState identified {
  o String status default="INITIALIZED"
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.runtime@0.2.0.State
{
    "$class": "org.accordproject.runtime@0.2.0.State",
    "$identifier": "7c7ab070-50a4-11f1-a498-6b6dff021a96"
}

Request Types

Type Sample JSON
org.accordproject.paymentuponssignature@0.1.0.ContractSigned
{
    "$class": "org.accordproject.paymentuponssignature@0.1.0.ContractSigned",
    "$timestamp": "2026-05-15T21:24:41.846Z"
}
org.accordproject.paymentuponssignature@0.1.0.PaymentReceived
{
    "$class": "org.accordproject.paymentuponssignature@0.1.0.PaymentReceived",
    "$timestamp": "2026-05-15T21:24:41.846Z"
}
org.accordproject.runtime@0.2.0.Request
{
    "$class": "org.accordproject.runtime@0.2.0.Request",
    "$timestamp": "2026-05-15T21:24:41.846Z"
}

Response Types

Type Sample JSON
org.accordproject.paymentuponssignature@0.1.0.ContractSignedResponse
{
    "$class": "org.accordproject.paymentuponssignature@0.1.0.ContractSignedResponse",
    "$timestamp": "2026-05-15T21:24:41.847Z"
}
org.accordproject.paymentuponssignature@0.1.0.PaymentReceivedResponse
{
    "$class": "org.accordproject.paymentuponssignature@0.1.0.PaymentReceivedResponse",
    "$timestamp": "2026-05-15T21:24:41.847Z"
}
org.accordproject.runtime@0.2.0.Response
{
    "$class": "org.accordproject.runtime@0.2.0.Response",
    "$timestamp": "2026-05-15T21:24:41.847Z"
}

Events Types

Type Sample JSON

Technical Integration

Please refer to the Accord Project documentation for how to use a template or integrate it within your application.

View the Latest code for this template on GitHub.