承接 oveland/placetopay 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

oveland/placetopay

Composer 安装命令:

composer require oveland/placetopay

包简介

PHP library to make a basic test pay with PlaceToPay

README 文档

README

Installation

Install via composer

$ composer require oveland/placetopay

Or include on composer.json file:

"require": {
	"oveland/placetopay": "^1.0"
}

How to use

use Oveland\Placetopay\PlaceToPay;

...

$params = [
    'payer' => [
        'documentType' => 'CC',
        'document' => '1061743074',
        'firstName' => 'Oscar',
        'lastName' => 'Velásquez Andrade',
        'company' => 'Oveland',
        'emailAddress' => 'oscarivelan@gmail.co',
        'address' => 'Cra 10 23 N 55',
        'city' => 'Popayán',
        'province' => 'Cauca',
        'country' => 'CO',
        'phone' => 'null',
        'mobile' => '3145224313'
    ],
    'buyer' => null,
    'shipping' => null,
    'bank' => [
        'bankCode' => 1022,
        'bankInterface' => 0,
        'returnURL' => 'http://oveland.placetopay/',
        'reference' => uniqid(rand(), true),
        'description' => 'Pago Básico Oveland',
        'language' => 'ES',
        'currency' => 'COP',
        'totalAmount' => 10,
        'taxAmount' => 0,
        'devolutionBase' => 0,
        'tipAmount' => 0
    ],
    'additionalData' => [
        [
            'name' => 'foo',
            'value' => 'bar'
        ],
        [
            'name' => 'foo_1',
            'value' => 'bar_1'
        ]
    ]
];

$placetopay = new PlaceToPay();

$transaction = $placetopay->createTransaction($params);
$status = $placetopay->getTransactionInformation($transaction->getTransactionID());


Methods

Bank List:

Get array of bank list: $placetopay->getBankList();

Transaction:

Get return code: $transaction->getReturnCode();

Get bank url redirect: $transaction->getBankURL();

Get trazability code: $transaction->getTrazabilityCode();

Get transaction cycle: $transaction->getTransactionCycle();

Get transaction ID: $transaction->getTransactionID();

Get session ID: $transaction->getSessionID();

Get bank currency: $transaction->getBankCurrency();

Get bank factor: $transaction->getBankFactor();

Get response code: $transaction->getResponseCode();

Get response reason code: $transaction->getResponseReasonCode();

Get response reason text: $transaction->getResponseReasonText();

Get array of all data: $transaction->getData();

Status:

Get transaction ID: $status->getTransactionID();

Get session ID: $status->getSessionID();

Get reference: $status->getReference();

Get request date: $status->getRequestDate();

Get trazability code: $status->getTrazabilityCode();

Get bank process date: $status->getBankProcessDate();

Get bank on test: $status->getOnTest();

Get return code: $status->getReturnCode();

Get trazability code: $status->getTrazabilityCode();

Get transaction cycle: $status->getTransactionCycle();

Get transaction state: $status->getTransactionState();

Get response code: $status->getResponseCode();

Get response reason code: $status->getResponseReasonCode();

Get response reason text: $status->getResponseReasonText();

Get array of all data: $status->getData();

Example

See Laravel project that implements the PlaceToPay Library.

Please try the Live demo

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固