Invalid getVisaCheckoutDataReply element in cybersource web reference - salesforce

I'm trying to add the new integration of visa click to pay to a Salesforce commerce cloud site by using a cybersource cartridge, the version of the cartridge is 2.1.1
I made the change according to cybersource documentation: https://developer.cybersource.com/library/documentation/dev_guides/VCO_SO_API/Visa_Checkout_SO_API.pdf
But, when I try to place an order I get the next error in salesforce log center:
ERROR: ScriptingException:Wrapped org.xml.sax.SAXException: Invalid element in webreferences.CyberSourceTransaction.ReplyMessage - getVisaCheckoutDataReply (int_cybersource/cartridge/scripts/init/SoapServiceInit.ds#74
I tried adding the missing element in the web reference used by the cartrige with no success:
<xsd:complexType name="GetVisaCheckoutDataReply">
<xsd:sequence>
<xsd:element name="reasonCode" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
And add it in the replyMessage type:
<!-- End of AP ConfirmPurchase Service -->
<xsd:complexType name="ReplyMessage">
<xsd:sequence>
<xsd:element name="merchantReferenceCode" type="xsd:string" minOccurs="0"/>
<xsd:element name="requestID" type="xsd:string"/>
<xsd:element name="decision" type="xsd:string"/>
<xsd:element name="reasonCode" type="xsd:integer"/>
<xsd:element name="getVisaCheckoutDataReply" type="tns:GetVisaCheckoutDataReply" minOccurs="0"/>
...
My question is, is there any way I can add this missing element or update the web reference without upgrading the cartridge?
The version of the web reference is: CyberSourceTransaction_1.130.xsd

Related

Using LocalNotificationSchedule and Firebase Notfication in same React native app

Is there a way to use both localNotificationSchedule and Firebase Remote Push Notification in a React Native app at the same time?
Using the common library on https://github.com/zo0r/react-native-push-notification says that the AndroidManifest.xml needs two different services
<!-- < Only if you're using GCM or localNotificationSchedule() > -->
<service
android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerServiceGcm"
android:exported="false" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<!-- </ Only if you're using GCM or localNotificationSchedule() > -->
<!-- < Else > -->
<service
android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<!-- </Else> -->
So do I have to choose either of them?
I am using OneSignal myself, but I can tell you you need to add both if you want to use local notifications.
Also, GCM will be deprecated in a few weeks so you don't want to use that one. Just use FCM from Firebase.

DNN Sitemap broken, 404 error

I have an issue with a DNN (DotNetNuke) 07.04.01 site that has no sitemap when I visit domain/sitemap.aspx. This may have been caused by somebody creating a page called sitemap which I have since removed but now the website is giving me a 404 response instead of a generated XML file. When I looked into the /Portals/0/ folder there was no sitemap folder or file.
The coreSitemapProvider is visible and enabled when I go to the search engine sitemap page of the website. I have tried disabling and enabling this then clearing the cache and restarting the application but this has had no effect.
I found the cause of this issue. For some reason the website was missing a handler mapping for the sitemap. I added this back in through the web.config file as so:
<system.webServer>
<handlers>
<add name="SitemapHandler" path="Sitemap.aspx" verb="*" type="DotNetNuke.Services.Sitemap.SitemapHandler, DotNetNuke" preCondition="integratedMode" />
</handlers>
</system.webServer>
<system.web>
<httpHandlers>
<add path="Sitemap.aspx" verb="*" type="DotNetNuke.Services.Sitemap.SitemapHandler, DotNetNuke" />
</httpHandlers>
</system.web>
Did you empty the recycle bin after deleting the page?

How to add Google or Bing map on AngularJS-WinJS Windows Phone App?

I'm developing a Windows Phone 8.1 app using WinJs 2.1 and AngularJS 1.4. It worked fine until I needed to add either Google or Bing maps. I tried the following example but I got the following error.
Network request to https://maps.googleapis.com/maps/api/js?sensor=false&libraries=visualization did not succeed.
Your application manifest does not declare the following capabilities: internetClient privateNetworkClientServer
http://www.creepyed.com/2012/11/how-to-use-the-google-maps-api-on-windows-8/
Does anyone gone through the same issue or used something I missed to get this done?
I have added the following lines in my manifest
<ApplicationContentUriRules>
<Rule Type="include" Match="https://maps.googleapis.com/maps/api/js*" />
<Rule Type="include" Match="https://www.google.com/" />
<Rule Type="include" Match="https://earthquake.usgs.gov/" />
<Rule Type="include" Match="https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx"/>
</ApplicationContentUriRules>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClientServer" />
<Capability Name="internetClient" />
<Capability Name="privateNetworkClientServer" />
<DeviceCapability Name="location" />
</Capabilities>
Thanks!

cordova cant access external scripts, files, images

This is driving me nuts.
I have two versions of my app, a barebones version and an advanced version. I messed up some modules/plugins in the advanced version so I rebuilt it from scratch in a new directory. Copied all the necessary www/js/img folders to the newly created one.
I verified i have installed all the same plugins, modules and packages - I then am able to build the app successfully and run it successfully. However, any reference to external scripts or files are getting a "404 (Not Found)" error on the console logs. The barebones app can still pull in the google maps script and I have compared the two config.xml files and can't see anything that would cause an issue.
One is in the index.html:
And the other are jpg images loaded from the IONIC website - part of their standard tabs template.
The errors I am getting:
Failed to load resource: the server responded with a status of 404 (Not Found) http://maps.google.com/maps/api/js?sensor=false&
and
GET https://pbs.twimg.com/profile_images/514549811765211136/9SgAuHeY.png 404 (Not Found) ionic.bundle.js:11568
...and 5 more img png/jpg errors similar to this one.
For the life of me I cant' figure out why the newly rebuilt app isn't allowed to pull in external files or scripts. Any and all help is appreciated.
In my config.xml file I have the following defined:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.testapp765534"
version="0.0.1" xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>TestApp</name>
<description>
A test mapping app.
</description>
<author href="http://testapp.org/" email="info#testapp.org">
testapp DEV TEAM
</author>
<access origin="*" />
<access origin="http://*.google.com" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<content src="index.html"/>
<platform name="android">
<allow-intent href="market:*" />
</platform>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<feature name="StatusBar">
<param onload="true" name="ios-package" value="CDVStatusBar"/>
</feature>
</widget>
For the record I also have the following plugins installed:
android.support.v4 21.0.1 "Android Support v4"
com.google.playservices 23.0.0 "Google Play Services for Android"
com.ionic.keyboard 1.0.4 "Keyboard"
cordova-plugin-device 1.0.0 "Device"
net.orworks.cordovaplugins.cordovasqlite 1.5.0 "CordovaSQLite"
org.apache.cordova.console 0.2.13 "Console"
org.apache.cordova.device-motion 0.2.11 "Device Motion"
org.apache.cordova.device-orientation 0.3.11 "Device Orientation"
org.apache.cordova.dialogs 0.3.0 "Notification"
org.apache.cordova.geolocation 0.3.12 "Geolocation"
org.apache.cordova.globalization 0.3.4 "Globalization"
org.apache.cordova.splashscreen 1.0.0 "Splashscreen"
org.apache.cordova.statusbar 0.1.10 "StatusBar"
org.apache.cordova.vibration 0.3.13 "Vibration"
Install https://github.com/apache/cordova-plugin-whitelist this plugin then it works.

how to run gwt gae app on every browser?

how is it possible to run a gwt app on all browsers?
when i put in my app_name.gwt.xml
<set-property name="user.agent" value="gecko1_8" />
the app runs only on firefox
if i put
<set-property name="user.agent" value="safari" />
it runs on google chrome.
if i put
<set-property name="user.agent" value="safari" />
<set-property name="user.agent" value="gecko1_8" />
he takes the last value so the app runs only on firefox.
i have tried things like this
<set-property name="user.agent" value="gecko1_8, safari" />
or
<set-property name="user.agent" value="safari" value="gecko1_8"/>
but nothing works.
what to do that the gwt app runs on every browser?
Just delete the set-property tag or comment it out:
<!--set-property name="user.agent" value="gecko1_8" /-->
Then the compiler will build all possible permutations (# of languages x 6).

Resources