CF-Initialize

This is the quickest and easiest way to complete your payments. It allows for a seamless payment process without the need for additional queries such as card front side checks, BIN queries, installment queries, 3D Secure checks, or card information saving integrations. By following this process, you can ensure a smooth and efficient integration with iyzico, providing a streamlined payment experience for your customers.

By incorporating these features, you can provide a seamless payment experience for your customers, with real-time feedback on the success or failure of their transactions.

Checkout Form (CF) Initialize

post

Starts a Checkout Form session and returns checkoutFormContent / paymentPageUrl and a token to render the payment page.

Header parameters
AuthorizationstringRequired

Authorization header that starts with IYZWSv2 and is a signed hash generated in Base64 format.

Example: IYZWSv2 aXBzaWduYXR1cmU...
Content-TypestringRequired

Content-Type value.

Example: application/json
Body
localestring · enumOptional

Language code. Default is tr. Send en to render the form in English.

Example: enPossible values:
conversationIdstringOptional

Request/response correlation ID. The value sent in the request is returned unchanged in the response.

Example: conversationId
pricedecimalRequired

Basket total.

Example: 6
paidPricedecimalRequired

Total amount to be charged.

Example: 6
currencystring · enumRequired

Currency. Default is TRY.

Example: TRYPossible values:
basketIdstringOptional

Basket ID.

Example: basketId
paymentGroupstring · enumOptional

Payment group. Default is PRODUCT.

Example: PRODUCTPossible values:
callbackUrlstringRequired

Merchant URL that iyzico calls to deliver both success and failure results. Must have a valid SSL certificate.

Example: https://callback.com/test
enabledInstallmentsinteger[]Optional

Available installment options.

Example: [1,2,3,4,6,9,12]
Responses
200

Successful response (CF initialized)

application/json
post
/payment/iyzipos/checkoutform/initialize/auth/ecom

Sample Codes

Last updated