Parameter Name Length Parameter description
show_PayButton 5 true/false - In case you wish to hide our paybutton and have your Pay button trigger the payment send "false" and our button will be hidden from the UI Optional
ui_version 2 Supported by the Flow template, send "11", and by the Naked template, send "10". Both are customizable through the custom css feature. Flow additionally accepts the background, Layout and show_chrome parameters, so the framed form can be matched to the hosting page without a stylesheet. Optional

Code example

Code Example
// Assuming the iframe has an id of 'myIframe'
function triggerIframeButton() {
const iframe = document.getElementById("myIframe");
if (iframe) {
// Send the message to the iframe
iframe.contentWindow.postMessage("triggerPayButton", "https://uiservices.coriunder.cloud");
}
}
// Example usage: attach to a button click in the parent window
document.getElementById("parentButton").addEventListener("click", triggerIframeButton);

PostMessage Communication Overview

How the PostMessage is Sent

When a user reaches the final page of the payment process, a postMessage event is sent to the parent window containing transaction details.

PostMessage Structure
Code Example
window.parent.postMessage({ replyCode, codeDescription, trans_ID, trans_Date, paymentDisplay, storageID, ExpMonth, ExpYear, recurringID, Amount, Currency, Order, MerchantId, ClientFullName }, "*");
Message Payload Explanation
KeyDescriptionExample Value
replyCodeResponse code indicating the status of the transaction.000
codeDescriptionDescription of the response code.Transaction Approved
trans_IDUnique transaction identifier.TX123456789
trans_DateDate and time of the transaction.2025-05-14T10:30:00Z
paymentDisplayDisplay value for the payment method used.Visa ****1234
storageIDID for the stored payment method (if applicable).123456
ExpMonthExpiry month of the card (if applicable).12
ExpYearExpiry year of the card (if applicable).2025
recurringIDID for the recurring payment profile (if applicable).987654
AmountTransaction amount.99.99
CurrencyCurrency code of the transaction.USD
OrderOrder reference number.ORD12345
MerchantIdUnique identifier for the merchant.12345
ClientFullNameFull name of the customer making the transaction.John Doe
How to Listen for the PostMessage
Code Example
window.addEventListener("message", function(event) {
  const messageData = event.data;
  console.log("Transaction Details Received:", messageData);
});