承接 gingerpayments/ginger-plugin-sdk 相关项目开发

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

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

gingerpayments/ginger-plugin-sdk

Composer 安装命令:

composer require gingerpayments/ginger-plugin-sdk

包简介

Extra layer for ginger-php library to use in plugin development.

README 文档

README

This library is custom developed for Ginger API, based on schemas from API.
Should be used with payment plugins or for order creation.

Available functionality :

  • Creation Order entity with all related entities.
  • Post the new order to Ginger API.

Overview :

Entities Overview

Transactions

This entity contains several single transactions, basically no more than 1 transaction.

  • To initialize new object :
$transactions = new Transactions(
    new Transaction(...)
);
  • To add new transaction :
$transactions->addTransaction($transaction);
  • To remove transaction by index :
$transactions->removeTransaction($index);

Transaction

This entity contains general payment information. You should use this entity to tell the API how to process your request.

  • To initialize new object :
$transaction = new Transaction(
    paymentMethod: "apple-pay"
);
  • To add Payment Method Details there is two ways :

    • While initializing
    $transaction = new Transaction(
      paymentMethod: "ideal",
      paymentMethodDetails: new PaymentMethodDetails(...)
    );  
    • Through std object exemplar, in way of expanding its properties (for now only with prepared for payment methods).
    $transaction->getPaymentMethodDetails()->setPaymentMethodDetailsIdeal();
  • To receive a Payment Method Details :

$transaction->getPaymentMethodDetails();

Payment Method

This field should be used to store payment name.

Payment Method Details

This entity contains additional payload for payment method, such as issuer id, hosted fields data
or data for recurring payments.

  • For now, only string types of attributes values are supported.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固