Skip to main content

Payments Received

The Payments Received module provides access to contextual information about the current customer payment when a widget is rendered within supported payment-related pages. Widgets can retrieve payment identifiers, linked invoice references, and associated customer details for use in validations, conditional logic, and UI extensions.

Methods

Get Customerpayment Details

Retrieves data related to the current context. This method allows your widget to fetch record details, field values, or metadata required for rendering or processing logic.

Commonly used for :
  • Fetch record information
  • Read field values
  • Access contextual module data
Supported Locations :
paymentsmade.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.get('customerpayment').then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}
Supported Input Keys :
PropertyRequest
payment_idcustomerpayment.payment_id
payment_numbercustomerpayment.payment_number
payment_link_idcustomerpayment.payment_link_id
created_timecustomerpayment.created_time
updated_timecustomerpayment.updated_time
payment_number_prefixcustomerpayment.payment_number_prefix
payment_number_suffixcustomerpayment.payment_number_suffix
documentscustomerpayment.documents
customer_idcustomerpayment.customer_id
customer_namecustomerpayment.customer_name
Show More Supported Input Keys
PropertyRequest
payment_modecustomerpayment.payment_mode
datecustomerpayment.date
date_formattedcustomerpayment.date_formatted
offline_created_date_with_timecustomerpayment.offline_created_date_with_time
offline_created_date_with_time_formattedcustomerpayment.offline_created_date_with_time_formatted
is_pre_gstcustomerpayment.is_pre_gst
account_idcustomerpayment.account_id
account_namecustomerpayment.account_name
account_typecustomerpayment.account_type
account_type_formattedcustomerpayment.account_type_formatted
customer_advance_account_idcustomerpayment.customer_advance_account_id
customer_advance_account_namecustomerpayment.customer_advance_account_name
currency_idcustomerpayment.currency_id
currency_symbolcustomerpayment.currency_symbol
currency_codecustomerpayment.currency_code
exchange_ratecustomerpayment.exchange_rate
exchange_rate_formattedcustomerpayment.exchange_rate_formatted
amountcustomerpayment.amount
amount_formattedcustomerpayment.amount_formatted
unused_amountcustomerpayment.unused_amount
unused_amount_formattedcustomerpayment.unused_amount_formatted
bank_chargescustomerpayment.bank_charges
bank_charges_formattedcustomerpayment.bank_charges_formatted
tax_account_idcustomerpayment.tax_account_id
is_client_review_settings_enabledcustomerpayment.is_client_review_settings_enabled
place_of_supplycustomerpayment.place_of_supply
gst_return_detailscustomerpayment.gst_return_details
gst_treatmentcustomerpayment.gst_treatment
tax_treatmentcustomerpayment.tax_treatment
gst_nocustomerpayment.gst_no
tax_account_namecustomerpayment.tax_account_name
tax_amount_withheldcustomerpayment.tax_amount_withheld
tax_amount_withheld_formattedcustomerpayment.tax_amount_withheld_formatted
discount_amountcustomerpayment.discount_amount
discount_amount_formattedcustomerpayment.discount_amount_formatted
descriptioncustomerpayment.description
product_descriptioncustomerpayment.product_description
reference_numbercustomerpayment.reference_number
online_transaction_idcustomerpayment.online_transaction_id
payment_gatewaycustomerpayment.payment_gateway
payment_gateway_formattedcustomerpayment.payment_gateway_formatted
settlement_statuscustomerpayment.settlement_status
settlement_status_formattedcustomerpayment.settlement_status_formatted
tax_idcustomerpayment.tax_id
tax_namecustomerpayment.tax_name
tax_percentagecustomerpayment.tax_percentage
tax_typecustomerpayment.tax_type
is_advance_paymentcustomerpayment.is_advance_payment
tds_typecustomerpayment.tds_type
tds_tax_idcustomerpayment.tds_tax_id
branch_idcustomerpayment.branch_id
branch_namecustomerpayment.branch_name
invoicescustomerpayment.invoices
payment_refundscustomerpayment.payment_refunds
commentscustomerpayment.comments
template_idcustomerpayment.template_id
template_namecustomerpayment.template_name
page_widthcustomerpayment.page_width
page_heightcustomerpayment.page_height
orientationcustomerpayment.orientation
template_typecustomerpayment.template_type
template_type_formattedcustomerpayment.template_type_formatted
attachment_namecustomerpayment.attachment_name
can_send_in_mailcustomerpayment.can_send_in_mail
is_payment_details_requiredcustomerpayment.is_payment_details_required
custom_fieldscustomerpayment.custom_fields
custom_field_hashcustomerpayment.custom_field_hash
imported_transactionscustomerpayment.imported_transactions
einvoice_detailscustomerpayment.einvoice_details

Set Customerpayment Details

