Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#136 2008-06-19 17:43:22

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: yab_shop (simple textpattern shop with paypal support)

That’s great trenc. We’re all bug free from my perspective. I can’t thank you enough.


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#137 2008-06-25 17:50:51

donkeyd
New Member
Registered: 2008-06-22
Posts: 5

Re: yab_shop (simple textpattern shop with paypal support)

Is it possible for anybody to implement the useage of authorize.net with this plugin?

im trying to keep everything contained within textpattern and dont really want to use another cart script.
please help

thanks

Offline

#138 2008-06-26 18:38:10

mauricenaef
Member
Registered: 2008-01-31
Posts: 23

Re: yab_shop (simple textpattern shop with paypal support)

trenc wrote:
  1. First create a private key with the following command: openssl genrsa -out my-private-key.pem 1024 – this will produce a 1024bit long RSA key for you, where my-private-key.pem is the name of the file which will be saved in your home directory.
  2. With this key/file you can create your public certificate now: openssl req -new -key my-private-key.pem -x509 -days 365 -out my-public-certificate.pem – During the generating process you will be asked some questions about the owner of the certificate. The file my-public-certificate.pem will also be saved in the same place as your private key.
  3. Then you have to upload your public certificate to your paypal account. After this procedure you will get your paypal certificate id (CERT ID).
  4. Now you can grab the paypal public certificate (it’s a file, too) from you paypal account.
  5. As the last step place the three files (your own generated my-private-key.pem, my-public-certificate.pem and the paypal certificate paypal_cert.pem) in your hosting account and configure the shop in yab_shop_config as described in the plugin help.

hi trenc

Im having some problems on the paypal encription side. Somehow I keep on getting the error message from paypal “We were unable to decrypt the certificate id”.

I have followed the steps you describe above so I wonder if I have done something wrong? I have created the .pem keys with my Mac (terminal), could that be a problem?

My paypal should be configed okay, but ill tripple check!
Thanks in advance,…

regards Marcel

Offline

#139 2008-06-26 23:20:47

donkeyd
New Member
Registered: 2008-06-22
Posts: 5

Re: yab_shop (simple textpattern shop with paypal support)

question….

when an order goes thru, do i receive an email or some kind of notification that an order has gone thru?

and also i am having issues setting up the encrypted button. i can send with non encrypted but confused about the setup for encrypted button.

can someone please explain how to set this up?
i guess what i need to know is how to make the pem file that gets uploaded to paypal

thanks

Offline

#140 2008-06-28 09:28:15

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi there,

authorize.net is not planned to implement this time, credit card payments can be done via paypal IIRC.

Paypal:
I myself followed the description of the paypal site Encrypting Buttons Dynamically with Encrypted Website Payments and all works fine.

@mauricemaef:

Maybe you uploaded your private key instead of your certificate. Both are .pem.
The Mac-OpenSSL should not be the problem. I can’t really figure it out.

@donkeyd:

An admin notification will always (after a successfull order) be sent (to the given mail adress in config 'admin_mail'), if your hosting are able to send mails (php mail function). If zem_contact_reborn does send mail so this plugin will work too.
For the encrypted paypal function I can only refer to the official paypal site Encrypting Buttons Dynamically with Encrypted Website Payments and to the relevant post in this forum. You have to create two certificates and one private key with OpenSSL (a tool for encryption). The approache is described in this post and a link to the windows port of OpenSSL.


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#141 2008-07-07 06:10:50

cuda
Member
From: Georgia, USA
Registered: 2008-02-06
Posts: 70
Website

Re: yab_shop (simple textpattern shop with paypal support)

trenc Is it possible to have one of the properties add an additional price to the product…an example:

You have a product called Widget that costs $10

You have a color property select box

Widget comes in Black and Red

Red costs $5 more

so you select the Color property Red and $5 is added to the Widget Price making the total price when added to cart $15

I hope that made sense….let me know thanks

Offline

#142 2008-07-08 12:57:15

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi cuda,

yes this made sense, but this feature is not supported this time.
But let me think about how to implement it — I have in mind to build-in two similar features at once.
But this could take a while.

trenc


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#143 2008-07-15 21:41:06

grinstead
Member
From: UK
Registered: 2006-10-06
Posts: 19

