I'm using a 3rd party shopping cart and i notice that there is no variable for the item description. Any ideas on what variable on how to show or add the item description on the paypal checkout? I already checked the variables to be used on Passing Individual Items to PayPal. Is there anyway to show the item description using a 3rd party shopping cart? Thanks.
With PayPal Standard Payments (the HTML form button code), there's no tag/variable specific for "description", instead, you would be able to customize your item (besides item_name) with the following tags:
<input type="hidden" name="on0" value="Label">
<input type="hidden" name="os0" value="Selection Value">
The tags set will be displayed on the line item area as Options: Label: Selection Value as below
If you need the exact "Item Description" field, you would need to integrate with Express Checkout API and work with parameter L_PAYMENTREQUEST_n_DESCm, see further details on the API reference
Related
I have created a button that allows for users to pay via PayPal and it works,
however when I get back to my page I receive no url query string to catch.
Here is the current code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<button class="ato4" name="submit" type="image" onmouseover="this.style.backgroundColor='#CCC9BD';return true;" onmouseout="this.style.backgroundColor='rgba(79,129,189,0.5)';return true;" style="cursor:pointer;float:right;margin-right:490px;">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="V84TB5GYULLYC">
<font class="shadowfilter">תשלום דרך האינטרנט
<br>
<font style="color:green;">PAYPAL</font>
</font>
</button>
</form>
How do I make paypal automatically redirect to my website without pressing the return button that PayPal has on their website?
apparently there is an option for all pages to auto return to -> url . well it's not as good as an individual pages but it gives the result
You have to enable auto return in your PayPal account, otherwise it will ignore the return field.
From the documentation (updated to reflect new layout):
Auto Return is turned off by default.
To turn on Auto Return:
Log in to your PayPal account at https://www.paypal.com.
The My Account Overview page appears.
Click the Profile subtab.
The Profile Summary page appears.
Click the My Selling Tools link in the left column.
Under the Selling Online section, click the Update link in the row for Website Preferences.
The Website Payment Preferences page appears
Under Auto Return for Website Payments, click the On radio button to enable Auto
Return.
In the Return URL field, enter the URL to which you want your payers redirected after
they complete their payments.
NOTE: PayPal checks the Return URL that you enter. If the URL is not properly formatted
or cannot be validated, PayPal will not activate Auto Return.
Scroll to the bottom of the page, and click the Save button.
IPN is for instant payment notification. It will give you more reliable/useful information than what you'll get from auto-return.
Documentation for IPN is here: https://www.x.com/sites/default/files/ipnguide.pdf
Online Documentation for IPN: https://developer.paypal.com/docs/classic/ipn/gs_IPN/
The general procedure is that you pass a notify_url parameter with the request, and set up a page which handles and validates IPN notifications, and PayPal will send requests to that page to notify you when payments/refunds/etc. go through. That IPN handler page would then be the correct place to update the database to mark orders as having been paid.
Ref.: Setting PayPal return URL and making it auto return?
I am using Paypal's Adaptive Payments (Preapproval API) for one of my projects.
Everything is working fine, the payments are processed exactly as I want. My only problem is that I can't use the page_style variable as i could with a classic PayPal refirection solution.
When I obtain the pay key for PayPal, I prepare a form like this:
<form method="post" id="gateway_form" name="gateway_form" action="https://www.paypal.com/webscr?cmd=_ap-preapproval&preapprovalkey=PA-XXXXXXXXX">
<input type="hidden" name="page_style" value="mystyle">
<button type="button" class="continue-with-payment" onclick="checkDonateForm(327, 'gateway_form');">
<span>Proceed to Payment</span>
</button>
</form>
Where mystyle is a custom page I have created on my Paypal account which is the application owner.
I have also tried to send page_style as a GET variable e.g. https://www.paypal.com/webscr?cmd=_ap-preapproval&preapprovalkey=PA-XXXXXXXXX&page_style=mystyle but nothing happened.
Any suggestions ?
The page_style variable is for Payments Standard transactions - not Adaptive Payments. I checked to see if there was an equivalent for Adaptive Payments but there doesn't seem to be.
I'll submit a Feature Request asking to include one but I cannot guarantee that it will be implemented - sorry.
In paypal, is it possible to skip the "Thanks for your order page" and come directly back to our store? Here i have attached the screenshot of the page which is coming after "Pay Now" page and this is the page i want to skip and i need to directly go to my website from where the process is initiated.
Check these settings at your paypal account --
click at edit profile tab in your paypal acc.
click “website payment preferences” under “selling
preferences”
click “on” for auto-return.
enter a return URL.
Save.
Let me know if u face any prob while configuring.
NEW EDIT
You can also pass like this --
<INPUT TYPE="hidden" NAME="return" value="URLspecificToThisTransaction">
I've been asked to implement Paypal "Donate Now" functionality on a web site, similar to Wikipedia's site.
I know how to generate "Buy/Donate Now" buttons with fixed amounts, and with variable amounts,
but I don't see how Wikipedia is able to have the user specify the amount on their site and then have it carry over to Paypal, so that the amount is pre-filled once they get there.
Paypal's own documentation does not seem to support an "amount" field (or I've missed it). I actually called Paypal support and was told that I'd have to use a 3rd-party shopping cart for this functionality, but if the carts support this, isn't it just a form param?
Yes, there's an HTML input parameter for this. Simply called 'amount'.
See https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables
Just include amount in any HTML input/select field and ensure you pass it over to PayPal. For example:
<label for="amount">Enter the amount you wish to donate:</label>
<input type="text" id="amount" name="amount" value"">
Or;
<label for="amount">Select the amount you wish to donate:</label>
<select name="amount" id="amount">
<option value="5.00">$5.00</option>
<option value="25.00">$25.00</option>
<option value="50.00">$50.00</option>
</select>
Wikipedia uses some server-side scripting to create a transaction before it sends you to Paypal. This is the shopping cart functionality, yes, specifically the Express Checkout part.
I believe that this image illustrates the process:
(source: paypal.com)
Don't worry - it looks harder than it is: it's very easy to implement.
I am trying to add a simple PayPal button to a website. What I am wanted to do is set up the button to include "options" that need to be selected. This is not a problem, I have the button created and the option select box shows.
What I want to do is return to a URL on my own domain, but have the URL include the selected option from the drop down box that was selected before payment.
so I start at mydomain.com , select an option and after finishing payment have it redirect back to mydomain.com/complete.php?option=theoption
is this possible?
in php you can add this hidden input in your button
<INPUT TYPE="hidden" NAME="return" value="<?php echo 'mydomain.com/complete.php?option='.$theoption ?>">
where $theoption is the value of theoption that you want to be appended on the return url.
Take note that you have to disable payment review so that paypal will automatically redirect back to you website