w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Trouble connecting to Oracle with c#
it seems you need to update the oracle client library on your client machine. download it Oracle downloads

Categories : C#

Having trouble with connecting SQLite in host Java
SQLite does not handle remote databases very well. According to their Appropriate Uses For SQLite page, "... Another way to look at SQLite is this: SQLite is not designed to replace Oracle. It is designed to replace fopen()." When you connect to an SQLite DB, you can only do it if you have direct access to the database file. If the file is shared on a remote drive, you can probably use jdbc:sqlite:\hostnameXX.sqlite as your connection string, but only if you can see the file that way in Windows explorer. On the other hand, you may want to try to install a database that intentionally allows remote connections. Apache Derby is a good one with a small footprint. It is written in Java and has a very nice and easy to use JDBC driver. Derby is available at http://db.apache.org/derby/.

Categories : Java

Trouble connecting the cassandra database via remote access through JAVA
I could ping the machine. But I could not access the machine using telnet in windows. The servers is linux machine. Do you have any idea ? Your firewall is blocking off the telnet port and probably the rest of the ports cassandra needs. You need to add an exception telling the firewall to open port 9160 (the client port). 9160 is the only port you really need to have open unless you want remote jmx management etc. To add an exception to your linux firewall: iptables -I INPUT -p tcp --dport 9160 --syn -j ACCEPT And if you want to save the state: service iptables save

Categories : Cassandra

Trouble connecting to Postgresql database in Vagrant guest box with Induction from host machine?
check file pg_hba.conf looks like require allow connection most easy and lesss secure set 'trust' (everyone can use your postgresql) http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html

Categories : Postgresql

Trouble with simple https authentication with urllib2 (to get PayPal OAUTH bearer token)
Experiencing the same problem here. Based on Get access token from Paypal in Python - Using urllib2 or requests library working python code is: import urllib import urllib2 import base64 token_url = 'https://api.sandbox.paypal.com/v1/oauth2/token' client_id = '.....' client_secret = '....' credentials = "%s:%s" % (client_id, client_secret) encode_credential = base64.b64encode(credentials.encode('utf-8')).decode('utf-8').replace(" ", "") header_params = { "Authorization": ("Basic %s" % encode_credential), "Content-Type": "application/x-www-form-urlencoded", "Accept": "application/json" } param = { 'grant_type': 'client_credentials', } data = urllib.urlencode(param) request = urllib2.Request(token_url, data, header_params) response = urllib2.urlopen(request).open() print

Categories : Python

Trouble Connecting to sql server Login failed. "The login is from an untrusted domain and cannot be used with Windows authentication"
Why not use a SQL Server account and pass both the user name and password? Here is the reason why. In short, it looks like you have an authentication issue. The problem with workgroups is there is no common Access Control List like Active Directory (AD). If you are using ODBC or JDBC, the wrong credentials are passed. Even if you create a local windows account (LWA) on the machine (SE) that has SQL Express installed (SELWA), the credentials that will be passed from your client machine (CM) will be CMLWA.

Categories : Sql Server

Trouble connecting javascript code to html code
Check here The id for price was "tax" I think was just typo mistake. I changed also your input type sumbit to a button instead. Code: window.onload = function() { // this loads your script when the page loads function calculate() { 'use strict'; var total = 0; var quantity = document.getElementById('quantity').value; var price = document.getElementById('price').value; var tax = document.getElementById('tax').value; var discount = document.getElementById('discount').value; total = quantity * price; tax /= 100; tax++; total *= tax; tax = tax / 100; tax = tax + 1; total = total * tax; total -= discount; document.getElementById('total').value = total; return false; } }; You can add this code to your page or call it

Categories : Javascript

Cannot test payment via personal test paypal account created with paypal sandbox (also email appears not to be recognised at paypal.com public site)
Found the solution :) Happy to be answering my own question: the working solution is to use www.sandbox.paypal.com in the form action when testing, instead of www.paypal.com As per page 27 of: https://cms.paypal.com/cms_content/GB/en_GB/files/developer/PP_Sandbox_UserGuide.pdf It says: IMPORTANT: To execute test transactions on Sandbox you need to complete a purchase as a test buyer with your buyer test account. Typically, you go through your website purchase flow as a buyer. You must ensure that you execute your test on www.sandbox.paypal.com instead of www.paypal.com So, for example, the snippets of code for your paypal button would look something like: <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> but still use just paypal.com f

