承接 mysiar/omnipay-przelewy24v1 相关项目开发

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

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

mysiar/omnipay-przelewy24v1

最新稳定版本:0.7.1

Composer 安装命令:

composer require mysiar/omnipay-przelewy24v1

包简介

Przelewy24 API v1 driver for the Omnipay payment processing library

README 文档

README

Przelewy24 API V1 gateway for the Omnipay PHP payment processing library

CI Latest Version Total downloads GitHub license PHP Version Require GitHub stars

API endpoints implemented

API endpoint Gateway method
/api/v1/testAccess testAccess
/api/v1/payment/methods methods
/api/v1/transaction/register purchase
/api/v1/transaction/verify completePurchase
/api/v1/transaction/refund refund
/api/v1/transaction/by/sessionId purchaseInfo
/api/v1/card/info cardInfo
/api/v1/card/pay cardPay
/api/v1/card/charge cardCharge
/api/v1/card/chargeWith3ds cardCharge3ds
/api/v1/transaction/registerOffline purchaseOffline

Install

This gateway can be installed with Composer:

$ composer require mysiar/omnipay-przelewy24v1

Usage

The following gateways are provided by this package:

  • Przelewy24

Reference official documentation https://developers.przelewy24.pl/index.php?en

Example

require_once  __DIR__ . '/vendor/autoload.php';

use Omnipay\Omnipay;

/** @var \Omnipay\Przelewy24\Gateway $gateway */
$gateway = Omnipay::create('Przelewy24');

$gateway->initialize([
    'merchantId' => 'YOUR MERCHANT ID HERE',
    'posId'      => 'YOUR POS ID HERE',
    'crc'        => 'YOUR CRC KEY HERE',
    'reportKey'  => 'YOUR REPORT KEY HERE'
    'testMode'   => true,
]);

$params = [
    'sessionId' => 2327398739,
    'amount' => 12.34,
    'currency' => 'PLN',
    'description' => 'Payment test',
    'email' => 'franek@dolas.com',
    'country' => 'PL',
    'returnUrl' => 'www.your-domain.pl/return_here',
    'notifyUrl' => 'www.your-domain.pl/notify_here',
];

$response = $gateway->purchase($params)->send();

For more examples check

Optionally you can specify the payment channels.

$gateway->initialize([
    //[...]
    'channel' => Gateway::P24_CHANNEL_CC,
]);

// or
$gateway->setChannel(Gateway::P24_CHANNEL_CC); 

Optionally you can specify language (default: en).

$gateway->initialize([
    //[...]
    'language' => 'pl',
]);

// or
$gateway->setLanguage('pl'); 

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-13