Zarinpal | Zarinpal library for Laravel | Build Tool library
kandi X-RAY | Zarinpal Summary
kandi X-RAY | Zarinpal Summary
Zarinpal library for Laravel based on Zarinpal API v4. کتابخانه زرین پال برای لاراول براساس نسخه 4 ایپیآی زرین پال.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get the error message .
- Send payment request .
- Get start url .
- Set merchant ID .
- Set the authority .
- Set the email address .
- Redirect to user .
- Set the amount .
- Return the code .
- Check if the code is success .
Zarinpal Key Features
Zarinpal Examples and Code Snippets
$authority = request()->query('Authority'); // دریافت کوئری استرینگ ارسال شده توسط زرین پال
$status = request()->query('Status'); // دریافت کوئری استرینگ ارسال شده توسط زرین پال
$response = zarinpal()
->merchantId('00000000-0000-0000-00
$response = zarinpal()
->merchantId('00000000-0000-0000-0000-000000000000') // تعیین مرچنت کد در حین اجرا - اختیاری
->amount(100) // مبلغ تراکنش
->request()
->description('transaction info') // توضیحات تراکنش
->call
ZARINPAL_MERCHANT_ID=00000000-0000-0000-0000-000000000000
ZARINPAL_CURRENCY=IRT
ZARINPAL_CURRENCY=IRR
Community Discussions
Trending Discussions on Zarinpal
QUESTION
hi guys i'm trying to redirect user to bank but laravel is ignoring my return redirect
in here
...ANSWER
Answered 2021-May-09 at 15:03You missed a return
QUESTION
ANSWER
Answered 2020-Sep-17 at 22:22I think you do not need recycler view import in your build.gradle because your androidx.appcompat:appcompat:1.2.0
should come with recycler view library.
So get rid of implementation 'androidx.recyclerview:recyclerview:1.1.0'
from your build.gradle that should fix it.
QUESTION
i have an issue and will be appreciated if u help me .
this is an example of my issue :
I have some variables like (10.000 , 20,000) that user can select them and increase there credit .
when user click and chose one of them it goes to bank gateway and after payment it goes back to my app .
I used a text view to get the amount . it's no problem with this .
the amount that stored and show to user is 10000 or 20000 or 100000 and i want to be like this 10,000 or 20,000 or 100,000
actually every three number put a comma .
code :
...ANSWER
Answered 2020-Sep-13 at 17:25Try this :
QUESTION
I want to create an intermediate progress bar and this progress bar will be gone when my task is completed.
Code:
...ANSWER
Answered 2020-Sep-10 at 11:48You're calling progressBar.visibilty = View.GONE
right after you call mypayment()
, but that function runs asynchronously. This means you hide the progress bar before you mypayment()
finishes.
You should call progressBar.visibilty = View.GONE
only after you get the callback from your API:
QUESTION
I have a problem with gradle. it was working fine but all of sudden when I was rebuilding the project it gives me this error:
Error:Failed to resolve: support-vector-drawable
I can't find out what my problem is?
My app.gradle
ANSWER
Answered 2018-Oct-29 at 14:04Add vectorDrawables.useSupportLibrary = true
in defaultConfig
QUESTION
i have config file for payments, i should use dynamic value (that is loading from db) for merchant-id
key:
in AppServiceProvider
in boot
method
i write this
ANSWER
Answered 2019-Oct-05 at 10:46You can not use helper functions except env() inside config files in Laravel because those files are loaded and cached way before AppServiceProvider
in the pipeline and therefor you get null
If you want to get something from the database by a simple global function call, make your own
For example
app/Helpers.php
QUESTION
I'm using this code:
...ANSWER
Answered 2019-Jun-08 at 11:11It's because you may try to redirect from non https
to https
url. If your domain hosted with https
then it should not caused the issue.
Solution:
Suppose application hosted on domain: https://abc.xx Payment gateway domain: https://xyz.xx
Create a temp url/page in laravel that contains the javascript
code to redirect on other domain.
Like:
Suppose user is on page: https://abc.xx/pay, clicked on any button and controller redirect to other laravel temporary page.
The temp page: https://abc.xx/processing contains the javascript code.
QUESTION
zarinpal request not working in my app.
I implemented the code as zarinpal documentation, but it does not work.
...ANSWER
Answered 2019-May-01 at 07:21zarinpal work by volley library in android . volley library version 1.1.0 not working in android 9. then you must update volley library version to 1.1.1
replace
QUESTION
My project was built and run correctly but since I updated Android Studio it gives these errors… and the offline work is unchecked.
ERRORS
...ANSWER
Answered 2018-Oct-14 at 16:39In your project .gradle
(not the app module one), you are probably missing the Google repository. That's why the dependencies cannot be found.
QUESTION
I added a few dependencies in my project and when I run it this error shows:
Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > java.io.IOException: Can't write [D:\android\projects\android-client\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [D:\android\projects\android-client\app\build\intermediates\transforms\desugar\debug\47.jar(;;;;;;**.class)] (Duplicate zip entry [47.jar:android/support/design/widget/CoordinatorLayout$Behavior.class]))
and here is my build.gradle
file:
ANSWER
Answered 2018-May-30 at 07:26I think you have not added the dependency.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Zarinpal
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page