Skip to main content

#111 Payment methods* in Payment methods options

Posted in ‘Stripe Checkout for Phoca Cart’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
8.0.30
Phoca Cart version
3.5.8
Stripe Checkout for Phoca Cart version
2.0.1

Latest post by b2z on Friday, 17 May 2024 13:48 EEST

dupasz

Hello,

I would like to add more payment methods such as : klarna,paypal etc. but they are not available in the drop-down list (see picture)

I have activated them on my Stripe account.

It is possible to add them in my version of joomla/pcp plugin or I need to migrate to J4 and then download newest version od plugin?

https://jjawatches.co.uk/images/stripe_checkout.jpg

Thank You

Pawel

b2z

Hi Pawel,

This version is not supported, so you can manually add the needed methods directly to XML file of the plugin.

Open /plugins/pcp/stripeco.xml and find there this piece of code:

<field name="payment_methods"
    type="list"
    multiple="true"
    default="card"
    required="true"
    label="PLG_PCP_STRIPECO_FIELD_PAYMENT_METHODS_LABEL"
    description="PLG_PCP_STRIPECO_FIELD_PAYMENT_METHODS_DESC"
    layout="joomla.form.field.list-fancy-select"
>
    <option value="card">Card</option>
    <option value="ideal">iDEAL</option>
    <option value="bancontact">Bancontact</option>
    <option value="eps">EPS</option>
    <option value="giropay">giropay</option>
    <option value="p24">Przelewy24</option>
    <option value="sofort">Sofort</option>
    <option value="alipay">Alipay</option>
</field>

You can add to the end of the list the payment methods you need. For example for Paypal and Klarna add these two options:

<option value="paypal">PayPal</option>
<option value="klarna">Klarna</option>

Like this:

<field name="payment_methods"
    type="list"
    multiple="true"
    default="card"
    required="true"
    label="PLG_PCP_STRIPECO_FIELD_PAYMENT_METHODS_LABEL"
    description="PLG_PCP_STRIPECO_FIELD_PAYMENT_METHODS_DESC"
    layout="joomla.form.field.list-fancy-select"
>
    <option value="card">Card</option>
    <option value="ideal">iDEAL</option>
    <option value="bancontact">Bancontact</option>
    <option value="eps">EPS</option>
    <option value="giropay">giropay</option>
    <option value="p24">Przelewy24</option>
    <option value="sofort">Sofort</option>
    <option value="alipay">Alipay</option>
    <option value="paypal">PayPal</option>
    <option value="klarna">Klarna</option>
</field>

The full list of payment methods is available here:

https://docs.stripe.com/api/payment_methods/object#payment_method_object-type

Kind regards,

Dmitrijs

dupasz

Thank You so much Dmitrijs!!!

It is works.

Thanks again.

Pawel

b2z

This message is to confirm that the ticket is closed. Should you still experience problems, please open a new support ticket.

If you are happy with our support, we would be grateful if you took the time for a small review or just a vote on Trustpilot.
https://www.trustpilot.com/review/norrnext.com

Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.