Accepting A PayPal Payment Through A URL With No Javascript/Form? - paypal

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

Related

Using spfx webparts, would there be a way to either programmatically send an email which has a link to open a modal or using flow?

I want an spfx made webpart that I've made be able to send an email (I'm using IEmailProperties at the moment) which provides a link to a modal form?
For example:
User clicks button in webpart, form loads.
User fills out form and submits it to SP list.
Form sends email on submission. Email has a link to the actual item created, so when the user clicks the provided email link, it opens up the modal form.
I would presume that the user would HAVE to be sent to the SP page where the webpart is unconditionally, but would it be possible to open up the modal corresponding to the SP list item?
Is this feature available in SharePoint framework, because if it isn't, compared to something like InfoPath 2013 or PowerApps it's quite a limitation.
I've researched this with several shallow Google searches and on gitHub for any premade stuff, but alas there is nothing that I've spotted.
I've been told IT IS possible:
"Yeah, they’d have to visit the page. Email clients don’t do JavaScript so you can’t really do interactive stuff there. If you want to take them directly to a page that then displays a modal, that’s plenty possible though. (e.g. display the modal based on if the URL contains a certain string)"
But wouldn't know how to do the above, can anyone start me on the right path?
Regards,
T
In the email, pass a query string containing the item ID/list ID etc of the item, then have the webpart read the See: How can I get query string values in JavaScript? If your values exist. If they do exist, then open the modal using some kind of framework like bootstrap or fluent UI. You can write your own form using PnPjs or use an iframe potentially to display the OOTB edit form.
Additionally, you can link to any page in SharePoint provided you use an extension instead of a webpart to host the modal. You can install extensions tenant wide, and have it listen for the query string.

Generating a dynamic Buy Now button

I am currently speccing out a custom auction plugin for WordPress. One thing I would like to do for each item is to generate a dynamic Buy Now link that will redirect to a PayPal screen with the item name and final price.
From what I can see, the only way to generate one of these buttons is to go to the form that generates the buttons for you. Is there a js file that I can use to generate these buttons from a Wordpress admin area? If so, can someone please provide a link so that I can begin reading up on the documentation?
Thank you
There are several examples of how to create a "pay now" button on stackoverflow (with simple HTML form). I would rather not use the "insecure" forms.
For including it in Wordpress you need to create a PHP Script (Plugin) that creates you the button, either with a library or "by hand".
The second thing I would recommend is to give PayPal an URL they should call after a payment status change (IPN). Some libraries (as the one above) can help you with that.

Need assistance with Paypal

Question about Paypal -- How do I include a "button" in an email that I am sending? I created the button; however, the only option that is being provided is an option is for a website.
You have to set the URL for the image:
<img src="apaypalbutton.img">
If you create a Paypal button, you should see (on top of the window where the code is generated) a "website" tab (which will give you the HTML code for your website) or "email" tab (which will give you the same code as a hypertext you can attach to a picture on your email).
However, if you create a button with drop down menus (option with prices...), the "email" tab won't be available which is probably your case here.
If so, I wouldn't be able to tell you exactly as it will depend from your e-mail provider but you might be able to include HTML code (so the "website" tab).
Otherwise, you can use the "send money" tab on the home page of your Paypal account to send invoices and payment request to your customers.

Paypal buttons without form tags

The html for a donation button provided by Paypal forces excessive white space on the page. Is it possible to link back to Paypal without the form tag? I have the Paypal button graphic which I can anchor to html code if it is not a form element.
It is possible to do it without a form; I did so a while ago. I don't remember specifically how I did it, but I can give you this example, and if you post your HTML I could help you turn it into a link instead:
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=ben%40happyspork%2ecom&item_name=Sporktris%20Support&item_number=1&no_shipping=0&no_note=1&tax=0&currency_code=CAD&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8
You might even be able to just modify that link to use your data instead of mine.

Zend Framework: How to POST data to some external page (e.g. external payment gate) without using form?

I would like to have a user redirected to an external credit card gate. Of course I have to POST some user info to that gate, but I don't know how exactly can I do this.
I know that I could do this by generating a html form with hidden or read-only fields and have a user click "Submit" button. But this solution is not perfect, because all the form data could be easily changed using e.g. Firebug. I think you cannot do this using $this->_redirect(...). But maybe there is some other solution?
Many thanks for any tips or suggestions.
I would like to have a user redirected to an external credit card gate. Of course I have to POST some user info to that gate, but I don't know how exactly can I do this.
Using a form is the only method available. The RFC states that the user should explicitly agree to sending a POST (i.e. click on a submit button).
I know that I could do this by generating a html form with hidden or read-only fields and have a user click "Submit" button. But this solution is not perfect, because all the form data could be easily changed using e.g.
It is no more secure that using a redirect as the header data can be modified without too much of a problem. There are even Firefox plugins to do it.
use cURL to post data
http://framework.zend.com/manual/en/zend.http.client.adapters.html