liveecommerce/dx-php
Composer 安装命令:
composer require liveecommerce/dx-php
包简介
Fork from mercadopago/dx-php changing the dependencies versions.
README 文档
README
This library provides developers with a simple set of bindings to the Mercado Pago API.
PHP Versions Supported:
The SDK supports PHP 7.1 or major
Installation
Using Composer
- Download Composer if not already installed
- Go to your project directory and run
composer require "liveecommerce/dx-php:1.9.0"on the command line. - This how your directory structure would look like.
- Thats all, you have Mercado Pago SDK installed.
Quick Start
- You have to require the library from your Composer vendor folder.
require __DIR__ . '/vendor/autoload.php';
- Setup your credentials
You have two types of credentials:
- For API or custom checkout:
MercadoPago\SDK::setAccessToken("YOUR_ACCESS_TOKEN"); // On Production MercadoPago\SDK::setAccessToken("YOUR_TEST_ACCESS_TOKEN"); // On Sandbox
- For Web-checkout:
MercadoPago\SDK::setClientId("YOUR_CLIENT_ID"); MercadoPago\SDK::setClientSecret("YOUR_CLIENT_SECRET");
- Using resource objects.
You can interact with all the resources available in the public API, to this each resource is represented by classes according to the following diagram:
Sample
<?php require __DIR__ . '/vendor/autoload.php'; MercadoPago\SDK::setAccessToken("YOUR_ACCESS_TOKEN"); $payment = new MercadoPago\Payment(); $payment->transaction_amount = 141; $payment->token = "YOUR_CARD_TOKEN"; $payment->description = "Ergonomic Silk Shirt"; $payment->installments = 1; $payment->payment_method_id = "visa"; $payment->payer = array( "email" => "larue.nienow@hotmail.com" ); echo $payment->status; ?>
Support
Write us at developers.mercadopago.com
liveecommerce/dx-php 适用场景与选型建议
liveecommerce/dx-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39.22k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 liveecommerce/dx-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 liveecommerce/dx-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 39.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-03

