payment.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. // Copyright 2019-2022 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. 'origins' => [ // Append here if you want to notify to other systems.
  10. 'wallet' => [
  11. 'return_url' => env('PAYMENT_RETURN_URL'),
  12. 'notify' => [
  13. 'status' => ['completed'],
  14. 'uri' => env('PAYMENT_WALLET_ENDPOINT') . '/transactions',
  15. 'headers' => [
  16. 'Content-Type' => 'application/json',
  17. 'Authorization' =>
  18. 'Bearer ' . env('PAYMENT_CORE_AUTH_TOKEN'),
  19. ],
  20. 'method' => 'POST',
  21. 'params' => [
  22. 'user_uid' => 'payment.user_uid',
  23. 'currency_code' => 'payment.currency',
  24. 'amount' => 'payment.amount',
  25. 'type' => 'hawese_payment',
  26. 'description' => 'payment.description',
  27. 'detail' => [
  28. 'uuid' => 'payment.uuid',
  29. ],
  30. ],
  31. ],
  32. ],
  33. ],
  34. ];