Re: yab_shop (simple textpattern shop with paypal support)

Hi, 1st if all, great plugin and thanks for your time spent on it.

Just a quick question, I don’t seem to be getting email notification on orders. Is this done on completion of Paypal payment or once the checkout redirects to Paypal? Either way both don’t work, my host does allow php mail function!

Thanks

Offline

#144 2008-07-16 13:18:19

grinstead
Member
From: UK
Registered: 2006-10-06
Posts: 19

Re: yab_shop (simple textpattern shop with paypal support)

Me again, is it possible to have one of the custom fields as a text input? Cheers

[Update]

Ok seems that I’ve managed to find a way for the text input,

Changed this..

function yab_shop_type_select_custom($array, $name = 'type') { $out = '<select name="'.$name.'" id="select-'.$name.'">'.n; foreach ($array as $option) { $option = trim(htmlspecialchars($option)); $out .= t.'<option value="'.$option.'">'.$option.'</option>'.n; } $out .= '</select>'.n; return $out; }

to

function yab_shop_type_select_custom($array, $name = 'type') { $out = '<input type="text" name="'.$name.'" id="select-'.$name.'" />'.n; return $out; }

Then I simply add a character in the custom field on the product I want to have a text input applied to.

Not sure if this is the best way but seems to work :)

Last edited by grinstead (2008-07-16 16:09:55)

Offline

#145 2008-07-22 09:42:28

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: yab_shop (simple textpattern shop with paypal support)

Hi,
I was wandering if it is possible to implement this plugin but without paypal? At the end, when visitor choose all the product that he wants, on submit order, an email shoul be sent to site owner, with the visitor data like name, address, phone etc.
Thanks!

Offline

#146 2008-07-23 09:58:01

rink
New Member
Registered: 2008-07-21
Posts: 3

Re: yab_shop (simple textpattern shop with paypal support)

great plugin, exactly what i’m looking for.

i’m new in paypal, knows someone what kind of api i need to use this plugin, the api certificate or the api signature?

bye,
reg

Offline

#147 2008-07-23 10:58:22

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Sorry for the delay,

grinstead wrote:

Just a quick question, I don’t seem to be getting email notification on orders. Is this done on completion of Paypal payment or once the checkout redirects to Paypal? Either way both don’t work, my host does allow php mail function!

Hi grinstead,
In case of paypal or google checkout payments there will no mails be sended by the shop plugin. This has the following reason: The transaction/purchase process is not complete on the paypal/google site. It can always be cancelled during the process on their site. So if the plugin would send an affirmation on a successfull order but the customer has cancelled the paypal/google checkout process this would cause confusion and maybe trouble you don’t really want. :)

Normally paypal or google have to send a message to the shop owner and the customer. But I’m not sure wheather is possible by paypal or google. I don’t use it.

AndrijaM wrote

I was wandering if it is possible to implement this plugin but without paypal? At the end, when visitor choose all the product that he wants, on submit order, an email shoul be sent to site owner, with the visitor data like name, address, phone etc.

Hi AndrijaM,
you can choose to use payal, google or not. Simple disable it in the config of the plugin. An email to the site owner can be sent too, see plugin help and plugin config.

rink wrote

i’m new in paypal, knows someone what kind of api i need to use this plugin, the api certificate or the api signature?

Hi rink,
you don’t need access to the paypal api. All what you need is described here Encrypting Buttons Dynamically with Encrypted Website Payments, here and in the plugin help.

Last edited by trenc (2008-07-23 11:00:16)


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#148 2008-07-23 11:47:08

rink
New Member
Registered: 2008-07-21
Posts: 3

Re: yab_shop (simple textpattern shop with paypal support)

thanks for your quick answer.

bye,
reg

Offline

#149 2008-07-31 01:37:39

fowler
Member
Registered: 2007-02-12
Posts: 79

Re: yab_shop (simple textpattern shop with paypal support)

i’m skimmed through all of this..

seems like the only payment methods are paypal and google check out? is it possible to do credit card transactions without using these services?

Offline

#150 2008-07-31 08:04:47

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: yab_shop (simple textpattern shop with paypal support)

Hi fowler,

sorry but credit card payments are not implemented this time, ‘cause the methods are too different for the countries and the the providers.


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

Board footer

Powered by FluxBB