• Resolved Apfelbiss

    (@apfelbiss)


    Hello,

    is it possible or planned that the selection of the specific PayPal Payments payment method by the customer is passed to WooCommerce?

    And a question to the community:
    How do other stores handle this naming issue?

    Due to the fact that other payment methods such as SOFORT and Giropay are also listed among them in Germany, the payment method system name in WooCommerce (which is selected via radio button) can be badly titled “PayPal”. Otherwise, in the order information in the various places (thank you page, confirmation email, account order pages) is “PayPal”, although, for example, Giropay was selected as a payment method.

    We intended to list PayPal Payments as the last payment method in WooCommerce and preselect this option via PHP snippet, so that the details incl. the payment methods on the buttons are already visible here.

    But how should this option be named if only the payment type title is output in WooCommerce instead of the concrete selected payment type in the mentioned places? “More payment methods” sounds irritating. The only better alternative I’ve come up with so far is “Third Party Provider”. However, for a clean solution, Invoice via Ratepay would then also have to be listed there. Unlike the option for credit or debit card, it is not possible to specify whether this option should be listed as a separate radio button or not.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @apfelbiss,

    is it possible or planned that the selection of the specific PayPal Payments payment method by the customer is passed to WooCommerce?

    The logic for this is already implemented, but currently only mapped for Venmo. This should be extended to all other APMs in one of the next updates, but it could be implemented already with some minor modifications to the plugin code. This may not be the cleanest way, but it should work:
    In the FundingSourceRenderer.php under modules/ppcp-wc-gateway/src/FundingSource/, replace the highlighted code with the one from this gist.
    I created a test package with this change, which you can download from here.

    In the long term, there may also be “standalone APMs” with a dedicated payment gateway for each payment method. The next update makes a first step in this direction by adding a feature to separate the standard black card button from the PayPal gateway without using the PayPal Card Processing.
    But anyway, I hope this helps!

    Kind regards,
    Niklas

    Thread Starter Apfelbiss

    (@apfelbiss)

    Hello,

    thank you for this quick and positive response. Is there any timetable to get this fixed officially?

    I don’t see any difference when uploading the updated file or replacing the plugin with the test package. And I don’t see any setting that needs to be enabled for this.

    When checking the differences from the official plugin folder and your test package, DiffMerge shows many changes and new files.

    And is there any reason for
    return __( 'Venmo', 'woocommerce-paypal-payments' );
    with only “Venmo” as a title without ” (via PayPal)” as it does say for the other payment methods in the FundingSourceRenderer.php?

    Edit: Probably I had a mistake in thinking mentioned below:
    The explained fix was now “only” about the display of the specific payment method in the order email, thank you page and account order page – not about independent radio buttons on the checkout page? But even there only the WooCommerce payment title is shown and not e.g. ?PayPal“, when testing it via PayPal sandbox.

    • This reply was modified 2 years, 1 month ago by Apfelbiss.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @apfelbiss,

    Apologies, I should have explained a bit better what this change does.
    It only changes the funding source name for the created order. Since all APMs are listed within a single gateway (the PayPal gateway), WooCommerce sees all buttons as a single payment method.
    But with the package linked above, e.g. the order-received page and the email notifications would display a different funding source name compared to what’s visible on the Checkout page, depending on which payment buttons the buyer clicks.
    So the gateway title could be PayPal & other payment methods but when clicking the giropay button, giropay (via PayPal) (or whatever you want it to say) would be rendered e.g. on the order-received page or the emails for the buyer.

    I can’t say when this will be officially included because there are some edge-cases that are difficult to manage reliably (e.g. Pay Later). But I expect it to be included in one of the next updates.

    Kind regards,
    Niklas

    Thread Starter Apfelbiss

    (@apfelbiss)

    Hello,

    ok, thank you, for non PayPal payment method that seems to work, but when selecting PayPal, still the WooCommerce title (“PayPal & other payment methods” in your case) is shown instead of “PayPal”.

    I added these lines inside your fix to get this worked:

    } elseif ( 'paypal' === $id ) {
    	return __( 'PayPal', 'woocommerce-paypal-payments' );
    • This reply was modified 2 years ago by Apfelbiss.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Thanks for the feedback.
    The team is still investigating a more reliable way to handle Pay Later or card payments, as these could also be done with a click on the PayPal button.
    But once this was figured out, the functionality should be included officially in the plugin.
    If you have any doubts or further questions, please do not hesitate to let us know.
    Thanks!

    Kind regards,
    Niklas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Transferring the specific payment method to WooCommerce?’ is closed to new replies.