JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "verify_c2c_sub_merchant.php"
Full Path: /var/www/laravel_filter/vendor/iyzico/iyzipay-php/samples/verify_c2c_sub_merchant.php
File size: 881 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
require_once('config.php');
function verifyC2CSubMerchant(): void {
$credentials = new \Iyzipay\Model\C2CSubMerchantApiCredentials();
$credentials->setSalt('Merchant onboarding salt');
$credentials->setSecretKey('Merchant onboarding secret key');
$encryptedVerificationCode = \Iyzipay\Model\C2CSubMerchantSmsVerificationCodeEncrypter::encrypt($credentials, '123456');
$request = new \Iyzipay\Request\VerifyC2CSubMerchantRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId('422117402');
$request->setTxId('txId obtained from create subMerchant');
// Encrypted code won't work in Sandbox
$request->setSmsVerificationCode($encryptedVerificationCode);
$c2cSubMerchant = \Iyzipay\Model\C2CSubMerchant::verify($request, Config::options());
print_r($c2cSubMerchant);
}
verifyC2CSubMerchant();