承接 ptuchik/omnipay-yandex 相关项目开发

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

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

ptuchik/omnipay-yandex

最新稳定版本:1.0.1

Composer 安装命令:

composer require ptuchik/omnipay-yandex

包简介

Yandex Money gateway for Omnipay payment processing library

README 文档

README

Yandex Money driver for the Omnipay Laravel payment processing library

Latest Stable Version Total Downloads

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.5+. This package implements Yandex Money support for Omnipay.

Installation

Omnipay is installed via Composer. To install, simply add it to your composer.json file:

{
    "require": {
        "ptuchik/omnipay-yandex": "~1.0"
    }
}

And run composer to update your dependencies:

composer update

Or you can simply run

composer require ptuchik/omnipay-yandex

Basic Usage

  1. Use Omnipay gateway class:
    use Omnipay\Omnipay;
  1. Initialize Yandex gateway and make a purchase:
    $gateway = Omnipay::create('Yandex');
    $gateway->setShopId(env('SHOP_ID'));
    $gateway->setSecretKey(env('SECRET_KEY'));
    $gateway->setReturnUrl(env('RETURN_URL'));
    $gateway->setAmount(10); // Amount to charge
    $gateway->setCurrency('RUB'); // Currency
    $purchase = $gateway->purchase()->send();
    
    if ($purchase->isSuccessful()) {
        // Do your logic
    } else {
        throw new Exception($purchase->getMessage());
    }
    
  1. Initialize Yandex gateway and make a refund:
    $gateway = Omnipay::create('Yandex');
    $gateway->setShopId(env('SHOP_ID'));
    $gateway->setSecretKey(env('SECRET_KEY'));
    $gateway->setReturnUrl(env('RETURN_URL'));
    $gateway->setAmount(10); // Amount to refund
    $gateway->setTransactionReference(10); // Payment ID
    $refund = $gateway->refund()->send();
    
    if ($refund->isSuccessful()) {
        // Do your logic
    } else {
        throw new Exception($refund->getMessage());
    }
    

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

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固