New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

activecollab/payments

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

activecollab/payments

Abstract interface for preparing orders and processing payments

Source
Packagist
Version
1.0.1
Version published
Total downloads
15K
Maintainers
1
Created
Source

Payments

Build Status

Prepare orders and receive payments. Concept and exploration. We'll see where it will lead us.

Order lifecycle events:

  • Completed,
  • Partially refunded,
  • Fully refunded.

Subscription lifecycle events:

  • Activation,
  • Successful rebill,
  • Failed rebill,
  • Change,
  • Deactivation.

When gateway listens to notifications from the gateway service, it should use ActiveCollab\Payments\Dispatcher instance to dispatch events so application can react to these order and/or subscription changes.

Working with Addresses

Address Interfaces

ActiveCollab\Payments\Address\AddressInterface describe an address. It can be used to define an address of an organization, or of an individual. In case of organizations, we can also keep track of tax ID, for invoicing purposes.

Addresses Interfaces

ActiveCollab\Payments\Address\AddressesInterface is used to handle situations where addressible object can have more than one address. For example, a merchant can have multiple locations, or it can change primary location at some point in time. Not having other addresses, or lossing info about previous addresses may not be acceptible, so we have to keep track about all addresses associated with the object.

Addresses interface can be combined with of following interfaces, when we want to specify a default address:

  • ActiveCollab\Payments\Address\OptionalDefaultAddressInterface when default address is optional,
  • ActiveCollab\Payments\Address\RequiredDefaultAddressInterface when default address is required.

To do:

  • Subscription change should have the new total and new items.

Keywords

payments

FAQs

Package last updated on 24 Jun 2019

Related posts