Hi @neikoloves,
When Vaulting is enabled, PayPal Payments inserts a custom menu point into the my-account section called PayPal payments.
For now, this string is not translatable, so it could only be changed directly in the plugin code or with a custom module. The latter approach requires advanced PHP knowledge though, so it’s easier to change it directly in the code.
The goal is to move the payment token details over to the default endpoint provided by WooCommerce but I can’t say when it will happen as there have been some limitations that prevented this from being done in the first place.
Kind regards,
Niklas
Hello @niklasinpsyde are you saying all we need to change is the code in this module?
woocommerce-paypal-payments/modules/ppcp-vaulting/src/VaultingModule.php
line 55
+ array( 'ppcp-paypal-payment-tokens' => 'PayPal payments' )
Thanks so much for the direction…
-
This reply was modified 3 years, 11 months ago by
neikoloves.
-
This reply was modified 3 years, 11 months ago by
neikoloves.
Hi @neikoloves,
Yes, exactly. If you change this line, for example, to + array( 'ppcp-paypal-payment-tokens' => 'Saved payment methods' ) in the VaultingModule.php file, then the new text should be visible in the my-account section right away after refreshing.
Please keep in mind that when you install a new plugin update, this change would be reverted again to the default though.
Permanent plugin modifications that persist through updates require a custom module. But this is more difficult to set up compared to changing a single line of code and requires development experience.
Kind regards,
Niklas
Plugin Support
Femi
(@femiyb)
Hi there
We have not heard back from you in a while, so I’m marking this thread as resolved.
Hopefully, you were able to proceed as advised above.
If you have any further questions, please feel free to reopen this topic or create a new one.
Cheers! 🙂