Where is the IPN/Intuit PayNow Integration Guide - intuit-partner-platform

Does anyone know where is the online guide for IPN/Intuit PayNow Integration? I searched a lot but couldnt find one. Here is the current code I have received with an application I am supposed to upgrade:
<form action="https://ipn.intuit.com/payNow/start" enctype="application/x-www-form-urlencoded" id="payByIpnForm" method="post">
<input name="eId" type="hidden" value="{EID KEY}" />
<input name="uuId" type="hidden" value="{UUID KEy}" />
<input type="image" src="images/pay_now_btn.png" style="margin-top:5px; margin-left:10px;" />
</form>

The form you show here is from a service called Intuit Payment Network (IPN). This is separate from Intuit merchant Services. Surely you got the code because you have an IPN account already. Log in to ipn.intuit.com and the code comes from a tool called ecommerce button (search the page for button). It's pretty simple, I don't think this supports much customization beyond what they provide in the button configuration GUI. So I doubt there is any "guide".

Related

Change Failed Payment Attempts in Paypal Standard Subsribe Button

A client requested that I set the Subsribe button to have reattempts at failed payments quite specifically. The account used is a Paypal Standard (not paypal pro) and from my research there's only the SRA variable that only toggles the pre-set 3-attempts in 5 days setting by Paypal, which is giving up on a subsriber too easily from my client's perspective. He'd want a total of 30 billing re-attempts, done every 3 days for the next 90 days.
I have only found other people wondering the same thing, but haven't found a solution. My current code on the page is this:
<form id='frmPayPalYearly' action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="xxxxxxxx">
<input type="hidden" name="custom" value="Standard Annual Member with id:<?php echo $user_id;?>">
<input type="hidden" name="invoice" value="03/2013/<?php echo $user_id;?>/12/<?php echo uniqid()?>">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_SM.gif" width="0" height="1">
</form>
If I add the SRA like so:
<input type="hidden" name="sra" value="1">
Correct me if I'm wrong, but this will tell Paypal to reattempt 3 times. Any way I can make Paypal reattempt 30 times?
Anyone has any ideas?
Unfortunately, there isn't much you can do.
The API products actually provide parameters to specify this sort of thing, but they're ignored. It's a known issue that I've been hoping to see fixed for years now. I'm not holding my breath. Everything falls to the default of 3 attempts 5 days apart and then suspends.
If you were using the API's then you could at least automate the process of re-activating the plugin when it becomes suspended on that 3rd attempt so that it falls right back into a fresh 3-attempt cycle, and just keep doing that as many times as you want your application to allow.
With Payments Standard, though, there isn't an API that will let you do this. You would need to switch to Express Checkout API's in order to do that, and then you would handle the auto-re-activate within an IPN solution.

PayPal Buy Now button on my site with redirection issue

I must be going crazy, or I'm completely lost when it comes to understanding what is doable when it comes to PayPal buttons on my site - either way I must apologise if this seems obtuse.
I'm building a custom CMS for my clients, and I'm trying to let them utilize PayPal on their sites by simply entering in either their merchant ID, or their PayPal e-mail address, and then let CMS will do the rest. Ideally:
Client enters merchant ID / PayPal e-mail address into CMS backend
CMS generates "Buy Now" button for client's buyers to click on
Buyer pays on PayPal's site
Buyer gets redirected to client's site
My headache disappears
This seems to be easier said than done. I've read the developer documentation on generating your own buttons, and used that Javascript-based button generator to create a button with an IPN callback, but that's not going to redirect the buyers back to my clients' websites.
Thus my questions: is it at all possible to achieve what I'm looking to do with just my clients' merchant ID's? Is it possible to do it without them having to configure anything additional in their PayPal account settings to avoid set-up issues? Should I be looking at a different PayPal processing mechanism instead of the "Buy Now" button?
I should probably mention that I have a free PayPal account, not a Premium or Business account, but that should be irrelevant to this situation as it's not me that's trying to get paid.
Thanks in advance, and any help is GREATLY appreciated!
create a hidden field named 'return' in your form and put your return URL as the 'value'
A thank you to Billy for his answer, and while researching this topic some more, I've discovered that what I'm looking to do CANNOT be done with the current payment standards buttons on a standard free PayPal account. You can't achieve automatic redirection back to your site from PayPal with the Buy Now button.
As Billy mentioned, you can add return URLs that will give the user the option to click on a link that will return them to your site afterwards (PayPal will add these links to their side of operations themselves). To do this you would need to add the appropriate hidden fields to your PayPal form.
This worked for me:
<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="button" value="buynow">
<input type="hidden" name="item_name" value="Item 1">
<input type="hidden" name="amount" value="1234.56">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="env" value="www">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="return" value="http://www.site.com/success">
<input type="hidden" name="cancel_return" value="http://www.site.com/error">
<input type="hidden" name="business" value="your#email.com">
</form>
I hope this helps someone avoid headache and unnecessary documentation scouring!

Paypal Returns Auth code only after Subscription completed?