Categories : Testing

How do I change the language for a credit card/paypal payment page in PayPal for a customer?
How do you display the button exactly ? Because if you look to this table, https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables#id08A6HI0709B__id08A7CI030HS, you'll se that the lc parameter aims to do what you would like to do.

Categories : HTML

PayPal button - how to change default payment option from paypal to credit card
There is not a way to modify this on the checkout if you are usnig Website Payments Standard. However, if you are using Express Checkout you can set the credit card section to be expanded instead of the log in with PayPal section. You would just need to pass over the following two variables and values in the SetExpressCheckout API call. SOLUTIONTYPE=Sole LANDINGPAGE=Billing

Categories : Paypal

PayPal Error: 13122 "This transaction cannot be completed because it violates the PayPal User Agreement."
Did you open a ticket with MTS or call the Business Support line? If you did open a ticket can you please give me the ticket number? I'll take a look at it. It may be something that you need to address with Business Support though.

Categories : Api

store credit card info into paypal vault and also want to use paypal Buttonsource
Here is some feedback from PayPal on this one: The Parameter ButtonSource is a parameter of our classic API's and is currently not supported with the REST API. The Rest API's are still in early stages and we will see much more Features added over the next 12 months. So even the parameter might not be supported with REST now, it can be soon. However, with REST as of now, the merchant would need to use other parameters to track his payments. one other thing by using token i am able to get all details of card that is saved. In case if my code will be compromised then any one can steal my tokens saved in database and get the details. How can i make it secure ? Technically, if the merchants System is hacked and his credentials + DB is exposed to a third party, they can lookup details us

Categories : PHP

Payum - symfony2 bundle not redirecting me to paypal on paypal express checkout
In most cases it is wrong paypal credentials, double check you use right. Also you could check for errors in the model table. There is l_errorxxx fields. They might contain something interesting.

Categories : Symfony2

Paypal Sandbox Merchant Account History Tab Redirects To Main Paypal
It is part of a known issue mentioned here: PayPal Sandbox history redirects to REAL history I'll be updating that thread when the problem is resolved. You can also create a ticket and mention the ticket number on that thread, I'll grab it, and keep you posted as it goes on.

Categories : Paypal

