lindomarc / mercadopago-dx-php-laravel
FORK: Mercado Pago PHP SDK
2.4.7
2022-06-02 13:13 UTC
Requires
- php: >=7.1.0
- doctrine/annotations: ^1.8
- doctrine/common: ^2.6 || ^3.0
Requires (Dev)
- doctrine/orm: ~2.3
- phpdocumentor/phpdocumentor: ^2.0
- phpmd/phpmd: @stable
- phpunit/phpunit: ^5
- sebastian/phpcpd: *
- squizlabs/php_codesniffer: 2.8.1
- symfony/yaml: ~2.5
- vlucas/phpdotenv: ^2.5
- dev-main
- v5.6.x-dev
- 2.4.7
- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.0
- 1.12.5
- 1.12.4
- 1.12.3
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.1
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.7
- 1.2.6
- 1.2.6-beta
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1
- 1.0
- dev-master
- dev-master-v1
- dev-release/1.12.4
- dev-release/2.4.5
- dev-feature/remove-read-only-v1
- dev-feature/remove-read-only
- dev-release/1.12.1
- dev-release/2.4.2
- dev-release/1.12.0
- dev-release/2.4.0
- dev-release/1.10.0
- dev-fix/documentation
- dev-release/2.2.1
- dev-release/2.2.0
- dev-enhancement/header-credentials
- dev-release/2.1.1
- dev-release/2.1.0
- dev-feature/docs
- dev-fix/tests
- dev-fix/1.9.0-version
- dev-release/2.0.0
- dev-feature/SDKMP-129
- dev-release/1.9.0
- dev-feature/SDKMP-169
- dev-release/1.8.0
- dev-release/1.6.0
- dev-feature/trackingHeader
- dev-feature/OAuth
- dev-develop
This package is auto-updated.
Last update: 2024-09-16 19:00:36 UTC
README
此库为开发人员提供了一套简单的绑定,帮助您将 Mercado Pago API 集成到网站中,并开始接收支付。
💡 要求
PHP 5.6, 7.1 或更高版本
💻 安装
第一次使用 Mercado Pago?如果您还没有,请创建您的 Mercado Pago 账户。
-
如果尚未安装,请下载 Composer。
-
在项目目录中,在命令行上运行
composer require "mercadopago/dx-php:2.4.7"
以用于 PHP7 或composer require "mercadopago/dx-php:1.12.5"
以用于 PHP5.6。 -
将 access_token 复制到页面的 凭据部分,并用它替换 YOUR_ACCESS_TOKEN。
就是这样!Mercado Pago SDK 已成功安装。
🌟 开始使用
简单用法如下
<?php require_once 'vendor/autoload.php'; // You have to require the library from your Composer vendor folder MercadoPago\SDK::setAccessToken("YOUR_ACCESS_TOKEN"); // Either Production or SandBox AccessToken $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@email.com" ); $payment->save(); echo $payment->status; ?>
📚 文档
访问我们的开发网站获取有关以下方面的更多信息
查看 我们的官方代码参考以探索所有可用功能。
❤️ 支持
如果您需要技术支持,请联系我们的支持团队 developers.mercadopago.com
🏻 许可证
MIT license. Copyright (c) 2018 - Mercado Pago / Mercado Libre
For more information, see the LICENSE file.