Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trevanhetzel/ninja-forms-paypal-redirect
Adds ability to redirect to PayPal with user submitted form values as prices
https://github.com/trevanhetzel/ninja-forms-paypal-redirect
Last synced: about 1 month ago
JSON representation
Adds ability to redirect to PayPal with user submitted form values as prices
- Host: GitHub
- URL: https://github.com/trevanhetzel/ninja-forms-paypal-redirect
- Owner: trevanhetzel
- License: gpl-2.0
- Created: 2015-12-22T05:39:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-22T15:59:29.000Z (almost 9 years ago)
- Last Synced: 2024-04-16T22:27:32.246Z (7 months ago)
- Language: PHP
- Size: 95.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Ninja Forms - PayPal Redirect
==========### Adds ability to redirect to PayPal with user submitted form values as prices.
This small plugin takes the values of certain fields in a Ninja Form and adds them to a total that is then passed to PayPal upon form submission. All you need is a standard PayPal account!
### Usage
After creating a new form, simply create a new Action (from the Emails & Actions tab) and select "PayPal Redirect" as the type. Give it whatever name you want ("PayPal Redirection" works fine) and enter the email address of the PayPal account you want to use.
Then, enter the IDs (comma separated) of the fields you wish to be used to calculate the total upon being sent to PayPal. You can get the ID of a field after expanding one on the "Build Your Form" tab. The very first line should say "Field ID:" just copy that number.
As long as the value of a field is a number (i.e. 20, 20.00, 21.56), the plugin will add it to the total amount that's sent to PayPal.
### Installation
1. Upload [`ninja-forms-paypal-redirect`](https://github.com/trevanhetzel/ninja-forms-paypal-redirect/archive/master.zip) to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Install version 2.9.31 or later of the [Ninja Forms](https://wordpress.org/plugins/ninja-forms/) plugin (Ninja Forms - PayPal Redirect depends upon the Ninja Forms plugin)
4. Create a new Action with the "PayPal Redirect" Type on a Ninja Form (don't forget to enter your PayPal email address)### Screenshots
![Desktop view](/assets/screenshot-1.png?raw=true "Admin view")