Skip to content

Commit

Permalink
fix: Update AsanPardakht gateway implementation
Browse files Browse the repository at this point in the history
- Resolved issue with missing 'username' attribute in AsanPardakht class by ensuring proper variable assignment.
- Modified the  method to correctly set , , and  attributes.
- Implemented proper error handling in  method for better handling of HTTP errors and exceptions.
- Refactored the  method to retrieve server time from Asan Pardakht API.
- Enhanced logging to provide better debug information during payment process and error scenarios.

Related to issue ali-zahedi#119
  • Loading branch information
miladkoohi committed Sep 20, 2024
1 parent e124071 commit 36963dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

1. [درگاه پی ورژن ۱](https://www.pay.ir/)

1. [درگاه آسان پرداخت ](https://www.asanpardakht.ir/)

[[_TOC_]]

<h1 dir="rtl">آموزشی</h1>
Expand Down Expand Up @@ -96,6 +98,11 @@
"MERCHANT_CODE": "<YOUR MERCHANT CODE>",
"X_SANDBOX": 0, # 0 disable, 1 active
},
"ASANPARDAKHT": {
"MERCHANT_CONFIGURATION_ID": "<YOUR MERCHANT CONFIGURATION ID>",
"USERNAME": "<YOUR USERNAME>",
"PASSWORD": "<YOUR PASSWORD>",
},
},
"IS_SAMPLE_FORM_ENABLE": True, # اختیاری و پیش فرض غیر فعال است
"DEFAULT": "BMI",
Expand Down

0 comments on commit 36963dc

Please sign in to comment.