phuongdev89/omnipay-eshoppayment 问题修复 & 功能扩展

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

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

phuongdev89/omnipay-eshoppayment

Composer 安装命令:

composer require phuongdev89/omnipay-eshoppayment

包简介

Omnipay for eshoppayment

README 文档

README

Omnipay for Eshoppayment

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist phuongdev89/omnipay-eshoppayment "*"

or add

"phuongdev89/omnipay-eshoppayment": "*"

to the require section of your composer.json file.

Usage

The following gateways are provided by this package:

  • Eshoppayment

For general usage instructions, please see the main Omnipay repository.

Example

Create payment url

use Omnipay\Common\CreditCard;
use Omnipay\Eshoppayment\Gateway;
use Omnipay\Omnipay;

$command = Omnipay::create(Gateway::NAME);
$command->initialize([
    'userNo'    => '11131553',
    'paySecret' => 'ffu6uu91888843660123x544oo6ccbwx',
]);
$card     = new CreditCard([
    'firstName'   => 'Alexa',
    'lastName'    => 'Smith',
    'number'      => '4200000000000000',
    'cvv'         => '000',
    'expiryMonth' => '09',
    'expiryYear'  => '23',
    'state'       => 'Hanoi',
    'postcode'    => '100000',
    'address1'    => 'No 1208 CT 4-5 Yen Hoa',
    'city'        => 'Cau Giay',
    'country'     => 'VN', //ansi country code
]);
$response = $command->purchase([
    'card'        => $card,
    'currency'    => 'USD',
    'email'       => 'test@gmail.com',
    'language'    => 'en',
    'merOrderNo'  => 1,//unique id of order
    'amount'      => 10,
    'productInfo' => 'Test 10 do',
    'requestUrl'  => 'http://google.com',
    'ip'          => '0.0.0.0', //Your client real ip address
])->send();
echo '<pre>';
print_r($response->getData());
die;

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固