# Mail/Api Settings

## Mail Settings?

**or Email Sending.**

**Open and edit `.env` file.**

```
MAIL_DRIVER=smtp (some times support sendmail)
MAIL_HOST=smtp.mailtrap.io (For Gmail = smtp.gmail.com)
MAIL_PORT=2525  (For Gmail = 465)
MAIL_USERNAME=youremailid
MAIL_PASSWORD=yourpassword
MAIL_ENCRYPTION=null  (For Gmail = ssl)
```



**Note : If showing error in reset password, New User Registration and Payment Gateways then must check your mail setting. Reset password, New User Registration and Payment Gateway error shows due to not added  mail details in .env file.**

\
**For Mail Detail Section: Enter the name with no space. Their are three Mail Drivers: SMTP, Mail, sendmail, if SMTP is not working then check sendmail.**\


## **Gmail SMTP setup settings:**

* **SMTP username: Your Gmail address.**
* **SMTP password: Your Gmail password. If Using Gmail then Use App Password.** [**Process of App Password**](https://support.google.com/accounts/answer/185833?hl=en)
* **SMTP server address: smtp.gmail.com.**
* **Gmail SMTP port (TLS): 587.**
* **SMTP port (SSL): 465.**
* **SMTP TLS/SSL required: yes.**

## Api Settings

**Go to Admin -> Payment Gateway Setting**

**Note : All api key is case sensitive and don't use unwanted space before and after. After enter api Please Enable API**.

### **For Stripe Payment You Need Stripe Key. Go To:**[ **https://stripe.com/docs**](https://stripe.com/docs)

**Note : All plans and coupons will create from urlshorten Admin Panel. Don't create from stripe account.**\
**If all your tests completed then make stripe to live mode, Stripe Test Mode user and price not support to live mode.**\
**Please make new user and price after stripe live.**\
**Stripe does not support $0 price it's need at least $1.**\
**If Showing Error Check Currency Code In Multiple Currency.**

```
STRIPE_KEY=yourapikey
STRIPE_SECRET=yourapisecretcode
```

### **For Paypal payment , gateway You Need Paypal Key. Go To:** [**https://developer.paypal.com/**](https://developer.paypal.com/)

```

PAYPAL_CLIENT_ID=yourclientid
PAYPAL_SECRET_ID=yoursecretid
PAYPAL_MODE=paypalmode (sandbox or live)
```

&#x20;**Note :After  all  test completed  , make Paypal to live mode, Paypal Sandbox Mode user and price not support to live mode.**\
**Please make new user and price after Paypal live.**\
**All price and coupons create from urlshorten Admin Panel.**\
**Paypal not support $0 price it's need at least $1.**\
**Don't Forget To ENABLE PayPAL Payment Gateway after enter Api.**\
**If it shows Error Check Currency Code In Multipal Currency.**

**For mail chimp or subscribe newsletter You Need Mail chimp Key. Go To:** [**https://www.mailchimp.com/**](https://www.mailchimp.com/)

```
MAILCHIMP_API_KEY=yourapikey
MAILCHIMP_LIST_ID=yourlistid
```

### **For Instamojo You Need Instamojo Key. Go To: https://docs.instamojo.com/docs**

**Note : After completing test  then make Instamojo to live mode, Instamojo Test Mode user and price not support to live mode.**\
**Please make new user and price after Instamojo live.**\
**Create all price and coupons  from urlshorten Admin Panel.**\
**Instamojo not support Rs. 0 price it's need at least Rs 1.**\
**Don't Forget To ENABLE Instamojo Payment Gateways after Enter Api.**\
**If it shows Error Check Currency Code In Site Multipal Currency, Its Required INR.**

### **For Razorpay You Need Razorpay Key. Go To: https://razorpay.com/**

**Note : All your test complete then make Razorpay to live mode, Razorpay Test Mode user and price not support to live mode.**\
**Please make new user and price after Razorpay live.**\
**All price and coupons create from urlshorten Admin Panel.**\
**Razorpay not support RS. 0 price it's need at least RS 1.**\
**Don't Forget To ENABLE Razorpay Payment Gateways After Enter Api.**\
**If it shows Error Check Currency Code In Site Multipal Currency, Its Required INR.**

### **For Paystack You Need Paystack Key. Go To: https://paystack.com/**

**Note : All your test complete then make Paystack to live mode, Paystack Test Mode user and price not support to live mode.**\
**Please make new user and price after Paystack live.**\
**All price and coupons create from urlshorten Admin Panel.**\
**Paystack not support NGN. 0 price it's need at least NGN 1.**\
**Don't Forget To ENABLE Paystack Payment Gateways After Enter Api.**\
**If it shows Error Check Currency Code In Site Multipal Currency, Its Required NGN.**

### &#x20;**If you want to access USD currency in your Paystack:** 

**By default, international payments are charged and settled  in your local currency.**\
**Your customer's bank is responsible for converting their currency and sending us the money in your local currency.**\
**However, there are some countries that are able to accept international payments in other currencies. Here is a breakdown of countries and the currencies they can accept payments in: Country Available Currencies Ghana GHS, Nigeria NGN, USD Some countries have the ability to accept payments for their business in USD.**\
**Here is a list below: Country Can accept USD?**\
**Ghana - No, Nigeria Yes**\
[**https://support.paystack.com/hc/en-us/articles/360009973779**](https://support.paystack.com/hc/en-us/articles/360009973779)\
[**https://support.paystack.com/hc/en-us/articles/360009973799-Can-I-accept-payments-in-USD- Paystack** ](https://support.paystack.com/hc/en-us/articles/360009973799-Can-I-accept-payments-in-USD)**SupportPaystack Support What currency is available to my business?**\
**By default, international payments are charged and settled  in your local currency.**\
\
