定制 alaikis/dimebia-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

alaikis/dimebia-php

最新稳定版本:v1.0.1

Composer 安装命令:

composer require alaikis/dimebia-php

包简介

Fourth party settlement platform for enterprises

README 文档

README

1,install the package via composer

composer require alaikis/dimebia-php

2,you can use this client to create a payment as simple with a few lines of code

$key = "";
$secret = "";
$client = new Dimebia($key, $secret);
$payment = $client->paymentApply([
    "amount" => [
        "value" => 100,
        "currency" => "EUR",
    ],
    'channel_id' => 1000,
    "description"' => "make a payment by api",
])

create a payment

3, Of course,you can also generate a payment with full information about the order,which is useful for e-commerce, then you can track the transform with the information easy.

$key = "";
$secret = "";
$client = new Dimebia($key, $secret);
$payment = $client->paymentApply([
    "amount" => [
        "value" => 100,
        "currency" => "EUR",
    ],
    "billing_address" => [
        "streetAndNumber" => "Keizersgracht 313",
        "postalCode" => "1016 EE",
        "city" => "Amsterdam",
        "country" => "nl",
        "givenName" => "Luke",
        "familyName" => "Skywalker",
        "email" => "luke@skywalker.com",
    ],
    "shipping_address" => [
        "streetAndNumber" => "Keizersgracht 313",
        "postalCode" => "1016 EE",
        "city" => "Amsterdam",
        "country" => "nl",
        "givenName" => "Luke",
        "familyName" => "Skywalker",
        "email" => "luke@skywalker.com",
    ],
    "locale" => "en_US",
    "orderNumber" => "1234",
    'channel_id' => 1000,
    "description"' => "make a payment by api",
    "redirect_url" => "https://example.com/payment-success",
    "cancel_url" => "https://example.com/payment-failed",
    "webhookUrl" => "https://example.com/webhook",
    "lines" => [
        [
            "sku" => "5702016116977",
            "name" => "LEGO 42083 Bugatti Chiron",
            "productUrl" => "https://shop.lego.com/nl-NL/Bugatti-Chiron-42083",
            "imageUrl" => 'https://sh-s7-live-s.legocdn.com/is/image//LEGO/42083_alt1?$main$',
            "quantity" => 2,
            "vatRate" => "21.00",
            "unitPrice" => [
                "currency" => "EUR",
                "value" => "399.00",
            ],
            "totalAmount" => [
                "currency" => "EUR",
                "value" => "698.00",
            ],
            "discountAmount" => [
                "currency" => "EUR",
                "value" => "100.00",
            ],
            "vatAmount" => [
                "currency" => "EUR",
                "value" => "121.14",
            ],
        ],
        // more order line items
    ],
])

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-10