Tag Info

Hot answers tagged

4

You can hook to the init action and then check for the query variable, you can use the PayPal provided query var or you can use your own custom query var. I will give you example of your own custom query var i.e MYIPN_LISTENER The Code: function wpse58656_paypal_ipn_listener() { // check for your custom query var // If you are paranoid you can ...


3

why not pass the title as another hidden input? doesn't seem like much reason for a select element when you only have 1 option. <input type="hidden" name="on0" value="<?php the_title();?>">


3

You can't alter a constant once it is defined. That is how PHP works. Don't fight it. The good news is that you should not be using a constant at all. Use options. // get your value // the second parameter is the default $enable_paypal = get_option('enable_paypal',true); // set your value based on, I assume, a form of some kind ...


3

Try working through the source code of a plugin such as PayPal Framework. From your question, the WP side is fairly trivial, but you should study general PayPal tutorials to understand the API, for example, here's the first search result from Google for PayPal API tutorial: Using PayPal's IPN with PHP Also some additional helpful info can be found here.


3

Most of the new and updated Cart/E-commerce plugins offer that functionality for ex: TheCartPress, E-Commerce for WordPress Stores (long name for a plugin) wpStoreCart DukaPress


3

Best way is to handle this with user roles. A user can register but not read. After paying with paypal, the role will be updated (e.g. from reader to subscriber). The update can be done through PayPals IPN. I made this for one of my clients. You will be paid by your customer. I will be paid by you. You got the plugin. Update As you want to write a theme ...


3

Use the ajax api: http://codex.wordpress.org/AJAX_in_Plugins If you let all your ajax calls go through this you will have access to all WP functions. Also take a look at these: http://www.james-vandyne.com/process-paypal-ipn-requests-through-wordpress/ http://wordpress.org/extend/plugins/paypal-framework/ Don't know if what you want is in there, but ...


2

Looking at your original code, I'd say you need to add the sslverify arg. And on a side note, use the HTTP functions available, rather than instantiating the class yourself (you shouldn't have to load the class manually). wp_remote_post( $url, array( 'sslverify' => false, // this is true by default! 'body' => array( 'METHOD' => ...


2

Wordpress + Gravity Forms is all you'll need for this project. Gravity Forms even has paypal integration. Set up a registration form, add on payment and you're ready to roll. They have detailed instructions and tutorials on how to set everything up and a very active forum if you run into any issues.


2

For wordpress plugins you can see the below links http://wpmu.org/8-wordpress-paypal-plugins-for-receiving-payments-and-donations/ http://www.tipsandtricks-hq.com/wordpress-simple-paypal-shopping-cart-plugin-768 http://www.bestwpplugins.net/wordpress-plugins-for-paypal-integration.html Check this plugin link it might work in your case and its tested in ...


2

This one is the best I know of: Event Calendar / Scheduler The main features include: Day/Week/Month/Year/Agenda view + ability to create custom view Drag-n-drop support to configure event date and time Customizable appearance Single/multi-days events (daily, weekly, monthly or yearly basis) Customizable time scale Recurring events Multilingual


2

To be frank, my customers and I have only had miserable experiences with all of the various alternatives. Had I found a suitable one myself, I wouldn't be developing one in the background. :-P (And no, the one I'm working on by no means ready yet.)


2

It's far better to use a plugin such as Easy Digital Downloads as there are many steps you will need to code in e.g. 1) Check if user has paid (by checking if they were referred back successfully by Paypal) and then set the option in the admin area to say yes you have paid 2) Check what you have bought and direct you to download the item 3) Set a limit on ...


2

A solution can be found in the function woocommerce_add_to_cart_action. We have to chain two filters. In the first, we check for the product ID, if it's one of a list we add the redirect. add_action( 'woocommerce_add_to_cart_validation', 'check_ids_wpse_119466', 10, 3 ); function check_ids_wpse_119466( $true, $product_id, $quantity ) { # Not our ...


2

You can create a custom template in the theme that displays the 'products' custom post types (see the section on Template Files in Custom Post Types). Then code the HTML for the Paypal button in to your specific single-{posttype}.php and have the attributes such as price, etc, coming from custom fields. <form target="paypal" ...


2

Easy Digital Downloads is in my opinioin the best plugin if you are selling downloads. You can see a full review of the plugin here.


1

What you do is you pass an argument to the Paypal's return URL. For example: So your return URL may look like this: $url = home_url(); $url = add_query_arg( array( 'paypal' => '8832002472223abc' ), $url ); $paypal_ipn = array( 'return_url' => $url // rest of your ipn data ) In your IPN template, you can have something like this: if ( ! ...


1

First of all, is better use get_template_directory_uri() instead of bloginfo(... <input type="hidden" name="notify_url" value="<?php echo get_template_directory_uri(); ?>/ipn.php"> but you are right if you think the problem is not this one. I cannot be sure, but I bet your problem is here: include_once( $_SERVER['DOCUMENT_ROOT'] . ...


1

simple answer, Yes that is the main idea behind the PayPal Framework plugin and to get you started take a look at the plugin's FAQ to get an idea of how to use it.


1

Ok, take a look at following plugins, maybe someone could help you: Easy WordPress Donations Awesome Donation System for Wordpress PayPal Payment Terminal Wordpress However all these plugins are commercial, but you can ask a question to the author about your needs before buying. If you need account there you can register here.


1

late answer Another Plugin As you can read here, WP Event Ticketing is no longer supported, but has someone who took it over and made EventEspresso 1) out of it. At a first brief look, it seems to be well thought. PROS: I haven't found one. CONS: Point is, that the plugin adds tons of new tables. There're also (afaik) only activation functions to add ...


1

I would suggest WP Event Ticketing. It's not phenomenal, but it works pretty well for selling tickets to events.


1

You should be able to generate discount codes within your callback function by using the edd_add_discount() function. You can learn more about this function here on the EDD Codex to see what specific data you need to pass to the function. However, edd_complete_purchase might not be the right action to hook to. If you only want specific codes to be generated ...


1

Try adding this to the top of your script: require('/path/to/httpdocs/wp-blog-header.php'); global $wpdb; Then you can run queries using: $sql = "Your SQL Query Here"; $wpdb->get_results($sql)


1

Not sure how I ran into this question one year later, but since it is unanswered... Instead of self-submitting the form and then redirecting to Paypal, you can instead have the paypal url as your form's action, but use Ajax to save the form data before the form is submitted to Paypal. You can also use the Ajax response to prepare the form before submission, ...


1

To answer the question directly, it is a setting within your PayPal that allows user to auto return to your site. More information can be found here. It is located at My Account > Profile > Website Payment Preferences within your PayPal account. You will need to set a default here. Following that, you can overwrite the return URL on a case by case ...


1

Add this to your child theme / plugin functions.php. I think this should do the trick. Let me know function your_meta_callback( $post ) { echo Paypal_payment_accept(); } add_meta_box( 'your_meta', __( 'Meta Box Title', 'your-textdomain' ), 'your_meta_callback', 'your-posttype-name', 'side' ); For more information see Wordpress Codex on add_meta_box(). ...


1

Please check over with the WPMU Dev guys - They've got several great membership type plugins and tons of other things that can be combined to fit your needs. They used to be a membership type site themselves but I believe just moved to a download-per-use type place. You'd have to go check out their plugins and see if anything would fit the bill. Good ...


1

Have you checked out the simple paypal shopping cart plugin? It looks like it is just waht you need.


1

Here's a couple: http://getshopped.org/ http://wordpress.org/extend/plugins/eshop/



Only top voted, non community-wiki answers of a minimum length are eligible