---
title: Checkout ve ödeme
description: Eski headless tema altyapısındaki (@ikas/storefront) checkout, ödeme yöntemi, ödeme altyapısı (payment gateway) ve ödeme işlemi (transaction) modelleri.
---

<Callout type="warn" title="Eski altyapı">
Bu sayfa, ikas Studio öncesindeki headless tema altyapısının (`@ikas/storefront`) referansıdır. Yeni temalar için [ikas Studio](https://builders.ikas.com/docs/ikas-studio) dokümantasyonunu kullanın.
</Callout>

Checkout, ödeme yöntemi, ödeme altyapısı (payment gateway) ve ödeme işlemi (transaction) modelleri. Her başlık, `@ikas/storefront` paketindeki bir modelin field'larını ve metotlarını listeler.

## IkasCheckout extends IkasCart [#ikas-checkout]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `appliedCouponCode` | `string \| null` | - |
| `selectedPaymentGateway` | `IkasPaymentGateway \| null` | Bkz. [IkasPaymentGateway](https://builders.ikas.com/docs/headless-theme/api/checkout-and-payment#ikas-payment-gateway). |
| `masterPassPaymentGateway` | `IkasPaymentGateway \| null` | Bkz. [IkasPaymentGateway](https://builders.ikas.com/docs/headless-theme/api/checkout-and-payment#ikas-payment-gateway). |
| `isComplete` | `boolean` | - |
| `$totalFinalPrice` | `number` | - |
| `$totalFinalPriceTaxModifier` | `number` | - |
| `$totalTax` | `number` | - |
| `$formattedTotalTax` | `string` | - |
| `$formattedTotalFinalPrice` | `string` | - |
| `dateStr` | `string` | - |

## IkasCheckoutSettings extends IkasBaseModel [#ikas-checkout-settings]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `giftPackagePriceList` | `IkasCheckoutSettingsPrice[] \| null` | Bkz. [IkasCheckoutSettingsPrice](https://builders.ikas.com/docs/headless-theme/api/checkout-and-payment#ikas-checkout-settings-price). |
| `identityNumberRequirement` | `IkasCheckoutRequirement` | Bu field `true` ise checkout adreslerinde kimlik numarası zorunlu olur. Bkz. [IkasCheckoutRequirement](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-checkout-requirement). |
| `isAccountRequired` | `boolean` | Misafir checkout kapalıysa ve yalnızca hesabı olan müşteriler alışverişi tamamlayabiliyorsa `true` olur. |
| `isGiftPackageEnabled` | `boolean \| null` | - |
| `isShowPostalCode` | `boolean \| null` | - |
| `isTermsAndConditionsDefaultChecked` | `boolean \| null` | - |
| `options` | `IkasCheckoutOption[] \| null` | Bkz. [IkasCheckoutOption](https://builders.ikas.com/docs/headless-theme/api/checkout-and-payment#ikas-checkout-option). |
| `phoneRequirement` | `IkasCheckoutRequirement` | Bkz. [IkasCheckoutRequirement](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-checkout-requirement). |
| `postalCodeRequirement` | `IkasCheckoutRequirement \| null` | Bkz. [IkasCheckoutRequirement](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-checkout-requirement). |
| `showCheckoutNote` | `boolean \| null` | - |
| `showTermsAndConditionsCheckbox` | `boolean` | - |
| `storefrontId` | `string` | - |

## IkasPaymentGateway extends IkasBaseModel [#ikas-payment-gateway]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `additionalPrices` | `IkasPaymentGatewayAdditionalPrice[] \| null` | Bkz. [IkasPaymentGatewayAdditionalPrice](https://builders.ikas.com/docs/headless-theme/api/checkout-and-payment#ikas-payment-gateway-additional-price). |
| `availableCountries` | `string[] \| null` | - |
| `code` | `string` | - |
| `description` | `string \| null` | - |
| `logoUrl` | `string \| null` | - |
| `masterPassClientId` | `string \| null` | - |
| `name` | `string` | - |
| `paymentGatewayProviderId` | `string \| null` | - |
| `supportedCurrencies` | `string[] \| null` | - |
| `testMode` | `boolean \| null` | - |
| `type` | `IkasPaymentGatewayType` | Bkz. [IkasPaymentGatewayType](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-payment-gateway-type). |
| `paymentMethods` | `IkasPaymentMethod[]` | Bkz. [IkasPaymentMethod](https://builders.ikas.com/docs/headless-theme/api/checkout-and-payment#ikas-payment-method). |
| `paymentMethodType` | `IkasPaymentMethodType` | Bkz. [IkasPaymentMethodType](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-payment-method-type). |
| `settings` | `IkasPaymentGatewaySettings[] \| null` | Bkz. [IkasPaymentGatewaySettings](https://builders.ikas.com/docs/headless-theme/api/checkout-and-payment#ikas-payment-gateway-settings). |
| `translations` | `IkasPaymentGatewayTranslation[] \| null` | Bkz. [IkasPaymentGatewayTranslation](https://builders.ikas.com/docs/headless-theme/api/checkout-and-payment#ikas-payment-gateway-translation). |

**Metotlar**

**`getCalculatedAdditionalPrices`**

```typescript
function getCalculatedAdditionalPrices(totalFinalPrice: number, shippingLines: IkasOrderShippingLine[] | null): { name: string; amount: number; type: IkasPaymentGatewayAdditionalPriceType; }[] | undefined
```

| Parametre | Tip |
| --- | --- |
| `totalFinalPrice` | `number` |
| `shippingLines` | `IkasOrderShippingLine[] \| null` |

## IkasPaymentMethod [#ikas-payment-method]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `name` | `string` | - |
| `logoUrl` | `string \| null` | - |

## IkasAvailableShippingMethod [#ikas-available-shipping-method]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `price` | `number` | - |
| `rateName` | `string` | - |
| `shippingMethod` | `IkasShippingMethod` | Bkz. [IkasShippingMethod](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-shipping-method). |
| `shippingSettingsId` | `string` | - |
| `shippingZoneRateId` | `string` | - |

## IkasCheckoutOption [#ikas-checkout-option]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `name` | `string` | - |
| `required` | `boolean` | - |

## IkasCheckoutSettingsPrice [#ikas-checkout-settings-price]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `currencyCode` | `string` | - |
| `currencySymbol` | `string \| null` | - |
| `price` | `number` | - |

## IkasPaymentGatewayAdditionalPrice [#ikas-payment-gateway-additional-price]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `amount` | `number` | - |
| `amountType` | `IkasPaymentGatewayTransactionFeeType` | Bkz. [IkasPaymentGatewayTransactionFeeType](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-payment-gateway-transaction-fee-type). |
| `name` | `string` | - |
| `type` | `IkasPaymentGatewayAdditionalPriceType` | Bkz. [IkasPaymentGatewayAdditionalPriceType](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-payment-gateway-additional-price-type). |

## IkasPaymentGatewaySettings [#ikas-payment-gateway-settings]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `label` | `string` | - |
| `order` | `number` | - |
| `type` | `IkasPaymentGatewaySettingsType` | Bkz. [IkasPaymentGatewaySettingsType](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-payment-gateway-settings-type). |
| `value` | `string \| null` | - |

## IkasPaymentGatewayTranslation [#ikas-payment-gateway-translation]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `description` | `string \| null` | - |
| `locale` | `string` | - |
| `name` | `string \| null` | - |

## IkasSalesChannelPaymentGateway [#ikas-sales-channel-payment-gateway]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `id` | `string` | - |
| `order` | `number` | - |

## IkasTransactionError [#ikas-transaction-error]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `code` | `string \| null` | - |
| `declineCode` | `string \| null` | - |
| `message` | `string \| null` | - |

## IkasTransactionInstallmentPrice [#ikas-transaction-installment-price]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `installmentCount` | `number \| null` | - |
| `installmentPrice` | `number \| null` | - |
| `originalRate` | `number \| null` | - |
| `rate` | `number \| null` | - |
| `totalPrice` | `number \| null` | - |

## IkasTransactionPaymentMethodDetail [#ikas-transaction-payment-method-detail]

| Field | Tip | Açıklama |
| --- | --- | --- |
| `bankName` | `string \| null` | - |
| `binNumber` | `string` | - |
| `cardAssociation` | `IkasTransactionCardAssociation \| null` | Bkz. [IkasTransactionCardAssociation](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-transaction-card-association). |
| `cardFamily` | `string \| null` | - |
| `cardType` | `IkasTransactionCardType \| null` | Bkz. [IkasTransactionCardType](https://builders.ikas.com/docs/headless-theme/api/enums#ikas-transaction-card-type). |
| `installment` | `IkasTransactionInstallmentPrice \| null` | Bkz. [IkasTransactionInstallmentPrice](https://builders.ikas.com/docs/headless-theme/api/checkout-and-payment#ikas-transaction-installment-price). |
| `lastFourDigits` | `string` | - |
| `threeDSecure` | `boolean \| null` | - |
