CheckoutSuccessState
DomainSuccess screen shown after checkout completion; includes a confirmation icon, payment summary, and optional delivery address.
Payment successful!
₺1.299,90 was charged. A receipt has been sent to your email.
Amount₺1.299,90
MethodCREDIT_CARD
ProviderStripe
Refpi_3NxYz2EwLHMpEt9Q1
<%- include('modules/domain/common/payment/CheckoutSuccessState', {
payment: {
paymentId: 'pay_demo_001',
provider: 'Stripe',
providerPaymentId: 'pi_3NxYz2EwLHMpEt9Q1',
method: 'CREDIT_CARD',
status: 'PAID',
amount: 1299.90,
currency: 'TRY'
},
onReset: 'function(){ window.location.reload(); }'
}) %>
<%
var _payment = locals.payment || {};
var _address = locals.address || null;
var _locale = locals.locale || 'tr-TR';
var _resetHref = locals.resetHref || '';
var _onReset = locals.onReset || '';
var _className = locals.className || '';
var _currency = _payment.currency || 'TRY';
var _amount = _payment.amount || 0;
var amountFormatted;
try {
amountFormatted = new Intl.NumberFormat(_locale, {
style: 'currency', currency: _currency,
}).format(Number(_amount));
} catch (e) {
amountFormatted = Number(_amount).toFixed(2) + ' ' + _currency;
}
%>
Payment successful!
<%= amountFormatted %> was charged. A receipt has been sent to your email.
<%- include('./PaymentSummaryCard', { payment: _payment, locale: _locale }) %>
<% if (_address) { %>
Delivering to
<%- include('../address/AddressCard', { address: _address }) %>
<% } %>
<% if (_resetHref) { %>
Start over
<% } else if (_onReset) { %>
<% } %>