Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/vendor/async-aws/.././psr/../spatie/../composer/../filp/../mockery/./.././authorizenet/.././psr/../spatie/../filp/../iyzico/iyzipay-php/samples/subscription-samples
الملفات الموجودة في هذا الـ Path:
.
..
activate_subscription.php
cancel_subscription.php
card_update_customer.php
card_update_with_subscription_reference_code.php
create_customer.php
create_pricing_plan.php
create_product.php
create_subscription_api.php
create_subscription_with_checkout_form.php
create_subscription_with_customer_reference_code.php
delete_pricing_plan.php
delete_product.php
list_customers.php
list_pricing_plan.php
list_products.php
retrieve_customer.php
retrieve_pricing_plan.php
retrieve_product.php
retrieve_subscription.php
retrieve_subscription_checkout_form_result.php
retry_subscription.php
search_subscription.php
update_customer.php
update_pricing_plan.php
update_product.php
upgrade_subscription.php

مشاهدة ملف: create_customer.php

<?php

require dirname(__DIR__) . '/config.php';

$request = new \Iyzipay\Request\Subscription\SubscriptionCreateCustomerRequest();
$request->setLocale("tr");
$request->setConversationId("1234567789");
$customer = new \Iyzipay\Model\Customer();
$customer->setName("John");
$customer->setSurname("Doe");
$customer->setGsmNumber("+905555555555");
$customer->setEmail("johndoe@iyzicotest.com");
$customer->setIdentityNumber("11111111111");
$customer->setShippingContactName("John Doe");
$customer->setShippingCity("Istanbul");
$customer->setShippingDistrict("altunizade");
$customer->setShippingCountry("Turkey");
$customer->setShippingAddress("Uskudar Burhaniye Mahallesi iyzico A.S");
$customer->setShippingZipCode("34660");
$customer->setBillingContactName("John Doe");
$customer->setBillingCity("Istanbul");
$customer->setBillingDistrict("altunizade");
$customer->setBillingCountry("Turkey");
$customer->setBillingAddress("Uskudar Burhaniye Mahallesi iyzico A.S");
$customer->setBillingZipCode("34660");
$request->setCustomer($customer);
$result = \Iyzipay\Model\Subscription\SubscriptionCustomer::create($request,Config::options());
print_r($result);