Page 2 of 2

Re: Paypal : Three Different Postages?

Posted: Wed Nov 18, 2015 3:44 pm
by donjohnson24
ColinM wrote: But yes, looking forward to you getting back to me Jon - awesome that you've done exactly what I wanted. :D
This is the content of one of the HTML boxes which appear in the Order column of the table:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XXXXXXXXXXXXXXX">
<table>
<tr>
<td>
<p align="center"><input type="hidden" name="on0" value="Destination">Destination</p>
</td>
<td><select name="os0">
<option value="UK">UK £39.00</option>
<option value="Europe">Europe £41.00</option>
<option value="Rest of World">Rest of World £42.00</option>
</select> </td>
</tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>


I guess that the XXXXXXXXXX would be a unique code appropriate to the PayPal account, so I've overwritten it

This code was created by, and then copied from, PayPal - starting from somewhere like
https://developer.paypal.com/docs/class ... s-buttons/

but I can't remember the exact procedure at the moment (my excuse is I'm 75 :lol: )

No doubt you will be able to create your own buttons with these hints ?

. . . . and its Don, not Jon

I hope this helps

Re: Paypal : Three Different Postages?

Posted: Wed Nov 18, 2015 10:01 pm
by ColinM
donjohnson24 wrote:
ColinM wrote: But yes, looking forward to you getting back to me Jon - awesome that you've done exactly what I wanted. :D
This is the content of one of the HTML boxes which appear in the Order column of the table:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XXXXXXXXXXXXXXX">
<table>
<tr>
<td>
<p align="center"><input type="hidden" name="on0" value="Destination">Destination</p>
</td>
<td><select name="os0">
<option value="UK">UK £39.00</option>
<option value="Europe">Europe £41.00</option>
<option value="Rest of World">Rest of World £42.00</option>
</select> </td>
</tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>


I guess that the XXXXXXXXXX would be a unique code appropriate to the PayPal account, so I've overwritten it

This code was created by, and then copied from, PayPal - starting from somewhere like
https://developer.paypal.com/docs/class ... s-buttons/

but I can't remember the exact procedure at the moment (my excuse is I'm 75 :lol: )

No doubt you will be able to create your own buttons with these hints ?

. . . . and its Don, not Jon

I hope this helps
First off a correction - apologies on the typo Don :D

Yes, I did have a chance Don to dig further into one of my Client's PayPal account and upgraded mine to a business account (to assess the situation) and you are right, the code is generated by PayPal when creating buttons - then the code is imbedded in your WB project with, as you say. a code unique to that PayPal account. I've also had a chance to discuss the options at this stage with my Client and he prefers having three PayPal buttons (each one configured with the appropriate postage) - so I'll go down that path.

I had actually explored this before (my 59 YO failing memory :lol: ) - it all came back to me.

Another issue arose - that of linking to an image in the Client's PayPal config and HTTP/HTTPS mixed content without assigning a digital certificate to the Client's website - otherwise you get a browser prompted "unsecure content" warning - which is offputting to a buyer and seen on far too many websites - even Government ones.

But the Client doesn't want to pay for that so we'll just run with a text label identifier in their PayPal account.

Thanks Don - you've been VERY helpful and well done in keeping your Brain sharp at 75! :D