PayPal form

Issues related to forms.
Post Reply
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

PayPal form

Post by alex4orly »

I have implemented this form with the PayPal "Buy Now Button"
I aded a drop down to allow for several options.
Among the hidden fields, there are two items I am NOT clear on :

return?
shopping_url?

If I just have a button on its own, not as a part of a form - it has excplicit titles
Succesful Payment URL
Cancel Payment URL

SO, how do I interpret the above?

Thanks
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: PayPal form

Post by Pablo »

The full documentation of the PayPal buttons can be found here:
https://www.sandbox.paypal.com/en_GB/pd ... uide.pdfof
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PayPal form

Post by alex4orly »

Yes, I have looked through the manual, but - no answer to my question:

For a Buy now button, the generated script shows clearly this :
<input type="hidden" name="return" value="https://communitylifestyleaccommodation ... intro.html">
<input type="hidden" name="cancel_return" value="https://communitylifestyleaccommodation ... intro.html">

But for the multiple choice form combobox, it shows only this:
<input type="hidden" name="return" value="https://communitylifestyleaccommodation ... intro.html">
<input type="hidden" name="shopping_url" value="https://communitylifestyleaccommodation ... intro.html">

So, in this case - which of the two is for a Cancel page URL?

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

Re: PayPal form

Post by BaconFries »

For a Buy now button, the generated script shows clearly this :

Code: Select all

<input type="hidden" name="return" value="https://communitylifestyleaccommodation ... intro.html">
<input type="hidden" name="cancel_return" value="https://communitylifestyleaccommodation ... intro.html">
Correct, this is the same code generated by the PayPal Buy Now Button in the program. The name="return" and
name="cancel_return" need to be turned on in the PayPal (Merchant) account and will only be used if the end user pays via there own PayPal account, they will get automatically redirected back to the shopping page. If the end user has no PP account they are required to click on the link continue shopping which in turn takes them back to the shopping page.
But for the multiple choice form combobox, it shows only this:

Code: Select all

<input type="hidden" name="return" value="https://communitylifestyleaccommodation ... intro.html">
<input type="hidden" name="shopping_url" value="https://communitylifestyleaccommodation ... intro.html">
This is not what is generated by the Buy Now Button in the program when a Combobox is added to it. Have you got this from a external source?. If so you should note from my understanding that the name="shopping_url" is deprecated. It was used in the past and as before it was set up in the PayPal Merchant account and could only be used if the end user had a PayPal account like my reply above.
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PayPal form

Post by alex4orly »

Hello again,

Following earlier suggestion here, I created a new page and inserted into it a Paypal template through the Form wizard.
The code here is what was generated by WWB, I DID NOT insert any code from outside.

Please check the page source here : view-source:https://communitylifestyleaccommodation ... ntent.html

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

Re: PayPal form

Post by alex4orly »

Hello again,

Well, I didn't hear from anyone on the problem I reported here

Any ideas?

Cheers
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: PayPal form

Post by Pablo »

which of the two is for a Cancel page URL?
The cancel page can be set in 'Payment Page' tab of the PayPal button properties.

See 'step 6'
http://wysiwygwebbuilder.com/paypal_buynow.html
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PayPal form

Post by alex4orly »

I followed the instructions on the page, I have NO PROBLEM with the 3 individual bottons here
https://communitylifestyleaccommodation ... ntent.html

The problem is with the FORM I inserted for the donation option on that page
This is NOT a Buy Now button - it is what the form suggested, so there is a "Button" with a dropdown multiple choices
This part of the page is my problem - it is the result of inserting a New page with the form wizard

Please have a look at the page source

Thank you
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: PayPal form

Post by Pablo »

I'm sorry, but I cannot see what you have done based on the source code.
The code generated by the form wizard, it just an example. You can fully customize the form to suit your needs.
So, you can add and remove hidden fields.
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PayPal form

Post by alex4orly »

Hello,

I just downloaded and installed the latest update 15.0.5 and created a new page , inserted a new form using the wizard.
In previous version - at the end, the form was inserted into a layout grid by WWB, but not anymore - why this change?
OK, so I tried to run it in preview mode and PayPal comes up with the following error

You have requested an outdated version of PayPal. This error often results from the use of bookmarks.
User avatar
BaconFries
 
 
Posts: 5325
Joined: Thu Aug 16, 2007 7:32 pm

Re: PayPal form

Post by BaconFries »

You have requested an outdated version of PayPal. This error often results from the use of bookmarks.
This is related to a browser cache. Deleting your browser's cache including cookies, temp files and history, then close the browser, reopen it,
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PayPal form

Post by alex4orly »

OK, I figured that out.
I am saying again : My problem is as follows:

1) When I create a "Buy Now Button" In the object options I get a OK URL input and a CANCEL URL input
2) When I creat a form with the form wizard, the button has 2 other URL options : RETURN - I assume this is equivalent to OK, I will decide to what page to return to, probably a "Thank you" page. The 2nd URL is called "shopping_url" I assume that is in case I want the person to be put back to where he started.

BUT - in case, he/she cancels the purchase - where do I tell the object to which page to go?
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PayPal form

Post by alex4orly »

Hello again,

I just noticed after reading more on the help file that I should be able to ADD an extra Parameter to specify the "Cancel" URL return page, but I don't know the NAME of that extra argument, can't find it on the paypal documentation either.

Hope someone here can tell me

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

Re: PayPal form

Post by BaconFries »

I am saying again : My problem is as follows:
But there is no problem, each payment method is different!. And you yourself can add and remove hidden fields as needed!
2) When I create a form with the form wizard, the button has 2 other URL options : RETURN - I assume this is equivalent to OK, I will decide to what page to return to, probably a "Thank you" page. The 2nd URL is called "shopping_url" I assume that is in case I want the person to be put back to where he started.
Correct. Note this is only a "Example" that didn't have the name="cancel_return" included in the Hidden Fields, as previously mentioned you can add/remove fields needed or not.

BUT - in case, he/she cancels the purchase - where do I tell the object to which page to go?
You yourself can add this as a hidden Field of the form....

Code: Select all

<input type="hidden" name="cancel_return" value="https://communitylifestyleaccommodation ... intro.html">
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PayPal form

Post by alex4orly »

Thanks AGAIN, BaconFries,

This works fine, but I have another question.
I did two test transactions of $1.00 each, one for paying Membership, the other is a Donation
But - the Recipient got messages for both as "Alex paid $1.00... " but no mention that one was Membership, the other a Donation
So, how to I add this into the script?

There are Membership options of $100, $50 and $20
But, there are also the same Donation options in the combobox and the Treasurer will not be able to know aht is what...

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

Re: PayPal form

Post by BaconFries »

You are using the wrong payment method for a donation.
✖️

Code: Select all

<input type="hidden" name="cmd" value="_xclick">
✔️

Code: Select all

<input type="hidden" name="cmd" value="_donations">
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PayPal form

Post by alex4orly »

OK, that will solve the Donation payment (will that be mentioned in the return email ?)
If so, this will make it easy to determine what payment is Donation, otherwise it will be assumed to be for Membership

But I wonder - in the Item name - I explicitly write the item, why is it not part of the return message to the Merchant?

Thanks again
User avatar
BaconFries
 
 
Posts: 5325
Joined: Thu Aug 16, 2007 7:32 pm

Re: PayPal form

Post by BaconFries »

You should be able to do this with a Hidden Field.
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: PayPal form

Post by alex4orly »

Hello again,

I did, it works just fine

Thnaks again
Post Reply