How to integrate CCAvenue Payment Gateway in my website - codeigniter

I want to integrate CCAvenue Payment gateway in my site, but I am getting this error in "Integration Kit" provided by CCavnue.
Error Code: 10002 Merchant Authentication failed

Make sure that the URL/Referral URl is same as the one you have registered with the CCAvenue Merchant account.
Also the working Key, Access Code should be same as the one you get it from your account API Keys(Settings link)
Do not use the localhost url for the testing which will result in the Error COde: 10002.
If everything is correct and still you are receiving this error. Please contact the CCAvenue by raising the support ticket in their Helpdesk.
They will do some configuration changes in your account and the issue will be rectified.
Hope this helps!!
Cheers,
Raj

I found a way to test the CCAvenue on localhost.
Just change your host file and add approved website URL like below:
127.0.0.1 approvedSiteURL.com
change approvedSiteURL.com with your live site URL approved from CCAvenue.
In case of windows you can find the file at C:\Windows\system32\drivers\etc\hosts. Search for other operating systems.
Now when you type approvedSiteURL.com on your browser, it will show as you run localhost. Hence you can run the CCAvenue on localhost without 10002 error and without putting files on live server.
Note: approvedSiteURL.com is your approved live site URL here. Replace it with your site url.

Related

How to get Origin URL from AWS API Gateway to my Lambda function for Cognito Custom_signup_message trigger

To make my question simple, I am trying to redirect verified cognito users back to my website once they verify their email by clicking on verification link. Which I implemented using this question and this amazing tutorial. This is working magically as there is no redirect URI option available in cogntio verification link. The issue I am facing when I have multiple environment setup for development, testing, staging and production (also localhost). In this case I want to redirect my user back to original site where they have registered and not on a static link.

Google Cloud Run Hosted User Sign-In 'Redirect' Throws Error When Using External Identity Providers

I have a Google Cloud App Engine app that functions correctly when either I allow unauthenticated AllUsers access or turn on IAM for controlling access in Identity Aware Proxy. However when I follow the instructions on this page https://cloud.google.com/iap/docs/cloud-run-sign-in to enable Cloud Run Hosted sign-in with external identities and attempt to access either the login page or the Google Cloud Run hosted sign-in page, I receive the following error in the browser.
"Could not fetch URI /computeMetadata/v1/instance/service-accounts/default/token?scopes=https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/identitytoolkit"
For context, the Google Cloud Run service hosting the user sign-in is set to allow all Unauthenticated. It should re-direct to the Google App Engine web app. I think this is related to permissions or redirects, but I am at a loss as to how to fix. Any thoughts? Thanks!
I attempted to fix by re-deploying the Cloud Run Service, switching IAP on and off, switching between IAM and external identities, but to no success.
Thanks #John Hanley, I discovered that one my compute engine service account was disabled for some reason within the project. Re-enabling solved the problem partially. I'll spend more time matrix out the permissions and re-directs to make sure they are aligned.
I originally thought I completely answered my own question and solved my problem. Unfortunately, I only solved one of the problems with my implementation of the external identities authentication method.
Description of the other problem:
I enabled email/password and Google as providers, but when I click on the the option to authenticate with Google, I receive the following text in the browser: "The requested action is invalid."
At the Console in Dev Tools I get the following error:
GET https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=*mykey*&cb=1599165379363 403
The following url is displayed in the URL bar:
https://.firebaseapp.com/__/auth/handler?apiKey=mykey&appName=%5BDEFAULT%5D-firebaseui-temp&authType=signInViaRedirect&providerId=google.com&customParameters=%7B%22hl%22%3A%22en%22%7D&scopes=profile&redirectUrl=https%3A%2F%2Fiap-gcip-hosted-ui-app-engine-app-myserver-uc.a.run.app%2F%3FapiKey%3Dmykey**&v=7.16.0&fw=FirebaseUI-web
mykey and myserver were removed for this post and is not the actual values.
Email/password sign-in works, but not the Google sign-in. What am I missing here?

Problems granting permission with google

I'm trying to setup the plugin Post SMTP from wordpress.
I have a G Suite account and everything is ok, until the last step where I need to grant persmission to send the emails. I go to the page where google asks if I'm sure with the page accessing to my emails.
After I click to allow, I've got a 403 error.
Please help
The answer may not be exact for the question asked but I just wanted to send mails from my wordpress website and it worked by adding your From mail address in cPanel Email settings.
Just search Registered Mail IDs in cPanel and add your email addresses in there you want to send mail from.
Most of the post says to modify mod_security or .htaccess file to get your work done but I found such a simple solution, worth a try.
It was the scope at the end of the url that google returns for granting permision, after some research I find my server has a module that doesn't allow this scopes, so you need to turn it off just to do this.

laravel 5.5 login via google gives Client error

I was trying to add the google login to my laravel project. but it gives a Client error. Given below is the error i got. I successfully installed the socialite as well.
Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=false` resulted in a `403 Forbidden` response: {"error":{"errors":[{"domain":"usageLimits","reason":"accessNotConfigured","message":"Project 983930379932 is not found (truncated...)
Go to https://console.cloud.google.com/apis and enable Google+ api.
Took me 3 hours to find out that Google Cloud does not automatically enable the api for you when you create OAuth service.
Remember you have to register your google app within googles service as well. That error if I remember correctly is simply telling you that you aren't allowed to use google services.
I am not super sure if this steps are up to date, but it shouldn't be that different: https://itsolutionstuff.com/post/laravel-5-google-oauth-authentication-using-socialite-packageexample.html
First Open your Google Console Account from Here : console.developers.google.com
Select your project.
After this you have to click on google+ API detail page.
Now we can enable API.

Sagepay Testing

I am integrating sagepay to my website to take payments. I was wondering is there a way to test the sagepay post back on localhost? Right now when I process payment I get error :
*5006: Unable to redirect to vendor's website.*
As the Notification host name is set to local host, which isn't accessible through sapgepay website. So I was wondering is there any other way to test it or Do I have to host my website on some web server.
Thanks
You'll have to host your website on a web server, I'm afraid.

Resources