payment.php 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. // Copyright 2019 Hackware SpA <human@hackware.cl>
  3. // This file is part of "Hackware Web Services Payment" and licensed under
  4. // the terms of the GNU Affero General Public License version 3, or (at your
  5. // option) a later version. You should have received a copy of this license
  6. // along with the software. If not, see <https://www.gnu.org/licenses/>.
  7. return [
  8. 'source_url' => env('PAYMENT_SOURCE_URL'),
  9. 'return_url' => env('PAYMENT_RETURN_URL'),
  10. 'notify_to' => [ // Edit this if you want to notify to other system
  11. 'uri' => env('PAYMENT_WALLET_ENDPOINT') . '/transactions',
  12. 'headers' => [
  13. 'Authorization' => 'Bearer ' . env('PAYMENT_CORE_AUTH_TOKEN'),
  14. ],
  15. 'method' => 'POST',
  16. 'params' => [
  17. 'user_uid' => 'payment.user_uid',
  18. 'currency_code' => 'payment.currency',
  19. 'amount' => 'payment.amount',
  20. 'type' => 'hawese_payment',
  21. 'description' => 'payment.description',
  22. 'detail' => [
  23. 'uuid' => 'payment.uuid',
  24. ],
  25. ],
  26. ]
  27. ];