I'm in the the process of replacing the Free and Standard paypal button with a Express checkout integration. I believe I've done most of the work but I have 2 outstanding questions.
When using the old button it redirected me to an order summary page where I could still update the quantity of the product I wanted to buy. With Express checkout it seems that this option has dissapeaed. Whilst the quantity field is still there, it's read-only and can therefore not be altered anymore. Can I make it so this field becomes editable again?
When i get redirected to the paypal site after pressing submitting the form is not consistent, I suspect Paypal is in the process of rolling out some updates to this page and is doing some A/B testing to see which layout is performing better but it would be good if someone else could confirm a similiar behaviour and if there's anything that I can do to force a particular layout? I found other posts on this forum but they were posted a while ago hence the recheck.
Thanks
1.Express Checkout, its actually a API call to the PayPal server.
If you want to edit the Quantity, you need to change the value L_PAYMENTREQUEST_n_QTYm using your own logic and send the request to PayPal(quantity is not editable).Doc
2.Actually PayPal has released a new Express Checkout layout.
There are two URL's here:
Old Layout : https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-24P528268C112244W
New Layout:
https://www.paypal.com/checkoutnow/2?token=EC-24P528268C112244W
You can force any layout as you wish.
I discovered that you can force the old layout by including a "force_sa=true" param in your payment request url. Can't find this documented anywhere, but it seems to work consistently. I asked pp tech support about it and got this response:
The new express checkout layout is being gradually rolled out, you may have an option to force the layout with the following redirection url format:
'https://www.sandbox.paypal.com/checkoutnow/2?token=' to force the new checkout layout, it does the same way as force_sa=true
Didn't answer my question, but I guess they acknowledged it's a valid way to force a layout and not be at the mercy of their "rollout".
Related
so I need to ask a question, I need to setup a simple paypal express checkout system, that one can allow users to change currencies, and two can then update the page with the updated currencies.
Then I need a way for me to get the order information. As I will be selling website templates so I need a way for me to get their email address, so I can then email them with the link to the template file download.
So my question is what data do I get if I set up an express checkout system. And what code do I need, Do i need to create a database to get the returned data back from paypal? Or do I just get an email or can i see that when i log into my paypal account and check orders and see their details that way, but the main important detail i need is their email address?
Can I also say that this is the first time I have looked into express shopping carts. So I am a complete novice in this field, So I will struggle with the coding aspect. But I think it is the route I need to go down.
Also I want to make it all in php as well. But also I don't want to use ready made systems. I just need the back-end code so that I can then just implement it into my current design. Not sure if paypal give you the code when you click the express shopping cart option in All tool section. I did notice though it redirects to a page that lists many partner sites. I couldn't find anywhere for any implementation advice or tips or code.
EDIT: Also I know I will also need to use either IPN or PDT but the documentation I read is highly confusing and just is making me unsure if I can even set a system up. I also read that you should implement both systems, but I also read that that had a risk of doing the payment twice. So yeah i am kinda a bit unsure how to even go about implementing a system I need.
Thanks in advance.
I have a Magento website with the PayPal express payment option. I'm trying to skip the review page when my costumers pay with PayPal. As was mentioned in a former thread (Magento: easy way to remove "paypal/express/review" step), this can be easily achieved by writing an extension that changes a few line in the controller, and this behavior is actually built into v1.9.
However, these solutions didn't work for me. The built-in option apparently did nothing, and the review page was still there. The workarounds proposed in the former thread caused an infinite loop between the actions "placeOrder" and "review".
After a long time, I have now found out that when the user comes back from PayPal, the system doesn't recognize the shipping method selected in the PayPal checkout screen, and accordingly sends the user back to the review page to select a shipping method.
Has anyone ever encountered that or have any solution in mind? I am using Magento 1.9.1.0, and PayPal express is in sandbox mode.
I got a simple Digital Goods Checkout to work in Sandbox mode. I have a "Pay with PayPal" button that I can click which pops up an window for logging into PayPal. After that it redirects me to my purchasemade.php script, and from there I can successfully download a file.
My problem is that on my website I'm going to sell many products, so I need to know which product they want to download when they finish the purchase. Each product has a unique ID, so I thought I'd pass that ID as the item number in the HTML form as a hidden field named "item_number". However, I don't know how to read that value once I reach the purchasemade.php.
How do I read values passed in POST in the original form? Otherwise, what's the best way of identifying a product? I'm using PHP as my scripting language for this project.
If you're going to stick with Payments Standard I would recommend using IPN to deliver your digital goods. You could use PDT (which is very similar to IPN) to send order data back to the page the user gets redirected to, however, there is no guarantee they will make here even with Auto-Return enabled in your PayPal account.
Alternatively, you could use the Express Checkout API instead of Payments Standard. This method guarantees the user will make it back to your site prior to completing payment. This will allow you to utilize session variables so you can present the download to the user on the thank you/receipt page.
Still, though, I think IPN would be your best bet regardless of which way you go. You can use it to auto-deliver the digital goods, send out general email notifications, update your database, hit third party web services, etc. all in real-time.
I have a scenario where a user can input the amount he wants to be billed. I use buynow buttons that are created using code. Now in this case what what i had in mind was to:
Set minimum billing amount to 10$
If he enters below that, give error.
Set the amount of buynow button 10$ when form loads.
Once User inputs a number greater than 10 do an ajax request to controller
Check if their is a button saved in DB against that amount that was created earier on PayPal.
If button does not exist, create a new one on PayPal, save button in the DB.
Return the HTML of the newly created button
Replace the existing button with the returned HTML
Problem with this approach is that it might be too heavy. I also do not want to spread form over 2 pages. Are there any alternate and better options? Can i do some tweaks to make this option more robust?
A better option in this case would be to use the API and do the payments via either Express or Payments Pro. Essentially, you're trying to over-complicate this by making the buttons to the job of the API; getting the worst of both worlds in the process.
You could still utilize a "pay now" button graphic, but just submit your own request to the paypal express gateway (exactly what the button does for you) with a couple curl commands.
There are many tutorials available, but PayPal provides PHP code and a complete walkthrough on their site, so best, in my opinion, to go right to the source.
Log into PayPal -> Merchant Services -> Express Checkout
Under "Setting it up", you'll find all the implementation details.
Hey everyone! I was hoping to start using Magento for a very simple checkout landing page. I have a few questions regarding the capabilities of Magento:
1) I don't actually want to use the 'add to cart' button but rather a 'buy it now' button. So when a user clicks to purchase a product it automatically takes you to the checkout process. Does anyone know if this is possible to configure with Magento?
2) If I purchase an SSL certificate from somewhere like verisign.com can I keep users on my domain through the check out process? I'd also be willing to use something such as Google Checkout if it were possible to customize the look of the Google skin to match my site.
3) Is Google Check out like PayPal in that I transfer money from Google Checkout to a designated bank account?
Thanks all. Any help is greatly appreciated.
1.) Yes, it is possible. You could write a module to observe an event (perhaps checkout_cart_product_add_after) and automatically re-route the user to the checkout page.
2.) The SSL doesn't matter when it comes to keeping someone on your site. (If you checkout users on your site, you will need an SSL). The kicker is what payment gateway you utilize. Some payment gateways will require the user to enter payment information through a different domain than your own.
3.) As for how Google checkout works, I'm not sure. I have never known anyone to actually use it. Most people I know just use authorize.net. I'm sure you can easily find more information just by Googling it.