|Felix Freeman 9466ef27d1 Authorization||3 years ago|
|config||3 years ago|
|database||3 years ago|
|routes||3 years ago|
|src||3 years ago|
|COPYING||3 years ago|
|README.md||3 years ago|
|composer.json||3 years ago|
Pay through various payment gateways.
composer require hackware/hawese-payment
This package will trigger a request to an external service automattically after reception of an Instant Payment Notification (IPN) from a payment gateway, take it as an external IPN which triggers an internal IPN (I think this is actually very handy :P).
To configure it you will need to change the
notify_to field. It's configured to work with hackware/hawese-wallet by default, but it will work with any other endpoint if configured properly.
There's nothing cryptic about it. In the
params associative array setup your endpoint input fields as keys and payment attributes with the format
payment.payment_model_attribute as values (or actually any other string
payment. is used as keyword for the associated Payment model instance).
FLOW_TEST_MODEtest mode switch, boolean.
PAYMENT_SOURCE_URLis the place where to download the source code of your version of this project. Required.
PAYMENT_WALLET_ENDPOINTendpoint to a running hackware/hawese-wallet instance for IPN.
PAYMENT_RETURN_URLwhere to return the payer after a successful or failed payment, an
uuidquery param will be appended to this URL, so you can call to the
payments.verifyroute from that endpoint. hackware/userland is already prepared for that on the
PAYMENT_CORE_AUTH_TOKENsystem token in key:secret format. It's returned by the hackware/hawese
composer run-script seedcommand, which runs the initial hackware/hawese-seeds.
If you want to create a custom gateway please contact me first for guidelines, otherwise your contribution might be rejected (and implementation will be harder to grasp).
UnexpectedResponseException: Unexpected HTTP response.
UnexpectedValueException: Unsupported request method.
LogicException: Exclusive to
getBodyOrQueryParams, POST & GET parameters in the same request. Write this logic yourself.
Copyright 2019 Hackware SpA.
This project is licensed under the GNU Affero General Public License v3 or any later version.
To comply with license terms you must provide the means to access the source code of your version of the software easily and free of charge to any person that has access to the software, even users which access through a network (i.e. web browser). I've provided an easy way to accomplish this requirement by setting the
PAYMENT_SOURCE_URL environment variable, this will show the link on the index page (/) under the JSON
Any modification or inclusion of this source code will inherit the same license, that is, it can't be sublicensed. But since it's a REST API you can consume it with any other software. That means that this software must always respect users freedom, even if the HTTP API is consumed by a privative one.
If you want to use the software but are afraid of or can't comply with the license terms we can arrange other license terms for your case. Though most probably I'll not accept if you don't provide your modifications to the software back.