Paypal with ezPublish 4.0

Author Message

Mohammad Tufail

Wednesday 10 September 2008 10:47:51 pm

Hi,

Anyone has update on ezpaypal extension for ezPublish 4.0.

Regards,

Jérôme Vieilledent

Saturday 04 October 2008 3:16:53 pm

Hi

I'm interrested by this extension too... I hoped that it would reappear in 4.0.1, but it is still absent :-(

Łukasz Serwatka

Monday 06 October 2008 12:53:51 am

Here you can get a PHP5 version:
http://svn.ez.no/svn/extensions/ezpaypal/trunk/

http://svn.ez.no/svn/extensions/ezpaypal/readme.txt

Was tested with PayPal sandbox.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jérôme Vieilledent

Monday 06 October 2008 1:03:18 am

Thanks Lukasz !

Is there a "Home page" somewhere to view the status of the extension ?

Łukasz Serwatka

Monday 06 October 2008 3:32:32 am

Hi,

Unfortunately there is no dedicated page for PayPal extension. However if during your tests you will find any issues feel free to report it in the issue tracker ( http://issues.ez.no )

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Anders Berre

Friday 20 February 2009 12:58:46 am

Hi,

I have used this and found out that PayPal`s configure pages ain`t that good.

Every payment that was sent back to eZ Publish got this waiting for server respons 1 of 3.
I debugged and found out that the status was "Pending" because I haven`t mapped up the currency and auto capture was not set to automatic.

The ezpaypal extension need the status to be "Completed" to not give this "server respons 1 of 3 page".

The way to fix this is:
1. make a payment to PayPal through sandbox.
2. Accept/activate payment in the paypal administration
3. You got the choice to activate the payment with the new currency - do this
4. After you have activated the payment a list of new options i listed. Configure future payments -> and set the auto activation.

This made the trick, and paypal is up and running smoothly on eZ :)

Sincerely,

Anders Sandvik Berre
http://www.netmaking.no/

Chan I

Tuesday 25 August 2009 12:16:14 am

Has anyone had any lucky installing the paypal extension on version 4.13? Is it even possible?

cubby cub

Tuesday 25 August 2009 9:30:48 am

Yeah it works.

EDIT: I tested it in sandbox. above someone said they got this issue...

Every payment that was sent back to eZ Publish got this waiting for server respons 1 of 3.
I debugged and found out that the status was "Pending" because I haven`t mapped up the currency and auto capture was not set to automatic.

the solution offered is incorrect. all you have to do is to make sure that in sandbox, your seller and buyer accounts have "Disabled" for "Payment Review." in other words, all payments are automatically authorized. once you verify these settings, go back to your site and order products.

go through the checkout process with your sandbox account. when you complete your sale, click the button on the sandbox site that says take me back to the seller's page.

when you go back to your site, you should be presented with an invoice. so it appears that as long as your payments are automatically authorized in paypal, you shouldn't have any issues.

anyhoo...

I copied all of the files from http://svn.ez.no/svn/extensions/ezpaypal/trunk/

it was pretty tedious. just make sure to take not that anytime you see <b> / </b>whatever-link-name, the "/" indicates that you need to create a folder. no "/" means it's a file.

i then uploaded the files to my extensions folder so that they were located in /public_html/ezpublish/extension/ezpaypal

I edited /settings/paypal.ini. should be self-explanatory in terms of how to edit it but in case it's not, i've listed what needs to be changed below. for novice folks, any line with a # means that the code is commented out (not active, a notation or for example purposes only).

1. If you don't need to run test sales change this...

[ServerSettings]
#ServerName=https://www.paypal.com
ServerName=https://www.sandbox.paypal.com

to this...

[ServerSettings]
#ServerName=https://www.paypal.com
ServerName=<b>https://www.paypal.com</b>

2. then change the seller email on this line

[ServerSettings]
# field: "business"
# e-mail of receiver
Business=<b>lazy_seller[at]ukr[dot]net</b>

3. then change "Some Label" to whatever you want. usually "Custom Instructions"/"Notes to Seller"

# field: "cn"
# label that will appear above the note field
# maximum 40 characters
NoteLabel=<b>Some Label</b>

4. enter your page style. i haven't edited this value yet but you know how you can save a page style so that when someone navigates to your paypal payment page, they will have a custom view with your logo? you created a name for that page. i believe you enter that name here

# field: "page_style"
PageStyle=<b>your-custom-page-name</b>
#PageStyle=FiveClock
#PageStyle=paypal

5. finally, don't forget to add your logo

#filed: "image_url" (URI to the logo image (150 x 50 pixels))
LogoURI=/var/shop/images/<b>mylogo.png</b>

EDIT:

I'm not sure if this is necessary but i installed the ib2checkout module before i installed paypal. i'm unsure if you just follow the instructions in the paypal file that it will install correctly.

with the 2CO extension you have to go to the admin interface - setup - workflow and add a new workflow and trigger. in other words, you have to add a step during the checkout process that allows you to select a payment method.

unless i missed it in the paypal extension instructions, it doesn't tell you to setup a workflow or add a trigger and if that be the case, you should probably follow the instructions in the 2CO file...

listed below for easier access...

5. Workflow & Trigger Setup
   ===========================
   A) In the eZ publish admin, go to Setup -> Workflows
      and click New Workflow Group.

   B) Name the group something like "All Payment Gateways" and click OK.
      The group will be added to the workflow groups.

   C) Click on the group you have just created, and in the
      Workflows box click the "New Workflow" button.

      1) Name the workflow "Payment Workflow".

      3) You will now see an Event select dropdown.
         1) Select "Event / Payment Gateway"

         2) Confirm you choice by clicking the "Add Event" button
            just to the right of the select dropdown.

      4) Enter a description "IB 2CheckOut Payment Gateway"

      5) Select a type from the multi-select list.

         If the extension has been properly installed,
         you will see IB 2CheckOut in the new multi-select
         box you are presented with.

         You can choose, "All" or "IB 2CheckOut" from the multi-select
         box to support one or many Payment Gatways.

	 a) Selecting "All" will allow the customer to select a payment
            method for themselves at checkout. This would allow the customer
            to pay using either Paypal or 2CheckOut
	 b) Selecting "IB 2CheckOut" will allow the customer to submit
            credit card payment using 2CheckOut


   G) Now click on the Triggers link in the left hand menu.

      In the table "Workflow Triggers" you will see a list of available triggers.

      On the line: shop, sheckout, before, (Workflow Drop Down)
      "Click" the dropdown select the payment gateway event
      you have just created.

   H) After you have followed all these steps, the extension's
      workflow settings should be activated, configured and functioning properly.

