auto_stories Knowledge Base chevron_right Form chevron_right Article

Payment Components (Payment, Payment Transactions)v5

The Payment component adds card payment to any form designed in Studio, without code. The Payment Transactions component lists received payments and queries, refunds or voids them. Which bank is used is set by the definitions in the Client admin panel; the form design does not depend on the bank.

The article follows four steps: (1) define a provider in the admin panel, (2) build the payment form in Studio, (3) list payments, (4) pay in Client.

Where to find it

Payment and Payment Transactions in the toolbox (Data & Layout)

Compatibility

Free FormResponsive FormFlexible FormMobile
✓✓✓—

Parts

PartWhereWhat it does
Payment component (84)Studio, formSets amount, provider, installments and result fields; draws the payment panel in Client
Payment Transactions component (85)Studio, finance formLists received payments; query status, refund, void
Action 74 Take PaymentStudio, button/eventStarts payment from any button
Action 75 Payment OperationStudio, button/eventQuery status, refund, void, create payment link
Events Payment succeeded / Payment failed or cancelledStudio, component's ActionsRun actions based on the result
Admin panel → PaymentClientProvider definitions, connection test, test payment, payment link user
Important - Card details never reach Xpoda. The card is entered on the bank's or payment provider's page. - A payment always starts from a saved record. The amount is read on the server from the saved record; pressing Pay saves the form first. - The Payment component has no table column. Results are written to the form fields you choose. - A Simulation provider is available for trying it out without a bank.

1. Preparation: Client admin panel → Payment

At least one active provider must be defined. This requires Client administrator rights. The tab has three cards: Payment providers, Payment settings, Payment link.

Admin panel → Payment tab

  • + New definition → choose the Provider type; the form shows that type's fields.
  • Definition name is the name users see in the payment panel.
  • Environment: Test or Live.
  • Enter the details provided by the bank. Secret fields are not shown again after saving; leaving them empty keeps the saved value.
  • Currencies and Installment options (comma separated, e.g. 1, 2, 3, 6, 9, 12; 1 = single payment).
  • Tick Active and, if needed, Default, then Save.

New payment provider — Simulation

Provider types

Integrations are ready for the providers below.

