1
joeiscoffee
paypal button How?

How do I, if possible, get the paypal <form> code to work in modules like news or catad?

I want the user to be able toclick the paypal link go to paypal to pay for goods and services.

2
joeiscoffee
Felix, theCat!!! Re: paypal button How?

Let me be more specific regarding paypal.
This is paypal button code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<
input type="hidden" name="cmd" value="_s-xclick">
<
input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<
input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----M----  -edited--   BxQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAyDj3eQA3wYJG+5uPy3q37sXA8UKQ63nNiKKu9KI7Bd+ZJe6MLhWjkvXiTHdq/SzECC3M8IgA54tK+cjRvzp8Wq7O3lVT90l6qzinli/IjvRigbE0IEemG/yJoSfANm4gN2fcfTybScUwDVSYfDFyoFlCUgSnvwLHUWZu1XZHeZDELMAkGBSsOAwIaBQAwgaQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIolbzeOoNyzWAgYCIPpGvUM/A9PUFrtX4xrmq/WFB0ZWRiyZ/GzbzHIrcUJ/E4/GKf62ez5W4bcUgJZ2J2L72XGVTe5I2le1pb2eaKTwGZHBc/TraVzmp/vZhqdDAJmJxZ4MGZmHgS7Ef1YvpQtiMh9H7YxBDD2zHBtB2CkYVvNwmkxduI9fUr/yWNaCCA4cwggODMIIC7KADAgECAgEAMA0GCSqGSIb3DQEBBQUAMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgN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UWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA0MTExNTIwNDUwMFowIwYJKoZIhvcNAQkEMRYEFLhHOq4rmH/ek0Cjq6v5IXQFdbR/MA0GCSqGSIb3DQEBAQUABIGAstNDX0QcIuGgm1vPhY5VdM6u9dR/T/x9maImQwU2rkt6tLPx/zjAXGWCODRYs+AsgjGXzGerD5JIOwm6xHeqyrU72ZmfntFBaICOQ2SzYxsRnZ0DRPC3e7Ax/h2KwygsdI3g4mxmZiH3gr058d2Zk2i8/OaP5RvFRcZldbHk08w=-----END PKCS7-----
"
>
</
form>

It produces a buy-now button that takes you to the appropriate paypal page for the item and account.
Ideally there would be a field to paste this code into in catAd when placing the ad and the result would appear at the bottom (or whatever) of the ad.
Could you do this?
Barring that could the dhtml editor be modified to accept and use the above code?

Thanks for catAd module, Felix.

Joe

3
jdseymour
Re: Felix, theCat!!! Re: paypal button How?

If I am not mistaken you could put this code in a custom block, just like I did the google add on my site.

4
joeiscoffee
Re: Felix, theCat!!! Re: paypal button How?

jdseymour

Good idea. The thing is each ad needs have its own unique button. And it needs to be easy for the user, who is placing the ad, to paste the button code into the ad.

And then when a guest views the ad they can pay for it through that paypal link or a regular url link if that is what the ad placer used.

The paypal thing is appealing because it is very easy to create the button via your paypal account.

5
jdseymour
Re: Felix, theCat!!! Re: paypal button How?

Just put the whole add in the custom block with the unique button for each add. The block accepts code so just insert the code.

HTH

6
joeiscoffee
Re: Felix, theCat!!! Re: paypal button How?

jdseymour,

Thanks for your suggestions. Perhaps I need to clarify. adCat is a XOOPS module written by theCat for classified ads.

In my proposed useage I want to make it as easy as possible for the ad poster to encourage a sale and receive payment via the adCat module. Paypal is a good way to do this. Of course the ad poster could paste the url of the item in the ad directing the customer to a web site. And some may use it this way. But paypal is far quicker and convenient for my purposes. And easier for novices to work with.

Apparently the editor used by XOOPS cannot handle the form structure. [ not a complaint there are good reasons for this] So I would like to know how to add this capability to the editor to parse the form.

Or, even better, ( are you listening theCat?) a "buy here" input "field" specifically for paypal and urls.

7
JMorris
Re: Felix, theCat!!! Re: paypal button How?
  • 2004/11/17 17:39

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


I'm not sure why you are having problems with <form> tags in blocks as I have implemented this on numerous occasions with great success. At any rate. Here are two approaches to adding PayPal links to a block.

The first is by far the simplest... A form button. Just provide a tutorial for your clients on how to change the values in bold red.
Example:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<
input type="hidden" name="cmd" value="_xclick">
<
input type="hidden" name="business" value="[b][color=CC0000]paypalemail@domain.com[/color][/b]">
<
input type="hidden" name="item_name" value="[b][color=CC0000]Product Name[/color][/b]">
<
input type="hidden" name="amount" value="[b][color=CC0000]$$.$$[/color][/b]">
<
input type="hidden" name="no_note" value="1">
<
input type="hidden" name="currency_code" value="USD">
<
input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit">
</
form>

The next example is an altered e-mail link that uses a button image and masking. Same as above, just instruct them to replace the values in bold red.
Example:
<a href="https://www.paypal.com/xclick/business=[b][color=CC0000]paypalemail@domain.com[/color][/b]&item_name=[b][color=CC0000]productname[/color][/b]&amount=[b][color=CC0000]$$.$$[/color][/b]&no_note=1&currency_code=USD" onmouseout="window.status='';return true" onmouseover="window.status='[b][color=CC0000]Buy this product![/color][/b]';return true"><img src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" /></a>

The above code is a direct copy and paste of code I am using in production environments with XOOPS (I've removed my details and added emphasis, of course. ). It will work with XOOPS blocks with no alteration.

I agree that the ability to generate the above code through the module would be much easier. However, if you write a clear concise tutorial for your clients, most should not have a problem working with the above code.

Hope this helps.

8
joeiscoffee
Re: Felix, theCat!!! Re: paypal button How?

jmmorris,

Thanks for your thoughtful reply.

I am missing something with using a block and that is: Each ad is unique and has a unique id. How would the block be re-callable and "linked" to the ad when the consumer goes to the individual ad?

BTW Can I borrow your avatar someday? It would be perfect for me.

Joe

9
JMorris
Re: Felix, theCat!!! Re: paypal button How?
  • 2004/11/18 13:24

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Quote:

joeiscoffee wrote:
jmmorris,

Thanks for your thoughtful reply.

I am missing something with using a block and that is: Each ad is unique and has a unique id. How would the block be re-callable and "linked" to the ad when the consumer goes to the individual ad?

BTW Can I borrow your avatar someday? It would be perfect for me.

Joe


Sorry to take so long to reply. I'm tied up with semester finals right now. I'll download the module over the weekend and see if I can't find a workable solution for you.

RE: Avatar....
Sure! Can't deny a coffee lover their daily dose.

10
joeiscoffee
Re: Felix, theCat!!! Re: paypal button How?

Quote:
jmmorris wrote:
I'll download the module over the weekend and see if I can't find a workable solution for you.


That would be great. Much appreciated.
Good luck on your testing.

Login

Who's Online

107 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 107


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits