sayeed/payment-by-sslcommerz

Payment by SSL Commerz

1.0.4 2023-10-09 08:21 UTC

This package is auto-updated.

Last update: 2024-04-28 06:38:56 UTC


README

Made by Sayeed

Integration

Run below command for installing the package
Step 1
composer require sayeed/payment-by-sslcommerz
Step 2
php artisan migrate
Step 3

Put below information in .env file

  • IS_LOCALHOST=true (for local environment TRUE other then FALSE)
  • SSLCZ_TESTMODE=true (for test environment TRUE and for LIVE FALSE)
  • SSLCZ_STORE_ID=<STORE_ID>
  • SSLCZ_STORE_PASSWORD=<STORE_PASSWORD>
  • SSLCZ_SUCCESS_URL=/success_payment
  • SSLCZ_FAILED_URL=/failed_payment
  • SSLCZ_CANCEL_URL=/cancel_payment
php artisan config:clear
Step 4 (Uses)

Submit your request to /pay route with params:

  • amount
  • customer_name
  • customer_email
  • customer_mobile
  • product_name
  • customer_address [optional]
  • customer_country [optional]
[Custom value on your requirement]
  • value_a
  • value_b
  • value_c
  • value_d
Step 5 (Uses)

After successful request you will get a base64 encoded data with status and message, which is shown as:

{"status":"completed", "transaction_id":"63jk232h323d", "message":"Transaction is successfully Completed"}

Then you can get full response from sslcommerz_orders table by using transaction_id