Note: Live use is activated with your bank's virtual POS details and the bank's approval (Yapı Kredi Posnet also requires the merchant's IP address to be registered). Verified end to end in bank test environments: NestPay (Asseco). Payment verified: Garanti BBVA. 3D authentication step verified: Yapı Kredi Posnet. Other connectors are verified with the bank's test account at the first customer installation.
TypePayment pageQueryRefundVoid
Simulation (test)Fake 3D page inside Client✓✓✓
NestPay (Asseco) — 3D Pay HostingBank's 3D page✓✓ partial✓
Garanti BBVA — 3D_OOS_PAYGaranti common payment page✓✓ partial✓
Yapı Kredi POSNET — OOSYapı Kredi common payment page✓✓ partial✓ same day
VakıfBank — PayFlex Common PaymentBank common page—from bank panel—
DenizBank InterVPos — 3D HostBank 3D Host page—✓ partial✓
iyzico — Checkout Formiyzico checkout form✓✓ partial✓
PayTR — iFramePayTR payment page✓✓ partial—
Note: For Yapı Kredi POSNET, the server's public IP must be registered with the bank. In the PayTR panel, the Notification URL must be {Client address}/Payment/Notify/PAYTR.

Provider forms — NestPay, Garanti, Yapı Kredi, VakıfBank, DenizBank, iyzico, PayTR

Provider forms — NestPay, Garanti, Yapı Kredi, VakıfBank, DenizBank, iyzico, PayTR

Provider forms — NestPay, Garanti, Yapı Kredi, VakıfBank, DenizBank, iyzico, PayTR

Provider forms — NestPay, Garanti, Yapı Kredi, VakıfBank, DenizBank, iyzico, PayTR

Provider forms — NestPay, Garanti, Yapı Kredi, VakıfBank, DenizBank, iyzico, PayTR

Provider forms — NestPay, Garanti, Yapı Kredi, VakıfBank, DenizBank, iyzico, PayTR

Provider forms — NestPay, Garanti, Yapı Kredi, VakıfBank, DenizBank, iyzico, PayTR

Test the connection and take a test payment

Test connection in the list checks that the bank accepts the details without taking a payment. Test payment tries the provider end to end without designing a form.

Connection test and test payment

Connection test and test payment

Payment settings

  • Client address providers return to: where the bank returns after payment. Behind a reverse proxy or load balancer, fix it with appsettings.json → Payments:PublicBaseUrl. Live payments require https.
  • Encryption key: encrypts provider secrets (Payments:MasterKey). It must be the same on all Client servers and included in backups.

Payment link user

A payment link sent to someone without an account works without signing in; the record is processed on behalf of the user set on this card. Create a separate Client user for this purpose only. Validity (hours): 24 recommended, 168 maximum.

2. Prepare the payment form in Studio

  • Add amount and description fields and, if wanted, result fields (PaymentStatus, TransactionNo, AuthCode, Card, Installment). Result fields can be made read-only with Unchangeable.
  • Drag the Payment component from the toolbox onto the form.
  • In the Properties panel, click Amount, Providers & Result on the Payment row.

Payment → Amount, Providers & Result

Payment → Amount, Providers & Result

Payment → Amount, Providers & Result

Amount

SettingSourceExample
Amount to payForm field · SQL · ConstantAmount field; remaining balance of an invoice (SQL)
CurrencyConstant · Form fieldTRY, USD, EUR, GBP
Minimum / Maximum amountNone · Constant · SQLMaximum = remaining balance (limits partial payment)
Multiple paymentsCheck boxIf off, a paid record cannot be paid again
DescriptionText, with $PCollection $PDescription

SQL sources use the record's values with $P; Test runs the query with a sample value.

Providers & Installments

  • All active providers or Only selected.
  • Allow installments: allowed installments (e.g. 2, 3, 6). Empty means all installments the provider offers.

Customer

Choose form fields for the payer's name, e-mail and phone; if empty, the signed-in user's details are used.

Result

Payment status (Paid / Failed / Cancelled), transaction ID, order number sent to the bank, authorization code, masked card, paid amount, installments, provider and date are written to the fields you choose. SQL can also be run after a successful and a failed payment, for example:

UPDATE Invoices SET Paid = Paid + $PayPaidAmount WHERE InvoiceNo = '$PInvoiceNo'

Parameters: $P, $PayStatus, $PayTxId, $PayOrderId, $PayAuthCode, $PayMaskedPan, $PayAmount, $PayPaidAmount, $PayCurrency, $PayInstallment, $PayProvider, $PayError, $PayPaidAt.

View

Title (default Payment), Button text (Pay), show amount and description. If left empty, they are shown in the Client user's language.

Events

The component's Actions section has the Payment succeeded and Payment failed / cancelled events. Result fields and SQL run before the events.

Action 74 — Take Payment

To start payment from another button, add the Take Payment action to the button and select the component in the Payment component list.

Action 75 — Payment Operation

OperationWhat it does
Query statusAsks the provider for the current status
RefundFull or partial refund (empty Refund amount = full)
Cancel (void)Void before end of day
Create payment linkCreates a signed payment link for the record and writes it to the Link field
Warning: Refunds and voids go to the bank and cannot be undone. Use form permissions to show these buttons only to authorized roles.

A payment link fixes the amount, description, installments and providers on the server. A new link invalidates the old one; the link closes if the record is paid another way.

3. Payment Transactions (85)

The accounting/finance screen where payments are listed, refunded and voided. Settings: Properties → Scope, List & Operations.

  • Scope: this module only or all modules; providers; default date range (30 days); include test payments from the admin panel.
  • List: extra filter (added with AND; the payment row is t, form fields $P) and an extra column SELECT.
  • Operations: query status (on), refund and void (off).
  • Permissions: Hidden — no access to the list; Read-only — view only; Full — performs operations.

Payment Transactions — Scope and Operations

Payment Transactions — Scope and Operations

4. Paying in Client

  • Enter the amount and description and press Pay. If the record is not saved, it is saved first, then the payment page opens.
  • Choose the payment method and installments and complete the payment on the bank's page.
  • The panel status becomes Paid; result fields are filled and saved to the record.

On a failed payment the status becomes Failed and the Payment failed / cancelled event runs; the same record can be paid again.

Client payment panel, simulation page, after payment

Client payment panel, simulation page, after payment

Client payment panel, simulation page, after payment

Troubleshooting

SymptomCauseFix
No provider in the payment panelNo active definition, or none selected with Only selectedMake the definition active; check the Providers tab
“Pop-up blocked”The browser blocked the payment windowAllow pop-ups for the site
Status stuck at PendingThe payment window closed before a result came backQueried automatically after 15 minutes; or use Query status
Amount differs from what is on screenThe amount is read from the saved recordSave the record after changing the amount
Bank cannot return after paymentClient public address wrong or httpPayments:PublicBaseUrl and https
PayTR payment never completesNotification URL missing{Client address}/Payment/Notify/PAYTR
Yapı Kredi 3D passed but payment not completedServer IP not registered with the bankRegister the public IP with Yapı Kredi