yalnız daha 3d'ye gitmeden önce paymentid eklemye calıstım ama öyle birşey yok dio benım sorunumuz 3d kısmında sanırım post değerleri boş geliyor.Daha önce çok entregasyon yaptım ama neden böyle oldu anlamadım gözümden kaçan birşeymi var acaba
Fatal error: Uncaught Error: Call to undefined method IyzipayRequestCreatePaymentRequest::setPaymentId() https://github.com/iyzico/iyzipay-php IyzipayBootstrap::init();
# create request class
$options = new IyzipayOptions();
$options->setApiKey($iyziId);
$options->setSecretKey($iyziKey);
$options->setBaseUrl($iyziBaseurl);
$request = new IyzipayRequestCreatePaymentRequest();
$request->setLocale(IyzipayModelLocale::TR);
$request->setConversationId("123456789");
$request->setPrice($toplamtutar);
$request->setPaidPrice($toplamtutar);
$request->setCurrency(IyzipayModelCurrency::TL);
$request->setInstallment($taksit);
$request->setBasketId("B67832");
$request->setPaymentChannel(IyzipayModelPaymentChannel::WEB);
$request->setPaymentGroup(IyzipayModelPaymentGroup::PRODUCT);
$paymentCard = new IyzipayModelPaymentCard();
$paymentCard->setCardHolderName($cardadsoyad);
$paymentCard->setCardNumber($cardnumber);
$paymentCard->setExpireMonth($ccay);
$paymentCard->setExpireYear($ccyil);
$paymentCard->setCvc($cvc);
$paymentCard->setRegisterCard(0);
$request->setPaymentCard($paymentCard);
/*$paymentCard = new IyzipayModelPaymentCard();
$paymentCard->setCardHolderName("John Doe");
$paymentCard->setCardNumber("5528790000000008");
$paymentCard->setExpireMonth("12");
$paymentCard->setExpireYear("2030");
$paymentCard->setCvc("123");
$paymentCard->setRegisterCard(0);
$request->setPaymentCard($paymentCard);*/
$buyer = new IyzipayModelBuyer();
$buyer->setId("BY789");
$buyer->setName($uyebul['ad']);
$buyer->setSurname($uyebul['soyad']);
$buyer->setGsmNumber($uyebul['telefon']);
$buyer->setIdentityNumber('14633115734');
$buyer->setEmail($uyebul['email']);
$buyer->setRegistrationAddress('test');
$buyer->setZipCode("34732");
$buyer->setCity("Istanbul");
$buyer->setCountry("Turkey");
$buyer->setIp(getenv('REMOTE_ADDR'));
$request->setBuyer($buyer);
// adres bilgileri
$shippingAddress = new IyzipayModelAddress();
$shippingAddress->setContactName($uyebul['ad']." ".$uyebul['soyad']);
$shippingAddress->setCity("Eskisehir");
$shippingAddress->setCountry("Turkey");
$shippingAddress->setAddress("Arifi");
$request->setShippingAddress($shippingAddress);
// fatura adres
$billingAddress = new IyzipayModelAddress();
$billingAddress->setContactName($uyebul['ad']." ".$uyebul['soyad']);
$billingAddress->setAddress('Arifiye Mah');
$billingAddress->setCity("Eskisehir");
$billingAddress->setCountry("Turkey");
$request->setBillingAddress($billingAddress);
$basketItems = array();
$firstBasketItem = new IyzipayModelBasketItem();
$firstBasketItem->setId("BI101");
$firstBasketItem->setName($set['seo']['t']);
$firstBasketItem->setCategory1($set['seo']['t']);
$firstBasketItem->setItemType(IyzipayModelBasketItemType::PHYSICAL);
$firstBasketItem->setPrice($toplamtutar);
$basketItems[0] = $firstBasketItem;
$request->setBasketItems($basketItems);
$request->setPaymentId("123123");
$request->setCallbackUrl($set['siteurl']."/include/modules/odeme/3dsonuc.php");
$threedsInitialize = IyzipayModelThreedsInitialize::create($request,$options);
# print result
$detaylar = $threedsInitialize->getRawResult();
$resultJson = json_decode($detaylar,true);