Aang: Just like the legend says, we let love lead the way.

André R.

Tuesday 25 August 2009 10:42:35 am

@Cubby: re: "it was pretty tedious"
On eZ Publish and Version control: http://ez.no/ezpublish/source
Simple to use svn client for windows: http://tortoisesvn.tigris.org/
A simple guid for how to install tortoisesvn and export a svn folder: http://www.bulletprooftemplates.com/using-tortoise-svn

Version control terms:
'Revision' - The version of a change, the word 'Head' is frequently used for the most current version.
'Checkout' - get a working copy of the version controlled folder, allows you to contribute changes back with:
'Commit' - upload changes you have done (given that you have access to it)
'Export' - Export the clean files and directories without the version control files and folders, either from a local checkout or directly from the server aka repository (as explained in the last link above)

"eZ Publish" version control terms (generally):
'Trunk' - The development version of something, kind of like alpha but differs from project to project, for instance the paypal extension is still in trunk since it's not officially a new version yet, not because it is considered alpha.
'Stable' - A more stable version of the code, where only bug fixes from 'Trunk' are merged, but normally not the new features.

A practical example:
http://issues.ez.no/IssueView.php?Id=14515&activeItem=5

Fixed in
trunk (4.2.0Beta1) Rev. 23923
stable/4.1 (4.1.4) Rev. 23924
stable/4.0 (4.0.7) Rev. 23925

This means the bug was fixed in 3 branches of eZ Publish, and also gives you the revision number of the change that fixed it.
'trunk', 'stable/4.1' and 'stable/4.0' describes the branch name and also the folder you'll find it in, in eZ Publish case the root folder of the project is http://pubsvn.ez.no/nextgen/

Other version control terms:
'Branch' - a variant of the code, for instance trunk (currently the code that will become 4.2) and stable (like 4.1.x aka stable/4.1) where mostly only bug fixes are merged.
'Merge' - Merging changes from one branch to another, as in replicating the change needed to fix/enhance something.

BTW: There are bold tags in your examples (<b>), intended?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

cubby cub

Tuesday 25 August 2009 11:11:22 am

LOST IN TRANSLATION AGAIN!!!!

Andre, i have no clue what you just wrote.

i know that the trunk isn't stable. but i based it's usage on the readme which says...

trunk/ is PHP5 port of the extension
stable/1.0 is PHP4 version of the extension (used in eZ Publish 3.10 and earlier versions)

given i'm using v4.1.3, how stable could stable/1.0 be for me? so are you suggesting that i use the stable version even though it's for ezpub 3.1?

are you saying that there's another, stable paypal extension out there? if so, where's the link?

Aang: Just like the legend says, we let love lead the way.

André R.

Tuesday 25 August 2009 11:24:09 am

given i'm using v4.1.3, how stable could stable/1.0 be for me? so are you suggesting that i use the stable version even though it's for ezpub 3.1?

No, I was simply trying to give you an introduction to svn, so you don't have to copy the files manually one by one.
You did the correct thing in using the trunk version, no worries, move along, nothing to see here.. :-P

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

cubby cub

Tuesday 25 August 2009 12:08:48 pm

then why didnt u just say that! sheeeeeeeeeeesh

i think you do this on purpose :P

but thanks, i shall bookmark it

Aang: Just like the legend says, we let love lead the way.

Dan Parchman

Friday 11 September 2009 2:17:55 pm

Andre - thanks for the tip about Subversion Tortoise - it worked great!

Now all I've got to do is figure out how to put together the rest of the store! ;-)

Regards,
Dan Parchman
Juniper Systems, Inc.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.