SkillAgentSearch skills...

Shopier

Shopier api ile ödeme yapma

Install / Use

/learn @canavci2016/Shopier
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

shopier

Shopier api ile ödeme yapma

Shopier api kullanımı example.php dosyasında anlatılmıştır.

NASIL INDIRILIR


composer require canavci2016/shopier

Manual kullanım


require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload

use CanAvci\Shopier\Shopier;
use CanAvci\Shopier\BillingAddress;
use CanAvci\Shopier\ShippingAddress;
use CanAvci\Shopier\Person;

define("ORDER_ID", uniqid());
define("ORDER_AMOUNT", rand(100, 4000));
define("CALLBACK_URL", "https://www.canavci.com/ccc");


$shopier = new Shopier("q2eq2", "q2eq2e");

// satın alan kişinin bilgileri
$buyer = new Person;
$buyer->setName("can");
$buyer->setSurname("avci");
$buyer->setEmail("test@testmail.com");
$buyer->setPhone("5364778591");

// fatura adresi
$billingAddress = new BillingAddress;
$billingAddress->setCountry("turkey");
$billingAddress->setCity("istanbul");
$billingAddress->setAddress("Kartaltepeme Mah");
$billingAddress->setPostcode("34200");

// teslimat adresi
$shippingAddress = new ShippingAddress;
$shippingAddress->setCountry("turkey");
$shippingAddress->setCity("istanbul");
$shippingAddress->setAddress("Kartaltepeme Mah");
$shippingAddress->setPostcode("34120");


$shopier->setBuyer($buyer);
$shopier->setBillingAddress($billingAddress);
$shopier->setShippingAdress($shippingAddress);

$shopier->fields(ORDER_ID, ORDER_AMOUNT, CALLBACK_URL);

die($shopier->run(ORDER_ID, ORDER_AMOUNT, CALLBACK_URL));
View on GitHub
GitHub Stars11
CategoryDevelopment
Updated4mo ago
Forks7

Languages

PHP

Security Score

72/100

Audited on Dec 1, 2025

No findings