I am trying to set up a subscription payment for Paypal. I am testing with the sandbox with the following code.
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
<br/>
<input type="hidden" name="cmd" value="_s-xclick"><br/>
<input type="hidden" name="hosted_button_id" value="3PFTX58KDNXHQ"><br/>
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><br/>
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br/>
</form>
Above code is a auto generated subxcription button code from my sandbox account.
It is working file with subscription in sandbox. I mean after the subscription complete it is showing right data in my sandbox account with the subscription information. But the problem is when the subscription is done and user got back to site is having a auth get parameter with it. like
http://my-site.com/this-subscribe-button-return-url.php?auth=[auth_code_from_paypal]&form_charset=UTF-8
Actually My return url is like the following
http://my-site.com/this-subscribe-button-return-url.php?status=success
I have my ipn enabled and its pointing to different url than return url.
What is this auth value? and what am I supposed to do with it?
I want the whole subscription data posted back when somebody completes his subscription process to a certain url (like notify_url). I have already set my notify_url in my ipn settings.
Please somebody give a proper solution to these problems. Thanks in advance.
How are you wanting to get the information back, or what method are you trying to use? If you wanting to get the information back and validate it, you want to use PDT. This will allow you to validate the information that is being sent over to you as well.

Accepting a Paypal payment through a custom-built website

I have been making a hotel booking software that calculates, for given dates and specifications, a price for staying at a hotel. I'm looking to use Paypal for accepting the payment, but having browsed their website, can't find a solution that seems to be compatible with this.
Since the price is dynamic, it's not like a normal one-price product which Paypal seems to handle best. I need a method where I can send the cost to Paypal, have Paypal charge the customer, then have Paypal send a confirmation back to the website that the payment has processed correctly at which point the booking is complete.
I presume Paypal is capable of handling a dynamically priced item like this. Could anyone point me in the direction of where I should be looking?
I just completed this process in my current website: bpremium.com, basically I built a webservice api for the payment process where it can send commands over javascript until it gets to the last stage, which is where you build the form you send to paypal.
in order to record the payment, you setup another webservice for the notify url and this will catch all the $_POST data and process it into your database.
<form id="form-payment-paypal" action="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="bn" value="PP-BuyNowBF" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="business" value="YOUR_ACCOUNT_EMAIL_ADDRESS" />
<input type="hidden" name="item_name" value="THE PRODUCT NAME" />
<input type="hidden" name="item_number" value="YOUR_RECOGNISABLE_SALE_ID?>" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="lc" value="THE LANGUAGE CODE: es_ES, en_GB, etc" />
<input type="hidden" name="amount" value="<?=$amount+($amount*0.04)?>" />
<input type="hidden" name="return" value="/payment/complete/" />
<input type="hidden" name="notify_url" value="/webservice/payment/notify/paypal/" />
<p class="ac span300">
<input type="submit" class="form-style-bt" value="PAY" />
</p>
</form>
that is basically what we use, you can see we put the $amount + $amount*0.04 because you needed to add a 4% surcharge in spain, where I am. perhaps thats different in your code.
I think the rest of it is pretty self explanatory.
on the /webservice/ url, you need to record everything into your database, it sends you the information whether it succeeded or failed, but it's not a call to your website, you won't see this page, it's a "back channel" call to your website, so it's not your landing page, it's simple the url paypal sends all the raw data to, you're supposed to record it, process it and perhaps send out emails, etc.
then if the user returns to your website, you land on the /payment/complete page, so this page could show the result, whether everything is ok, or something failed.
hope it helps.
Paypal's Direct Integration can handle pricing like this. I'd imagine some of their less involved solutions will too, but I know that DI does.
Edit:
ExpressCheckout appears to also:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_SetExpressCheckout

PayPal IPN - minimum fields required for a purchase button?

I am using "buy it now" PayPal buttons but I DO NOT want to use the previously saved buttons on my PayPal account, I want to create a custom form that has a submit button. However, I need to know which fields are the minimum required ones for a form. I thought it would be something like this
<input type="hidden" name="cmd" value="_s-xclick" >
<input type="hidden" name="business" value="me#myemail.com" >
<input type="hidden" name="item_name" value="some item name" >
<input type="hidden" name="item_number" value="some item number" >
<input type="hidden" name="amount" value="10.00" >
But this keeps on kicking back as an unpecified error on PP. Any thoughts?
The following link has a minimal example: https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_xclick_techview_outside . The most important parts are making sure the action is correct and the cmd field is correct. (I'm not familiar with _s-xclick as a command – I always use _xclick myself – but my knowledge in the area is admittedly a bit dated.)
For more tips on making the form just right, I recommend poking around on the PayPal Developer network: https://www.x.com/index.jspa
Also, please note: PayPal IPN is a feature that does callback posts from PayPal to you, the merchant, after a purchase is made, and doesn't quite seem to be what you're working with here, which is the button's form posted from the user's browser to PayPal. This form submission in a buy-now button is just considered part of the buy-now button feature.