Updates or sets data within the current context. This method allows your widget to modify field values, update state, or pass data back to the host application.

Commonly used for :
  • Update field values
  • Set widget or module state
  • Pass data to the parent application
Supported Locations :
paymentsmade.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.set('customerpayment.name', <value>).then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}
Supported Input Keys :
PropertyRequest
payment_idcustomerpayment.payment_id
payment_numbercustomerpayment.payment_number
payment_link_idcustomerpayment.payment_link_id
created_timecustomerpayment.created_time
updated_timecustomerpayment.updated_time
payment_number_prefixcustomerpayment.payment_number_prefix
payment_number_suffixcustomerpayment.payment_number_suffix
documentscustomerpayment.documents
customer_idcustomerpayment.customer_id
customer_namecustomerpayment.customer_name
Show More Supported Input Keys
PropertyRequest
payment_modecustomerpayment.payment_mode
datecustomerpayment.date
date_formattedcustomerpayment.date_formatted
offline_created_date_with_timecustomerpayment.offline_created_date_with_time
offline_created_date_with_time_formattedcustomerpayment.offline_created_date_with_time_formatted
is_pre_gstcustomerpayment.is_pre_gst
account_idcustomerpayment.account_id
account_namecustomerpayment.account_name
account_typecustomerpayment.account_type
account_type_formattedcustomerpayment.account_type_formatted
customer_advance_account_idcustomerpayment.customer_advance_account_id
customer_advance_account_namecustomerpayment.customer_advance_account_name
currency_idcustomerpayment.currency_id
currency_symbolcustomerpayment.currency_symbol
currency_codecustomerpayment.currency_code
exchange_ratecustomerpayment.exchange_rate
exchange_rate_formattedcustomerpayment.exchange_rate_formatted
amountcustomerpayment.amount
amount_formattedcustomerpayment.amount_formatted
unused_amountcustomerpayment.unused_amount
unused_amount_formattedcustomerpayment.unused_amount_formatted
bank_chargescustomerpayment.bank_charges
bank_charges_formattedcustomerpayment.bank_charges_formatted
tax_account_idcustomerpayment.tax_account_id
is_client_review_settings_enabledcustomerpayment.is_client_review_settings_enabled
place_of_supplycustomerpayment.place_of_supply
gst_return_detailscustomerpayment.gst_return_details
gst_treatmentcustomerpayment.gst_treatment
tax_treatmentcustomerpayment.tax_treatment
gst_nocustomerpayment.gst_no
tax_account_namecustomerpayment.tax_account_name
tax_amount_withheldcustomerpayment.tax_amount_withheld
tax_amount_withheld_formattedcustomerpayment.tax_amount_withheld_formatted
discount_amountcustomerpayment.discount_amount
discount_amount_formattedcustomerpayment.discount_amount_formatted
descriptioncustomerpayment.description
product_descriptioncustomerpayment.product_description
reference_numbercustomerpayment.reference_number
online_transaction_idcustomerpayment.online_transaction_id
payment_gatewaycustomerpayment.payment_gateway
payment_gateway_formattedcustomerpayment.payment_gateway_formatted
settlement_statuscustomerpayment.settlement_status
settlement_status_formattedcustomerpayment.settlement_status_formatted
tax_idcustomerpayment.tax_id
tax_namecustomerpayment.tax_name
tax_percentagecustomerpayment.tax_percentage
tax_typecustomerpayment.tax_type
is_advance_paymentcustomerpayment.is_advance_payment
tds_typecustomerpayment.tds_type
tds_tax_idcustomerpayment.tds_tax_id
branch_idcustomerpayment.branch_id
branch_namecustomerpayment.branch_name
invoicescustomerpayment.invoices
payment_refundscustomerpayment.payment_refunds
commentscustomerpayment.comments
template_idcustomerpayment.template_id
template_namecustomerpayment.template_name
page_widthcustomerpayment.page_width
page_heightcustomerpayment.page_height
orientationcustomerpayment.orientation
template_typecustomerpayment.template_type
template_type_formattedcustomerpayment.template_type_formatted
attachment_namecustomerpayment.attachment_name
can_send_in_mailcustomerpayment.can_send_in_mail
is_payment_details_requiredcustomerpayment.is_payment_details_required
custom_fieldscustomerpayment.custom_fields
custom_field_hashcustomerpayment.custom_field_hash
imported_transactionscustomerpayment.imported_transactions
einvoice_detailscustomerpayment.einvoice_details

Set Customerpayment customfields

Specifically designed to update custom field values within the current context. This method allows your widget to target and modify custom fields without affecting standard fields, ensuring precise data management.

Commonly used for :
  • Update custom field values
  • Manage user-defined data points
  • Ensure targeted updates to specific fields
Supported Locations :
paymentsmade.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.set('customerpayment.<custom_field_api_name>',<value>).then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}