Code

Discussion on PayNow! - jQuery PayPal Plugin

Discussion on PayNow! - jQuery PayPal Plugin

Cart 233 sales

flGravity supports this item

Supported

This author's response time can be up to 5 business days.

60 comments found.

Hey can I use this on wordpress?

Hi!

Unfortunately I don’t have WP version of this plugin.

If you want to use my plugin on Wordpress you will have to link css/js files to your theme (using wp_enqueue_script() & wp_enqueue_style() WP functions), add init code in footer by using wp_footer hook and then add markup to some of your template php files.

i could not install the button into my toplupaylas.com site pls help me

Sir, I tried to help you but I don’t get any reasonable answer from you why you just can’t follow plugin documentation to install PayNow! on your site. You basically need to copy-paste a code and that’s all! Also I’m not going to create a video just for you as all information you can find in documentation. So, if you want you can contact envato support and they will help you get your money back. Good luck!

i have write u an email and i will comment here too nobody needs to buy this script because no support and not working

no support!!!!

Hi, Thanks for an awesome plugin, I have just installed it on my site – http://www.billionfollowers.com/2015/03/buy-1000-twitter-retweets.html

I have a question regarding required field setup – I have customized it on my own though want to know if its supported by script already.

I need a input field to be entered by user before the form submits. Currently I have edited the script but will prefer to keep your core version and do it outside so my upgrade will be easy. Please suggest.

Thanks again for an awesome script.

Thanks for using my plugin!

Regrading your question. PayNow! button can be disabled either via API, using disable() method

api.enable() - method to enable button and allow submit
api.disable() - method to disable button and forbid submit
api.setVar(name, value) - method to set "data-" attributes for payment button

or by assigning class “paynow-button-disabled” to the button. So if you have required field, you can only enable button when customer provided required info via textfield. Simply assign change event to textfield and check if val() is not empty.

Great job ! Mojno tvoi email ?

Thanks!

Hi, is there a way to add multiple items? I’m trying using the fields cmd, add, item_name_x… but it is not working. It would be great, if you can post an example. Thank you!

Hi, is there a way to add multiple items? I’m trying using the fields cmd, add, item_name_x… but it is not working. It would be great, if you can post an example. Thank you!

Hello!

Not sure I understand your question. Do you want to specify amount of items for Paynow! button?

i am having trouble getting this integrated into a webpage. it works fine on a stand alone test page what can normally cause the button to not show?

also when removing your CSS / JS the button shows up as a normal command button with no styles.

so i am thinking its something to do with the jquery

what all do i need to run the json verison?

Hello! I have replied you via email

Hello, is it possible to redirect to my site after completing the payment?

Yes, it’s possible. Please add attribute

data-return="http://example.com/page.html"
to paynow button

If you are considering purchasing this plugin don’t hesitate to do so. I have implemented the one-time Donate and the Monthly Donate into a client’s non-profit website.

The technical support provided by this author was OUTSTANDING. There were some problems initially with the Monthly Donation logic but the author jumped right in and persisted with any of the issues I had.

I give the author, flgravity, an “A+” for his excellent support.

For others that may intend to integrate a Monthly Donation via the plugin, here is the HTML:

                <select id="select_1">
                 <option value="10.00">$10</option>
                 <option value="20.00">$20</option>
                 <option value="50.00">$50</option>
                </select>            
                 <button id="button_1" class="paynow-button paynow-button-disabled" 
                        data-business="example@gmail.com" 
                        data-item_name="Monthly Donation" 
                        data-currency_code="USD" 
                        data-lc="US" 
                        data-src="1" 
                        data-no_note="1" 

                        data-on0="Amount" 
                        data-os0="" 

                        data-option_select0="10.00" 
                        data-option_amount0="10" 
                        data-option_period0="M" 
                        data-option_frequency0="1" 

                        data-option_select1="20.00" 
                        data-option_amount1="20" 
                        data-option_period1="M" 
                        data-option_frequency1="1" 

                        data-option_select2="50.00" 
                        data-option_amount2="50" 
                        data-option_period2="M" 
                        data-option_frequency2="1" 

                        data-option_index="0" 
                >a Monthly Donation </button>

                <script type="text/javascript">
                    $('#button_1').paynow({type: 'subscribe', style: 'default'});
                    $('#select_1').change(function(){
                        var pn = $('#button_1').data('paynow-api'), val = $(this).val();
                        if(val !== "") {
                            pn.enable().setVar('os0', val);
                        } else {
                            pn.disable();
                        }
                    });
                </script>

I have implemented your subscription button. Do you have a code example of monthly donations at $10, $20 and $50 options? Also, an option to enter an amount per month? I have looked over your documentation and was not able to find my answers.

Hello, I liked your plugin when I looked the demo. Do you have any idea if it is possible to use the plugin with woocommerce ?

Thanks, and looking forward to your response.

Hello! Woocommerce provides paypal checkout functionality on its own, so you don’t need any additional code. If however you are looking for something simple, then my PayPal Paynow! buttons is what you need. But I have some doubts whether it’s a good idea to link woocommerce with my plugin.

