Download the PHP package gingerpayments/ginger-plugin-sdk without Composer
On this page you can find all versions of the php package gingerpayments/ginger-plugin-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gingerpayments/ginger-plugin-sdk
More information about gingerpayments/ginger-plugin-sdk
Files in gingerpayments/ginger-plugin-sdk
Package ginger-plugin-sdk
Short Description Extra layer for ginger-php library to use in plugin development.
License MIT
Informations about the package ginger-plugin-sdk
Ginger Plugin SDK
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
- Transaction
- Payment Method
- Payment Method Details
- Payment Method
- Transaction
- Description
- Amount
- Customer
- Birthdate
- Address
- Country
- Order Lines
- Line
- Extra
- Client
Transactions
This entity contains several single transactions, basically no more than 1 transaction.
-
To initialize new object :
-
To add new transaction :
- To remove transaction by 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 :
-
To add Payment Method Details there is two ways :
-
While initializing
- Through std object exemplar, in way of expanding its properties (for now only with prepared for payment methods).
-
- To receive a Payment Method Details :
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.