Payment method

Phoca Cart - complex e-commerce extension
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 160
Joined: 15 Sep 2023, 10:51

Payment method

Post by landed »

I have been using AI to code very successfully in Joomla and wish to see if I can also do this for payment options? I haven't seen any plugins and can't find where these files would be. Is this something anyone could help me with?
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 470
Joined: 07 Nov 2018, 14:55

Re: Payment method

Post by Nidzo »

For payments you need to develop Phoca Cart payment plugin. Here are some free https://www.phoca.cz/download/99-phoca- ... rt-plugins
For payment gateways like Stripe, Molie etc. there are paid third party plugins or you can try to develop your own.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48939
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Payment method

Post by Jan »

The basic payment method like PayPal can be found in main package, so you can inspire there.

See:
https://www.phoca.cz/phocacart-extensio ... =1-payment

for list of different payment methods for Phoca Cart.

Jan
If you find Phoca extensions useful, please support the project
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 160
Joined: 15 Sep 2023, 10:51

Re: Payment method

Post by landed »

I couldn't find where it is, can you pass me the folder location please? I'd rather pay you 49 euros per year than a 3rd party for a payment option.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9835
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Payment method

Post by Benno »

Hi,
download Phoca Cart v5.2.0 Package.
Unzip it local on your PC --> Click on 'packages' folder and unzip 'plg_pcp_paypal_standard_v5.1.1.zip'
This is the basic Phoca Cart payment plugin PayPal.

Kind regards,
Benno
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 160
Joined: 15 Sep 2023, 10:51

Re: Payment method

Post by landed »

Thank You
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9835
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Payment method

Post by Benno »

You're welcome!

Kind regards,
Benno
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 160
Joined: 15 Sep 2023, 10:51

Re: Payment method

Post by landed »

Is there anything special which PhocaCart is doing as my plugin function is not firing:onPCPbeforeSetPaymentForm.
I created it very much the same way as the Paypal standard. Is there any gotcha which I need to know about. Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48939
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Payment method

Post by Jan »

Hi, first of all you need to detect if the plugin is active at all. Print some debug info in the event. Check if the plugin is installed, active and assigned to selected payment method, then try to print some debug and exit the code in the plugin to see if it is active.

If not installed try to use n3t debug, which will display you important information when debugging: https://n3t.bitbucket.io/extension/n3t-debug/

Jan
If you find Phoca extensions useful, please support the project
Post Reply