定制 paytring/php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

paytring/php

最新稳定版本:v0.0.2

Composer 安装命令:

composer require paytring/php

包简介

php sdk for paytring

README 文档

README

Supported Features

  • Only Non Seamless Integration Api SUpported
  • Create Order
  • Fetch/Verify Order

Non Seamless

This sdk only supports non seamless integration, by non seamless we mean the the use will alway need to redirect the ens user to payment gateways where he'll select his preferred payment method and complete payment.

Create Order

$api_key = "test_123";
$api_secret = "secret_123";

$paytring = new  \Paytring\Php\Api($api_key, $api_secret);

$amount_in_paisa  = "100";
$receipt_number  = "10123450";
$merchant_callback_Url  = "http://localhost:8000/callback";

$customer_info = [
    'name' => 'John Doe',
    'email' => 'a@mcsam.in',
    'phone' => '9234567890',    
];

$response = $paytring->CreateOrder( 
        $amount_in_paisa,
        $receipt_number, 
        $merchant_callback_Url, 
        $customer_info
    );

var_dump($response);

CreateOrder method ask you to provide below listened info and wont proceed without it.

  • Amount in paisa eg. for Rs.1 == 100
  • Receipt Number eg. 100d12 # this is merchant order ref no
  • Merchant Callback url , this is were pg will redirect user after payment complete(success/failure) in post request.
  • CUstomer Info eg. Name, Email and Phone

Fetch Order

$api_key = "test_123";
$api_secret = "secret_123";

$paytring = new  \Paytring\Php\Api($api_key, $api_secret);

$pg_order_id  = "d234ew32r4345fd";

$fetchResponse = $paytring->FetchOrder($pg_order_id);

var_dump($fetchResponse);

Fetch Order method ask you to provide below listened info and wont proceed without it.

  • PG Order Id, when you create a order pg will give you an order if you can pass the same to this function to get info like payment status and more about that here.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-05-15