⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
vendor
/
iyzico
/
iyzipay-php
/
samples
/
View File Name :
create_threeds_payment.php
<?php require_once('config.php'); require_once('signature_verification.php'); # create request class $request = new \Iyzipay\Request\CreateThreedsPaymentRequest(); $request->setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPaymentId("1"); $request->setConversationData("conversation data"); # make request $threedsPayment = \Iyzipay\Model\ThreedsPayment::create($request, Config::options()); # print result print_r($threedsPayment); #verify signature $paymentId = $threedsPayment->getPaymentId(); $currency = $threedsPayment->getCurrency(); $basketId = $threedsPayment->getBasketId(); $conversationId = $threedsPayment->getConversationId(); $paidPrice = $threedsPayment->getPaidPrice(); $price = $threedsPayment->getPrice(); $signature = $threedsPayment->getSignature(); $calculatedSignature = calculateHmacSHA256Signature(array($paymentId, $currency, $basketId, $conversationId, $paidPrice, $price)); $verified = $signature == $calculatedSignature; echo "Signature verified: $verified";