Joomla-paypal How to show an agreement during between the selection of payment and redirection to paypal
My form has four dorpdown selectbox with two options of each and those buttons are created by paypal button menager. Then I have written a jquery code for the proccess like following; <script> var packageForm,canBeSubmitted = false; jQuery(function($) { $('form').on('submit',function(e){ if(canBeSubmitted == false){ packageForm = $(this); e.preventDefault(); var on0 = $(this).find('input[name="on0"]')[0]; var os0 = $(this).find('select[name="os0"] option:selected')[0]; var dur = $(os0).val(); on0 = $(on0).val(); os0 = $(os0).text(); os0 = os0.split(' '); $('span.package').text(on0); $('span.duration').text(dur); $('span.price').te

Categories : PHP

Paypal sandbox subscription button - testing buyer with no Paypal account?
With subscriptions the buyer will need to have a PayPal account, unless you specifically have added on the service for Enhanced Recurring Payments. You would need to have this enabled on the account in order to be able to accept subscriptions/recurring payments where the buyer does not need to have a PayPal account. If you can provide the email address of the test sandbox buyer account, I can check to see if this is enabled and try to enable it on my end if it is not already enabled.

Categories : Paypal

Pass custom data via Paypal Standards Payment Button created via Paypal Admin
Ok I got it, you can use these following fields to accomplish the above task. custom invoice create a paypal hosted button via paypal admin, paste the html generated code on your page, then you can alter it to include the following fields. <input type="hidden" name="custom" value="55555"> <input type="hidden" name="invoice" value="88888"> I tried it via sandbox and it worked. However you cannot use item_number field, if you add an item_number field on the html generated code by paypal, it will still fulfill the transaction, but it wont send any ipn message to your ipn listener. weird. (I tried it via sandbox)

Categories : Paypal

Can I implement Paypal with a combination of website payment standards & Paypal API?
With standard subscriptions you can't access those via the API. If you want to work with subscriptions via the API you'll need to use the Recurring Payments platform instead of Payments Standard.

Categories : Paypal

How to capture authorized PayPal payment automatically in paypal standard?
You would need to make an API call to the DoCapture API call. If you haven't used PayPal's API calls before, I suggest reading the Getting Started guide as well.

Categories : Paypal

Magento 1.6 - Paypal Standard is not taking to paypal Payment page
I had the same problem and I've managed to solve it! I have found several questions like this all over the Internet, none of which had answer that worked for me. In my case the solution was trivial: I had to go to Admin>System>Configuration and from top-left dropdown menu select configuration scope for particular store. There is additional configuration for paypal hidden here - i found that i had sandbox mode turned on here - that configuration was overwriting settings for whole magento.

Categories : Paypal

Making PayPal balance payments without being redirected to the PayPal site
that's correct. Even with the new REST APIs, you would still have to redirect the user to PayPal for them to login and approve the payment. There is no support for embedded (lighbox/mini-browser) flow yet in the new REST APis.

Categories : Api

Does this change in the paypal´s api affect Drupal6´s Ubercart-Paypal Integration?
You should be fine unless you're using Payflow. Most people on Ubercart are using Website Payments Pro/Standard. There's no reason to update anything for a normal Ubercart install to keep working. See https://drupal.org/node/2030733 Where maintainers TR and Longwave weigh in.

Categories : Drupal

accept payment form paypal without going to paypal site
This might be helpful for you: Process Credit Cards with PayPal Payments Pro

Categories : PHP

PayPal Sandbox links go to live PayPal site
It is (unfortunately) common for the sandbox to be broken in the ways you describe. However, this should not be holding up your project -- the sandbox is mainly useful for checkout/API testing, and there is very little need to review transaction history in the web interface.

Categories : Paypal

How to make PayPal DoCapture API Call in PayPal Sandbox?
The variable STOREID is an identifier of the merchant store at which the refund is given. This field is required for point-of-sale transactions. Character length and limitations: 50 single-byte characters This field is available since version 82.0. As for your form, the URL that you are using is not correct. The DoCapture API request would not be sent to https://svcs.sandbox.paypal.com/AdaptiveAccounts/DoCapture. The DoCapture would need to be sent to one of the Merchant API endpoints. Then it depends on if you are using NVP or SOAP, and API Signature or Certificate. You can find a list of the different endpoints here. Make sure you point to the correct endpoint.

Categories : Paypal

recurring payment with paypal advanced NOT paypal pro
Payments Pro and Advanced don't support the Recurring Payment API calls. You would be using the Recurring Billing API calls through Payflow. The new Advanced and Pro accounts use Payflow Pro or Link. Are you setting a billing type in the Secure Token call? What is the ticket number you submitted? I'd to look up the account to see if the account is setup to use Recurring Billing and was created correctly. Also, Advanced accounts shouldn't be using the Recurring Billing API calls. It is possible to create Recurring Billing profiles with an Advanced account but they have to be done through the PayPal Manager site.

Categories : Paypal

paypal adds extra tax on paypal website
Sounds like you've got Sales Tax rules configured in your PayPal account profile, but then you're also including it in your total that you're sending to PayPal. If you're going to include the tax in your total you need to disable the tax configuration in your profile.

Categories : PHP

Paypal C# class for returning all transactions from Paypal
You can probably accomplish what you want using the TransactionSearch method in the PayPal Merchant API, but it's probably not going to be a trivial undertaking. Check out https://devtools-paypal.com/apiexplorer/PayPalAPIs and click on the "Merchant" tab to view the Merchant API methods. TransactionSearch is the fifth item on the list. They have an environment right on that page that you can play around with. More info on TransactionSearch is available at: https://www.paypalobjects.com/IntegrationCenter/ic_transaction-search-and-details.html. Then of course, you'll have to write the code to make the API calls and organize and display the data on your end. Hope this helps!

Categories : C#

PayPal HTTP 1.1 and PayPal HTML Form
It doesn't apply to Website Payments Standard buttons; it only applies to those who make - as you say - remote calls from a server to PayPal's server, such as with Instant Payment Notification.

Categories : Paypal

paypal ipn - no reply from paypal after postback
I managed to solve this through another reference, or at least, get a reply from IPN [invalid replies] - its a progress after all: Referred to: PayPal IPN Bad Request 400 Error Changing header format to: $header = "POST /cgi-bin/webscr HTTP/1.1 "; $header .= "Content-Type: application/x-www-form-urlencoded "; $header .= "Host: www.sandbox.paypal.com "; // www.paypal.com for a live site $header .= "Content-Length: " . strlen($req) . " "; $header .= "Connection: close "; And changing: if (strcmp ($res, "VERIFIED") == 0) to this: if (stripos($res, "VERIFIED") !== false)

Categories : Paypal

return url post to PayPal will override the return url that has already set in the paypal merchant account
You should be able to get there in the Sandbox. The section may be called "Website payments preferences" and be found under the "Hosted payment settings" category. Here is a direct URL to the page, make sure you're signed into your Sandbox Seller account before you open this: https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_profile-website-payments

Categories : PHP

Magento PayPal Express checkout, we want to hide/Mask actual shipping address & make PayPal pass dummy shipping address for orders?
You can just set 'NOSHIPPING=1' in your SetExpressCheckout API call and we won't ask for / return a shipping address to you whatsoever. I'm not sure how you would configure that in Magento however. I would not recommend sending dummy data whatsoever; that'll trigger all sorts of red flags and is simply not the right way to resolve the problem.

Categories : PHP

PayPal Express not giving option for Check out as Guest, even if it is active (PayPal Paying Guest option to YES)
This is all based on browser cookies. If you cleared your browser cookies and then try again prior to logging in to any PayPal account you should see the option for Guest Checkout more prominently displayed. If you want to force this regardless of browser cookies you can set the following parameters in your SetExpressCheckoutRequest. SOLUTIONTYPE=Sole LANDINGPAGE=Billing That will force the full credit card form to be displayed by default along with the option to login and pay with PayPal. For Magento if it's not doing this for you by default you'll need to create a module to extend the core Express Checkout module so that you can add those parameters accordingly.

Categories : Magento

payment from paypal account to another paypal account using php
You can use the MassPay API or the Adative Payments (Pay) API to do this. When you say "i am try to use the mass payment but this not accept to all users, only to specific users", I am not sure what you mean by this. Can you explain this a bit more.

Categories : PHP

Connecting to SQL from C#
Few reasons of connection failures: 1. Wrong Connection String. 2. Lack of database existance.(Database does not exists) 3. Login Problems to database. (Wrong ID and password to database authentication) 4. Database is present on remote server and server is turned off. There can be many more, but which one to apply in your case depends upon your code and exact situation of database.

Categories : C#

SQL not connecting via php
Try with localhost like $con=mysqli_connect("localhost", "root", "pass"); Otherthan that ..try like to display any error messages while connecting the DB through mysqli $con = mysqli_connect("myhost","root","pass","database") or die("Error " . mysqli_error($link)); And as @Rens Groenveld said you can go through with the server side configuration error messages from : error_reporting(E_ALL);

Categories : PHP

Connecting to an API with PHP
Burrow through this stuff and you will see the code samples include a curl class, so this is presents one way to connect from your server to theirs. You should then familiarise yourself with cURL and make sure it is enabled on your server, otherwise look for an alternative means of getting out from your server.

Categories : PHP

Connecting C with php/asp
Actually it shouldn't be that hard to code... If you already learned C, Then I suggest you to start learning sockets. You didn't specify the OS, So here's links to a great tutorials both Linux & Windows. Now, if you don't want to use sockets, I suggest you to take a look at "Apache - Thrift". You can communicate between functions in PHP and functions in C. Example - $shutdown->Shutdown(); Or $points = (int*)points; Good luck.

Categories : PHP

Error when connecting to a CYC KB
I found out the answer to my question. IDK if this well help anyone else so I am going to post it. Answer: The port that you typically access a CYC Image through the browser is not necessarily the port that you will access it through the OpenCyc API. When I changed the port, it solved my problem. Rich

Categories : Database

Pop up message box after connecting to SSH
The GUI is probably freezing because the SSH connection is blocking the main loop. To overcome this issue, you'll have to put the connecting code into a separate thread. Then use one of wxPython's thread-safe methods (wx.CallAfter, wx.CallLater or wx.PostEvent) to tell the GUI to display a pop-up dialog. See the following links for information on wxPython and threads: http://wiki.wxpython.org/LongRunningTasks http://www.blog.pythonlibrary.org/2010/05/22/wxpython-and-threads/

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.