Hey, really glad I found your plugin! I’m interested in using this on a non-profit’s website, but I have a 2 pre-purchase question:

1) This one seems like a given but I just want to clarify, as long as I set up the “data-item_name” variable correctly, my client will be notified where the donations should go?

2) Is there a way to setup reoccurring donations via your plugin? (edit: I didn’t think of this before, but I’m guessing this is where subscribe comes in?)

Thank you so much, looking forward to your response! Brandon

Hi!

1. When client will click donate they will see “data-item_name” param as donation name during checkout. Also if you won’t specify amount, client will have to enter how much they would like to donate on their own. Basically for donation button you should set a) your merchant paypal email (data-business) and b) donation name (data-item_name)

2. Reoccurring donations can be set up via subscription button type. I will be happy to explain how this can be done with example.

If you have any other questions please let me know.

Hi, I have a newbie question. It’s safe to hold for example data-amount=”10” in javascript ? Anybody can’t change it in Chrome Developer Tool ? I tought it should be only in PHP for security reasons ?

If I’m wrong, I would consider with pleasure to buy your script after deeply analyse my needs and your plugin.

Hello!

Theoretically that’s true. However paypal.com itself in their Buy Now button creation tool ( https://www.paypal.com/ua/cgi-bin/webscr?cmd=_singleitem-intro-outside ) generates a form with the <input type="hidden"> element that looks like so

<input type="hidden" name="amount" value="20.00">

and is also prone to modifications. If this is your concern you can use second argument in plugin init to pass amount to specific button

$.paynow({…}, {amount: 20});

instead of doing this via data-, but I think this is not necessary.

Hi,

I liked your plugin when I looked the preview.

Is it possible to have each product with different paypal buyer id? It looks like its possible, but wanted to make sure.

Also is there any inbuilt process to setup a product list grid.. I want to list multiple product in a grid instead of a single product.

Hi!

I’m not sure what you mean under buyer ID… You can configure Paynow! paypal buttons with different merchant email address. As for buyers, you will see their emails in payments made on paypal.com after they will purchase anything.

Regarding your second question. My plugin can’t create product grid. It’s about PayPal buttons with different styles that you can set via “style” plugin option. These buttons you can put in products grid, that you should create on your own.

Let me know if you have any other questions.

Hi,

Awesome plugin! Is it responsive?

Thanks! By default buttons have fixed width in px. To force button resize along with grid you should set % width for certain button style, like so

.paynow-style-frame {
 min-width: 80px;
 width: 65%; 
}

Hello! can i update database after the payment with your plugin? Tnx for the answer and sorry for my english! :)

Hello! Yes, it’s possible. Payments are processed by PayPal site and then you can use IPN to save payment info to your database. IPN URL should be set in your PayPal profile. See this https://developer.paypal.com/docs/classic/ipn/ht_ipn/

Nice work, GLWS! :)

Thanks!:)

Looks good. 1 – Can the plugin be called purely in javascript without having to create a payment button? 2 – Will the response from paypal be something that can be hooked into and then sent to a CRUD system?

Thanks!

1. Button should exist anyway as it contains information about what it sells (like name, price, currency etc). However you can make it hidden, and then simulate click using

('#btn').trigger('click');

2. At first you will be directed to PayPal checkout to complete payment. But then you can configure IPN ( see https://www.paypal.com/ua/cgi-bin/webscr?cmd=p/acc/ipn-info-outside) to send information about completed transition back to server. Sorry, I’m not familiar with CRUD

Thanks – for my site I’m having the user go through a few forms and then on the last screen they pay. So it’s a process funnel and uses a bootstrap wizard, so the last button will be “Finish” and it trigger’s a javascript call. I’ve wired in an ajax call to the back end for the CRUD (create read update delete) operation and have the payment processing to finish which I was going to do in PHP, but I’m intrigued about being able to do it all from javascript which would mean sending the information to paypal and retrieving the response code and then calling my back end to save the success message – this would be a payments pro support which doesn’t redirect to paypal.

With my PayNow! plugin you can change/add paypal variables on the fly using setVar() api method. This will allow you to crate a multi-step purchase where customers will pick some options, etc.

Regarding payment processing. You can write JS code that would check payment status in database every 10 sec and display something like “Please wait…” to client. Then write some PHP script that will accept PayPal IPN and set payment status as completed, so that your JS script can read it and update client with “Ok. Payment accepted”.. Like so :)

Hey, good plugin, QS: how to setup paypal Sandbox?
thank you

thank for your reply
I meant to to setup your jQuery plugin from paypal live to sandbox?

Sorry, I don’t understand your question.

Hello It is all in dollars. one can expect in Euro!!

Hello, for checkout to be in Euro you should set data-currency_code attribute to EUR, like so

data-currency_code="EUR"
Other currency codes you can find here – https://developer.paypal.com/docs/classic/api/currency_codes/ PayNow! plugin documentation is here -http://plugins.gravitysign.com/paynow/docs/
by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey