2017 © Pedro Peláez
 

elgg-plugin payments

Payments API for Elgg

image

hypejunction/payments

Payments API for Elgg

  • Sunday, March 18, 2018
  • by hypeJunction
  • Repository
  • 3 Watchers
  • 0 Stars
  • 109 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

Payments and sales API for Elgg

Elgg 2.3, (*1)

Features

  • Standardized API for handling payments and product sales
  • Interface for logging and refunding payments

Usage

New payment


namespace hypeJunction\Payments; // First, we create an itemized order/invoice $order = new Order(); $order->setCurrency('EUR'); // Add a new product $order->add($product, 2); // Add additional fees and charges $shipping = Amount::fromString('25.25', 'EUR'); $charges[] = new ShippingFee('shipping', 0, $shipping); $charges[] = new ProcessingFee('paypal_fee', 3.9); $order->setCharges($charges); $address = new Address(); $address->street_address = 'Some street 25'; // add other address parts $address->country_code = 'CZ'; $order->setShippingAddress($address); // Now create a transaction $transaction = new Transaction(); $transaction->setOrder($order); $transaction->setPaymentMethod('paypal'); // Be sure to correctly set the owner and container and access id // to ensure that both the merchant and the customer have access // to the transaction entity $transaction->owner_guid = $payer->guid; $transaction->container_guid = $payee->guid; // You can use access_grant to give access to the merchant, // or create a new acccess collection that contains both the payer and the payee $transaction->access_id = ACCESS_PRIVATE; $transaction->save(); // Instantiate a gateway of choice $gateway = new \hypeJunction\PayPal\API\Adapter(); // What you do with response may depend on where you are executing // this code. From an action file, you can just return the $response. $response = $adapter->pay($transaction);

The Versions

18/03 2018

dev-master

9999999-dev http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

18/07 2017

2.0.13

2.0.13.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

23/06 2017

2.0.12

2.0.12.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

23/06 2017

2.0.11

2.0.11.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

01/04 2017

2.0.10

2.0.10.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

01/04 2017

2.0.9

2.0.9.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

27/02 2017

2.0.8

2.0.8.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

22/02 2017

2.0.7

2.0.7.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

21/02 2017

2.0.6

2.0.6.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

06/02 2017

2.0.5

2.0.5.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

06/02 2017

2.0.4

2.0.4.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

30/01 2017

2.0.3

2.0.3.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

24/11 2016

2.0.2

2.0.2.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

21/11 2016

2.0.1

2.0.1.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

15/11 2016

2.0.0

2.0.0.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

25/03 2016

1.x-dev

1.9999999.9999999.9999999-dev http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

25/03 2016

1.0.1

1.0.1.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg

25/03 2016

1.0.0

1.0.0.0 http://hypejunction.com

Payments API for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin payments elgg