Adding extra payment options in Paypal button

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
iMatt
 
 
Posts: 76
Joined: Mon Nov 25, 2013 2:03 pm

Adding extra payment options in Paypal button

Post by iMatt » Fri May 31, 2019 1:20 pm

Say I am creating two sizes of the same basic item. The standard size is £2 and the larger size is £3.50. Whilst this can be created easily enough using a form combobox, is there any way this can be reflected in Paypal? Because only one price seems to be allowed.

User avatar
Pablo
 
Posts: 17592
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Adding extra payment options in Paypal button

Post by Pablo » Fri May 31, 2019 1:42 pm

There is an example for this in the Form Wizard.

iMatt
 
 
Posts: 76
Joined: Mon Nov 25, 2013 2:03 pm

Re: Adding extra payment options in Paypal button

Post by iMatt » Fri May 31, 2019 1:49 pm

Okay. Can the form wizard be used with PayPal?

User avatar
Pablo
 
Posts: 17592
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Adding extra payment options in Paypal button

Post by Pablo » Fri May 31, 2019 1:53 pm

The Form Wizard creates a standard form whihc is setup for PayPal, because PayPal buttons only support one price.

User avatar
BaconFries
 
 
Posts: 4631
Joined: Thu Aug 16, 2007 7:32 pm

Re: Adding extra payment options in Paypal button

Post by BaconFries » Fri May 31, 2019 3:36 pm

Once you have you have installed the example you will notice that the combobox has two prices. On select of either and on submit/pay then that selection will be used and sent to PayPal for payment.

iMatt
 
 
Posts: 76
Joined: Mon Nov 25, 2013 2:03 pm

Re: Adding extra payment options in Paypal button

Post by iMatt » Fri May 31, 2019 3:59 pm

okay, I have created a form using the form wizard. How do i get the 'add to cart' button to send info/submit to PayPal?

User avatar
Pablo
 
Posts: 17592
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Adding extra payment options in Paypal button

Post by Pablo » Fri May 31, 2019 4:18 pm

The form wizard creates the complete form so there is no need for a separate PayPal button in that case.
The PayPal options can be configured via the 'hidden fields' of the form.

User avatar
alex4orly
 
 
Posts: 803
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Adding extra payment options in Paypal button

Post by alex4orly » Wed Jul 24, 2019 10:25 pm

I have created a membership / donations page for this organisation here :
https://communitylifestyleaccommodation ... modal.html
Click the accept to view the page

I tried engaging with a Payment Gateway service provider, but it is hard to deal with them.
I am considering switching to using PayPal instead.

So, the PAGE activates various payment options, but the one selected last is the one the visitor to the page wants to pay.
So, can I replace that "Pay Now" button with a PayPal button, or must I start again and create a form with the wizard?

Thanks

User avatar
Pablo
 
Posts: 17592
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Adding extra payment options in Paypal button

Post by Pablo » Thu Jul 25, 2019 6:03 am

You can modify the existing form, but for PayPal you will need to add the required hidden fields.
What you can do, is create a new form on another page and copy all the values manually.

User avatar
alex4orly
 
 
Posts: 803
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Adding extra payment options in Paypal button

Post by alex4orly » Thu Jul 25, 2019 9:49 am

I created the button, it generated the following code, it takes me to the paypal page - but the amount 200 doesn't show up
Why?
Here is the code generated by the button:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" id="PayPal1_form" method="post" target="PayPal">
<input type="hidden" name="business" value="alex4orly@gmail.com">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_name" value="Big Dog">
<input type="hidden" name="item_number" value="BG22">
<input type="hidden" name="amount" value="220">
<input type="hidden" name="currency_code" value="AUD">
<input type="hidden" name="shipping" value="">
<input type="hidden" name="shipping2" value="">
<input type="hidden" name="handling" value="">
<input type="hidden" name="return" value="www.cla-ltd.org">
<input type="hidden" name="cancel_return" value="www.cla-ltd.org/fault.html">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="receiver_email" value="alex4orly@gmail.com">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input id="PayPal1" type="image" name="submit" src="mypictures/paynow.jpg" alt="Make payments with PayPal, it's fast, free, and secure!">
</form>

User avatar
Pablo
 
Posts: 17592
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Adding extra payment options in Paypal button

Post by Pablo » Thu Jul 25, 2019 12:38 pm

The standard PayPal button does not show the amount. Only during checkout.

User avatar
alex4orly
 
 
Posts: 803
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Adding extra payment options in Paypal button

Post by alex4orly » Thu Jul 25, 2019 8:37 pm

I found the answer, if the script is in sandbox mode, it doesn't, but in Live it does - yes, at tha checkout stage
I just need to figure out how to set the "amount" element value dinamically (depending on the user choice) with Javascript function

Thanks

User avatar
alex4orly
 
 
Posts: 803
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Adding extra payment options in Paypal button

Post by alex4orly » Thu Jul 25, 2019 10:43 pm

I tried :

document.getElementByName("amount").innerHTML = topay;
But it doesn't work, it seems that "name" has been depracated

I would like to use:
document.getElementById("amount").innerHTML = topay;
But, the code generated by WWB doesn't show an ID for that field
<input type="hidden" name="amount" value="">

So?

Cheers

User avatar
BaconFries
 
 
Posts: 4631
Joined: Thu Aug 16, 2007 7:32 pm

Re: Adding extra payment options in Paypal button

Post by BaconFries » Thu Jul 25, 2019 11:14 pm

But it doesn't work, it seems that "name" has been depracated
Alex, are you saying that "name" is depracated in PayPal forms?
But, the code generated by WWB doesn't show an ID for that field
<input type="hidden" name="amount" value="">
It isnt that WWB doesn't generate an "ID" PayPal hidden fields don't use it.

User avatar
alex4orly
 
 
Posts: 803
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Adding extra payment options in Paypal button

Post by alex4orly » Thu Jul 25, 2019 11:23 pm

But I need the idea to be able to assign a value to in real time, depending on what the visitor wants to pay.
According to the w3 school, name is deprecated...
I need the I'd.
How?
Cheers

Post Reply