Nab transact Omnipay silverstripe - silverstripe

could some one please assist with setting up NABTransact payment gateway in omnipay for silverstripe.
I used https://packagist.org/packages/sudiptpa/omnipay-nabtransact, and I'm currently getting this error "[User Error] Uncaught Omnipay\Common\Exception\RuntimeException: Class '\Omnipay\NABTransact\Gateway' not found"

You should follow gateway naming conventions when defining your gateway parameters and allowed_gateways.
So your config should read:
Payment:
allowed_gateways:
- NABTransact_DirectPost

Related

Meteor - Accounts.forgotPassword triggers internal server error whil Email.send is working fine

I'm meeting an issue on Meteor with Accounts.forgotPassword method.
My email smtp is well set up as I can use Email.send() without any issue once app is deployed.
But strangely, accounts.forgotPassword return an internal error.
When looking at the logs I have this error :
Exception while invoking method 'forgotPassword' Error: Mail command failed: 550-Requested action not taken: mailbox unavailable
I do not really understand why I would have mailbox unavailable error with Accounts.forgotPassword but not with Email.send()
Does anyone already met that kind of issues ?
I have already searched on the web for any clues but did not find anything :(
FYI I use ionos smtp
Since Email.send is working, I assume your MAIL_URL is set correctly, but your Accounts.emailTemplates is not. From https://docs.meteor.com/api/passwords.html:
In addition to configuring the email package’s MAIL_URL, it is critical that you set proper values (specifically the from address) in Accounts.emailTemplates to ensure proper delivery of e-mails!

Amazon Pay on Woocommerce error in Sandbox mode (InvalidOrderReferenceId)

I installed the Amazon Pay plugin on my WordPress/Woocommerce website, left in in Sanbox mode, created a Sandbox test account and when I run a test transaction, I get a message that states "Invalid Payment Method"
When I go to the Woocommerce log, the error that I find is:
<ErrorResponse xmlns="http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01">
<Error>
<Type>Sender</Type>
<Code>InvalidOrderReferenceId</Code>
<Message>The OrderReferenceId S00-0000000-0000000 is invalid.</Message>
</Error>
<RequestId>646d0e3e-b603-420d-8178-ad20690fee41</RequestId>
</ErrorResponse>
Any ideas? Thank you!
Please follow the Integration guide: https://developer.amazon.com/docs/eu/amazon-pay-onetime/intro.html
You would have to use an Amazon Generated Order ID from the Address widget. Please obtain it using the function:
onOrderReferenceCreate: function(orderReference) {
// Here is where you can grab the Order Reference ID.
orderReference.getAmazonOrderReferenceId();
},
You can use the orderReference ID anywhere from this point. Since, you are using WooCommerce SP, you can follow the integration guide too.
Thanks.

OpenSource Mano (OSM) & OpenStack : "The request you have made requires authentication. (HTTP 401)"

Currently working on Newtorks Virtualization, I am trying to configure OpenStack and Open Source MANO to make them work together. I am following the OSM tutorial (https://osm.etsi.org/wikipub/index.php/OSM_Release_TWO). I have a problem at the step « Instantiating a NS ». After clicking on Launch, I’ve got the following message:
VIM Exception vimconnUnexpectedResponse Unauthorized: The request you have made requires authentication.
(HTTP 401) (Request-ID: req-83c01de4-4942-414c-8431-73ee089dd1b6).
(False, " Rollback fails to delete: ['network TASK.1498137381.233714 from VIM openstack-site2']")
I don't understand where it is coming from. When I am trying to connect in a navigator to the address I put when creating the datacenter (10.0.3.44:8447/v2.1), I get the same HTTP 401 error. This address is the one I found in the "API Access » section of the OpenStack UI for the compute service. I used it to create the datacenter in openmano:
openmano datacenter-create openstack-site http://10.0.3.44:8447/v2.1 --type openstack --description "OpenStack site"
openmano datacenter-attach openstack-site --user=admin --password=mypwd --vim-tenant-name=admin
Does anyone know what could be my problem?
Thank you.
The problem came from the adress I was using. If you encounter the same problem, try to use the adress :
http://<openstack machine IP>/identity/v2.0
By example, in my case, I used the commands:
openmano datacenter-create openstack-site http://10.0.3.44/identity/v2.0 --type openstack --description "OpenStack site"
openmano datacenter-attach openstack-site --user=admin --password=mypwd --vim-tenant-name=admin

Bad Argument, Invalid Subscription Key when trying to add key from Azure

I am trying to set up my LUIS app in luis.ai (because it seems like I can't set it up in Azure directly?). Anyway, I have created a Language Understanding Intelligent Service (LUIS) (preview) resource, but when I enter one of the keys from that resource into "My Keys" in luis.ai, I get this error: "Bad Argument, Invalid Subscription Key"
Also, I just tried to publish an app with the bootstrap key and got the following errors:
{ "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." }
As provided in comments, the solution is to use a correct end-point. This is not clear anywhere, but for the luis.ai portal, I have to use WestUS endpoint.
If I change to useing eu.luis.ai, I have to use the WestEU end-point.
To use european LUIS endpoint within Bot Builder C# SDK, just modify Luis Model parameters as follows:
[LuisModel("YOUR-LUIS-APP-ID", "YOUR-LUIS-EUROPEAN-KEY", domain:
"westeurope.api.cognitive.microsoft.com")]
Note that you'll need to export your LUIS app over EU.LUIS in order to access the correct endpoint.
Hope it helps.

Web Api 2 Self Host with identity individual account

I have been trying to create a web api 2 that is secure with individual account.
So I can easily create WebApi2 with individual account, see link below
http://www.asp.net/vnext/overview/authentication/individual-accounts-in-aspnet-web-api
And Self hosting is easy to do.
http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api
But I cannot figure out how to combine the solutions.
Far as I got was adding a console app to a webapi2. Which seems to run. But whenever I try and get the access token it returns
An unhandled exception of type 'System.Net.WebException' occurred in System.dll
Additional information: The remote server returned an error: (500) Internal Server Error.
If anyone knows of a solution that would be great. Thanks
This post is way old, but to anyone else who is having this issue and finds this question, I was able to get past the 500 Error by adding app.UseWebApi(config); after setting up config, as mentioned in this post:
http://odetocode.com/blogs/scott/archive/2013/07/24/self-hosting-webapi-with-katana.aspx
HOWEVER, I'm now getting a 401, unauthorized request for all of my requests, even though I have a valid token and I'm sending it the same way I did that worked in the non-self-hosted WebApi2 app. but I'm one step closer anyways.

Resources