Get your keys from iyzico
Pick the panel
Open the API keys
Copy the keys
Set the notification URL in iyzico
Open the notification settings
Enter the URL
Add the keys in MagicPost
Open the Iyzico card
Enable it
Paste the keys
- Live Iyzico API Key
- Live Iyzico Secret Key
- Sandbox Iyzico API Key
- Sandbox Iyzico Secret Key
Webhook Secret
Save
How payments work
One-time plans (Prepaid, Lifetime). MagicPost opens an iyzico checkout form for the plan price. It offers installments of 1, 2, 3, 6 and 9, sends the plan as one virtual item, and redirects the customer to the iyzico payment page. When the customer returns, MagicPost asks iyzico for the form result and records the order only if the payment status isSUCCESS. For Lifetime plans it also creates the subscription.
Recurring plans (Monthly, Yearly). The first time someone buys the plan, MagicPost creates an iyzico subscription product and a recurring pricing plan with a monthly interval, repeated once for Monthly plans and twelve times for Yearly plans. It then opens an iyzico subscription checkout form for the customer. When the customer returns, MagicPost confirms the form, then records the order and the subscription using iyzico’s subscription reference code.
Buyer details. iyzico requires buyer and address data. MagicPost sends the name, email and phone from checkout, and the address, city, country and postal code from the billing details. Where a value is missing it sends — for text, 00000 for the postal code and TR for the country. iyzico also requires an identity number, and MagicPost sends the placeholder 11111111111 for every buyer. To collect real addresses, turn on Billing Information in Finance settings.
Webhook.
SUBSCRIPTION_ORDER_SUCCESS(also accepted assubscription.success) extends the subscriber’s period and renews the credit allowance.SUBSCRIPTION_CANCELLED,SUBSCRIPTION_EXPIREDandsubscription.cancelledmark the subscription as cancelled.
Currency
MagicPost sends the plan’s currency in uppercase and the price with two decimals. Your iyzico account must be able to charge the plan’s currency.Test mode
Put the sandbox API key and secret key in the two Sandbox fields, select Sandbox under Mode and save. MagicPost then calls iyzico’s sandbox API. Switch Mode back to Live before you sell.Common errors
This payment method is not available right now.
This payment method is not available right now.
We could not start the payment. Please try again or contact support.
We could not start the payment. Please try again or contact support.
Iyzico could not start the payment. Please try again. / Iyzico returned an unexpected response.
Iyzico could not start the payment. Please try again. / Iyzico returned an unexpected response.
storage/logs/laravel.log.Iyzico did not return a checkout URL. / Iyzico did not return a subscription token.
Iyzico did not return a checkout URL. / Iyzico did not return a subscription token.
We could not prepare this plan for Iyzico billing. Please contact support.
We could not prepare this plan for Iyzico billing. Please contact support.
Missing Iyzico session reference. / Missing Iyzico token.
Missing Iyzico session reference. / Missing Iyzico token.
Payment was not completed. / Subscription was not completed.
Payment was not completed. / Subscription was not completed.

