canavci2016/shopier 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

canavci2016/shopier

Composer 安装命令:

composer require canavci2016/shopier

包简介

README 文档

README

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));

统计信息

  • 总下载量: 106
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 0
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固