I don't want the box with the image mentioned, I want the direct paypal login option. How do I solve?
Include an item_name for description in your transaction details when setting up the transaction, so that the 'box' is not necessary.
For full details, see the HTML variables documentation at https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
Related
I have a program running in an environment that supports URLs, but no javascript.
Say it's a Word document (though it's not).
Is there a way to craft the PayPal payment URL such that it's all that I need, without the requirement of an HTML form or Javascript?
http://paypal.me basically exists for simple things
You can create a Buy Now button via https://www.paypal.com/buttons with NO dropdown menus or text fields (which require HTML) and then, once you've generated your button code, clicking on the "Email" link above will give you a URL.
If you also want the URL to have editable fields, then before you create the button, in Step 2 uncheck the option to save the button at PayPal, generate the code, and click the link to remove code protection. Variables are documented here: https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/Appx-websitestandard-htmlvariables/#technical-variables
I'm trying to add a discount code field to my website in big cartel. I've set the available discount codes in bigcartel, but no discount field is shown when checking out. This is because I send users to PayPal to checkout. Is there a way to add a field for the discount code in my cart, then send that discount to paypal on checkout?
What I really need is an example of how to make an <input/> for the discount code such that it gets processed on form submission. I'm new to big cartel, and as far as I can tell I don't have the ability to change the code for how the cart form is processed.
I've been digging through bigcartel and PayPal's docs for a while now with no luck, and am hoping someone on here knows the solution, but any help would be appreciated.
You can add a discount field to the Cart page by using discount_code_input:
Enter discount: {{ cart.discount | discount_code_input }}
This is also documented here: https://help.bigcartel.com/developers/themes/#discountcodeinputdiscount-id-classname
Additionally there's a number of different variables used to check whether discounts are enabled, the amount, the code that was entered, etc: https://help.bigcartel.com/developers/themes/#variables-1
And finally, every Big Cartel theme is on GitHub, so you can download the theme code, run it locally with Dugway, and get a better idea of how our themes work. Here's Lunch Break for example: https://github.com/bigcartel-themes/lunch-break/blob/master/source/cart.html
What I'm trying to do is displaying a PayPal donation button into a Github project README.md file. The markup I added is displayed as HTML rather than being properly rendered as donation button.
HTML
// PayPal source here
Do you have any thought?
The current code generated by paypal buttons is based on a FORM html tag with a POST method. Fortunately the values are always the same and paypal is supporting them to be passed by the GET method. So, you can safely read the form code and convert it to a direct link.
On my case I just made a link to my button like this:
[![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=X6XHVCPMRQEL4)
I am using it on my project at http://github.com/ctodobom/OpenNoteScanner
In all likelihood, it is not possible for security reasons (see CSFR and XSS for examples of potentially related security concerns). In other words, GitHub has intentionally not allowed forms within Markdown text and will strip them out if they are included.
For more general information about how to include a form in Markdown (outside of GitHub) see my previous answer below:
As the Markdown syntax rules state:
For any markup that is not covered by Markdown’s syntax, you simply use HTML itself. There’s no need to preface it or delimit it to indicate that you’re switching from Markdown to HTML; you just use the tags.
The only restrictions are that block-level HTML elements — e.g. <div>, <table>, <pre>, <p>, etc. — must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces.
So just insert your raw HTML into the document. You probably should wrap the entire block in a <div> to make sure Markdown treats it properly as one block.
However, be aware that it is possible that GitHub may filter the content to not allow certain tags for security reasons, so you'll need to test it to find out if it will work.
Additionally, depending on how things are configured, the browser and/or the server you are posting to may not allow the form to post for security reasons.
For more on those issues see these questions and related answers.
With Paypal.me , there is no more a security concern :
markdown
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.me/AbdennourT/10)
markup
<p>
<a href="https://www.paypal.me/AbdennourT/10">
<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" alt="paypal">
</a>
</p>
You have to create an enterprise account or you can update your own, it´s free.
Then you have to create the button in the button center and generate a donate button, this tool generates the html and you can get the hoted_button_id then you have to replace it and paste it in the README.md
[![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YOUR_OWN)
If you want to just use your email and a donate button you can do it by just filling in the blanks from their "donate email" example:
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif)](https://www.paypal.com/donate/?business=paypal#poleguy.com&no_recurring=0&item_name=Payment+for+Stackoverflow+Example&item_number=Suggested+Price:+$7.99+USD¤cy_code=USD)
It renders like this:
Paypal warns that it's "not secure" and you should always use a "hosted email payment link to prevent malicious users from tampering with the code." So maybe okay on github, but not on a wiki or stackoverflow where the link could be edited to pay someone else.
Now I'm addind parameter - handling, but in Paypal page gedding label Shipping and handling , this label is not correct form me bacause I sell inteligence items and there is no shipping.
What parameter is same as handling but have label Handling
I try all items from this official page, but no one is what I need.
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
As far as I know you can't change the name of the parameter corresponding on the checkout page . Instead you use the cart upload button and pass the "handling" as line item so that it will be shown as another item on the checkout page .
Kindly refer the below link :
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/cart_upload/
You can click the below link to see how it will look like :
https://www.paypal.com/cgi-bin/webscr?cmd=_cart&upload=1&business=seller%40dezignerfotos.com&item_name_1=Item+Name+1&amount_1=1.00&item_name_2=Handling&amount_2=2.00&
I noticed that when I order on my woocommerce site with Paypal that I'm not returned automatically to the website. I found where to set this option on my Paypal profile, but I have to enter a return URL. Is there a standard return URL?
RETURN URL would be >>>> yoursite.com/checkout/order-received/
You can read up more about the settings from this page.
http://wphow.org/setup-paypal-to-accept-credit-cards/
It should be: YourDomain/checkout/order-received/
You can find all the information with the latest update on this link:
How to set PayPal with Woo-commerce + Return URL
I had the same question and this solved my issue.
And Also to make it easy without following the link you need to follow this steps:
You can set up auto-return in your PayPal account, which will take customers to a receipt page. For example, use the following URL and replace YourDomain with your own URL:
YourDomain/checkout/order-received/
Add ?utm_nooverride=1 to the end of your URL to ensure that transactions (i.e., conversions) are credited to the original traffic source, rather than PayPal.
So the full link should look like something like this:
YourDomain/checkout/order-received/?utm_nooverride=1
Now,
1-Go to your PayPal account >> Profile Tab >> Account Setting >> My selling tools >> Website preferences and Click update on the right side.
2-You will find Return URL: text field you need to updated it with the link above.
Image attached.
I hope this will help
/wp-content/plugins/woocommerce/classes/gateways/paypal/class-wc-gateway-paypal.php is where the PayPal Standard request is dynamically generated. Within that it's making a call to get_return_url() to generate the return URL.
So, it's being dynamically generated based on order data and SSL settings on the site. It's basing it off your "thanks" page, though, so you could just set the Auto-Return setting in your PayPal profile to whatever that URL is as a basic setting. The return URL getting included in the payment requests should override that anyway.
In WordPress > WooCommerce > settings > Checkout > PayPal
Uncheck or turn off the "Use form submission method" option. With the option disabled this all works fine.
On a French install of WordPress/WooCommerce, the checkout page is named "commande".
Also, one can change the WooCommerce checkout endpoints (https://docs.woocommerce.com/document/woocommerce-endpoints-2-1/).
Maybe a more generic answer to this URL question would be
YourDomain/YourCheckoutPageName/YourWooCommerceCheckoutEndpoint/?utm_nooverride=1
(The utm_nooverride part is described in Tariq Ahmed's answer.)
The default YourDomain/checkout/order-received/?utm_nooverride=1 could for instance be YourDomain/commande/commande-recue/?utm_nooverride=1.
I think. :)