How can we choose most recent Paypal Payment page? - user-interface

I'm setting up a Paypal Account for a client. Its a little organization, so they choose the free Business Account to collect payments. For the moment, they can't afford the Pro version.
I want to know : how use the most recent interface for payments ?
This is the interface I want :
Instead of the ugly "old" one :
I search in the Paypal website but I have no clues. I want to use the newer version because the button for non-Paypal user is really much more user-friendly and don't force people to create Paypal Account to pay.
Edit : I also need to use the IPN system to send data bak to my website.

I spent a while searching for this as well. In the code for your button replace the form as follows:
Before:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
After:
<form action="https://www.paypal.com/donate/?token=" method="post" target="_top">
Try also adding this snippet as one of the inputs for the form if the prior doesn't work. I read this part on another post in SO, but I forgot the link:
<input type="hidden" name="force_sa" value="false">
For your curiosity and future debugging:
I found this solution because the old interface would appear in chrome during normal mode, but the new interface would appear in chrome incognito/private mode. I tried using chrome dev tools but I merely noticed the URL differences and replaced it accordingly in my code.
Hope that helps!

Related

Programmatically adding products to a user's remote magento cart

I have a webpage where users can add products from 3rd party commerce sites (amazon, shopify, magento, etc) from my page. users select multiple products then click checkout, then the page redirects them to the checkout page in the 3rd party commerce site.
this works fine with Amazon as they have a server-side API that we proxy. Input: a bunch of products, output: a checkout URL. pretty simple and it works pretty well.
we're stuck with magento, however.
There is no public API for adding a product to a user's remote cart
The undocumented API only supports adding a single product at a time, so supporting multiple products requires multiple API calls (which is slow)
Most magento sites do not support HTTPS and/or redirect to HTTP all the time, and our site uses HTTPS. Thus, it doesn't really work.
We run into CORS issues when we try AJAX requests - we're currently hacking it with iframes.
The first request gives us a "no cookie" error page instead of actually adding it to the cart.
Is there a way to solve this? Does magento support CORS requests? What is magento's support with HTTPS?
I see http://community.magento.com/t5/Programming-Questions/API-Redirecting-user-to-magento-instance-to-view-their-cart/m-p/9113#M2029 which requires our client to install an extension, but that may not be acceptable
Although there's no API functionality in Magento supporting this out of the box, it is possible to extend Magento to support this by writing a small API module, to be installed in Magento for this to work. By creating an API extension, you can make the rules, accepting - for instance - multiple products to be added to basket.
Magento's documentation has always been quite poor, and normally developers like myself have to debug and step through the code, to understand how a particular feature is actually working. Once you become skilled enough, you start seeing a "bigger picture", which allows you to "predict" Magento behaviour and often allows you to skip step-by-step debugging investigation.
I would suggest that you get help from a professional developer, to build this (I would say at least 2-3 years of back-end development experience), and get a certified Magento developer to help you: amateurs can probably make a working solution for less, but you'd pay the consequences in a long term, not to mention portability of your module across Magento editions and versions, and security-related issues (XSS, SQL injection etc).
Magento supports HTTPS (really, that is up to the site's sysadmin, to configure the web server properly), and has a little of CORS support (by default, "same-origin" policy is implemented). Changing CORS would be a development task as well, even though I don't really see how this would be related to either REST or SOAP API.
Also, please note that Magento heavily relies on cookies for the session support (and basket is stored in database against a customer session).
This is all I can really say, that little information about your actual problem provided.
Should you need more info, I'd be happy to help, but I would need more details, in order to figure out the best solution.
Maybe you can try it with query string like this?
<?php
$formKey = Mage::getSingleton('core/session')->getFormKey();?>
<form action="/checkout/cart/add/product/<?php echo $productid; ?>" method="post">
<input type="hidden" name="form_key" value="<?php echo $formKey; ?>" />
<input type="text" name="qty"> QTY
<input type="submit" value="Add to basket" />
</form>

Paypal donations with summary in Joomla

I'm working on a joomla site for a charity event. The event has 5 causes to donate for each with its own page. I have created paypal donation buttons for each of the five causes using this site: https://www.paypal.com/cgi-bin/webscr?cmd=_donate-intro-outside. That all works fine but I need to accomplish two more things. 1) How do I display a summary of the donations for each cause on its respective page and 2) How do I display a total donations received across all 5 causes on the home page?
I am currently going into the paypal account and updating these values manually every night. I know there has to be a better way. I think I have to do something with IPN but I can't find any good documentation. I'm not a php programmer so I need some hand holding but I can get through it with some help.
I have searched high and low for a Joomla extension to do this but I just can't seem to find anything that fits my situation. Any help would be appreciated.
Thanks!
I don't think you'll be able to pull this off without some PHP programming and a good integration with Joomla.
As a general overview you will have to:
activate and configure IPN (Instant Payment Notifications) in PayPal
for your buttons configure the notify_url (the URL where PayPal should send the IPN)
on the Joomla site you will have to process those notifications and save into a database the transaction information that you get
finally - on each of your pages you will have to do a database look up and compute the totals that you require.
I have used Jumi (Joomla extension) to implement something similar to what you need, but it does require a lot of PHP programming to do it like this.

Passing credentials from Numara Footprints

I have a custom WebForms application that is utilized for our helpdesk that does some CRUD on a database of our satellite sites and their networking equipment.
I want to be able to integrate this with Numara Footprints, as we utilize it for our ticket tracking.
I have a template setup, and a working URL for a button control, but I need to know how to have my application detect a Footprints session and utilize the credentials.
I'm thinking that this is something that I'm going to need to ask Numara, but I figured I'd give you guys a shot first.
I have setup numerous web forms to interact with Numara Footprints (BMC). You will have to create a cgi script on your Numara server. Then you have to do is use that link as the Form Action in your HTML file.
Here's an example of one I have used:
form action="https://your-server.com/cgi-bin/your-service-desk/general/submit.pl" method="post
You can even use hidden fields to give you control of the redirects and timeouts of your redirects.
input type="hidden" name="redirecturl" value="http://www.your-server.com/new-form.html"
You can use a form element like this in your HTML:
input id="firstname" name="firstname" type="text"
I hope this helps.

Google Checkout API, automatic default language selector?

Google Checkout API, automatic default language selector?
How do I select the google checkout default language? as my customers don't understand english.. so I have to set default language of Google checkout to their language..
seems in my browser it adds a GET request similar to ?hl=pt_PT to indicate language has been changed.
Unfortunately I checked the Google HTML API from start to end and found nothing related to language.
Then I thought Google was geniuses so obviously they implemented most likely some automatic language detection system, to confirm this.. I've used a Brazil proxy.. going to google.com would redirect me to google.com.br using probably some kind of geo-location database of ip addresses that access the page.
But this kind of automatic ip to language detection system doesn't exist for google checkout.. I tested, it was still in english.
Then i looked at forums and found worse news.
http://www.google.com/support/forum/p/checkout-merchants/thread?tid=476957e70adc01f0&hl=en
So is there any like
<input type="hidden" name="language" value="pt_PT"/>
? something like that ? or no luck?
Google Checkout is localized in 19 languages for buyers.
The buyer can select their preferred language at checkout time by clicking on the drop-down in the top right corner.

How to create my own form in joomla

I want to create my own form that are submitted and values of that form will be stored in joomla database. How can i used the Joomla connection code to interacte with the joomla database.
If you just want to get your work done, there are some components already avaiable in Joomla Extension's website to your form's needs. CkForms is a good one, you can create simple forms with it that are automatically saved in the database (supports upload of files too).
If you want to learn how to write extensions in Joomla, you should read Joomla Official Documentation website.
Extensions in Joomla are divided in "Components", "Modules" and "Plugins". More informations about these differences can be found here and here.
What you're trying to achieve sounds a "component" to me. Downloading the CkForms and reading it's source code should get you started to Joomla's way of writing components.
EDIT: Joomla has a huge API with a lot of features. It has a database module of it's own, with insert methods and such. Reading Joomla's API website before implementing your component it's a good idea to avoid "reinventing the wheel" and it's a good practice since those methods are extensively tested by all Joomla users.
The JForm class helps you build forms.
Documentation can be found here:
joomla CMS: http://docs.joomla.org/API16:JForm
joomla API: http://api.joomla.org/11.4/Joomla-Platform/Form/JForm.html
This class provides you with ready to use form elements and form loading and/or processing methods
This class includes validation methods, date picker control, color picker, etc.
Of course, as another mentioned above, if you are building a module, component, or application, you will need to learn how to to develop a module, component or application. Of these three, the module is the easiest to implement.
The application gives you much freedom b/c you are not constrained to the CMS paradigm, front and back end complexities. However, there is little documentation about how to develop applications with Joomla framework b/c joomla as a framework is relatively new
This tutorial gets you started understanding how to use JForm to create a form in Joomla: http://www.ostraining.com/blog/how-tos/development/getting-started-with-jform/
Or you could just create add a html module to any position and then write the form in html i.e.
<form method="post" action="mycreatedpage.php"> <input type="text"/> <input type="submit">
Now just create a page that handles the code by emailing or inserting into db. I havent tried it but i think it should work.
Looks like everyone already told you almost everything I know except for the component creator. Very easy to use, and it follows Joomla standards. Will get you up and running within minutes.
I have got good working experience with Joomla RSForm Pro. It has got options for
validation
user email/admin emails on submit
file uploads
and many more
Good tutorials too. Get started with http://www.rsjoomla.com/support/documentation/view-knowledgebase/21-rsform-pro.html
Good luck!
Create View.
Create Model.
Create Table.
Create Controller ( if Needed ).
Create Form xml file.
Go here for more information:
http://docs.joomla.org/Standard_form_field_types
Take a look at the Chronoforms extension - does more than you want.
You have two options:
Use an already built custom form extension
Create your own custom form extension (or outsource it)
Now if you only want to modify the user registration form, then you can do some PHP customization to accomplish your goal.
Making forms in Joomla can be done in a couple of ways.
If you just wanted a contact us, you can just create a page with a menu item for the User contact form. This gives you a page with a Members address and contact form. So all you would need to do was add the user as the company of the websites home address and email. But the form is very basic, name, title, textarea for message.
Next up from that you could just make a Custom HTML module add add a form to it in plain HTML like +Sean said above this, you would need to code in PHP your own form process script. You would not get error in form data checking unless you also wrote it.
Next you might rather look on the Joomla Extension Directory JED for one of the good extensions for 3 and 2.5 Joomla RSForms!Pro is good, and can do all we have needed. This lets you add fields one by one and move your form around. Then can auto generate or custom the html of the form.
You can easily create your own forms with Fabrik
Chronoforms are now a days a very popular solution for custom forms in joomla. Chornoforms support twitter bootstrap also. In simple 5 steps you can create a contact form with unlimited fields and also embed various function like DB save, Email, Thanks Message, Redirection on any page. There is events and events will have particular events.
Also possibility of extension of Normal joomla registeration. It will not extend the core registration but at the time of registration you can take various information from users.
I would use Chrono Forms, they work really well and are easy to use.
Download here
Here is a full tutorial on the new Chronoforms 5 to help you get started quickly and understand most of the features available.
CLICK HERE
You can use plugin to insert external php form in content. It is easy and you don't need to make plugin etc. Please use this.
I suggest you to use breezingforms: http://crosstec.de/en/extensions/joomla-forms-download.html
It's one of the best solutions for custom form creation in joomla.

Resources