prevent paypal to send item details
-
how do i remove sending item line details for the paypal payment details even the standard woo hook not working (woocommerce_paypal_args)
i just want to prevent sending the product name to paypal please help the standart woo hook not even working i failed do this, please help.The page I need help with: [log in to see the link]
-
Hi @eazyproo
The filter
woocommerce_paypal_args
only works with the PayPal Standard integration. PayPal Payments provides alternative filters to modify the order creation and patch data. This allows you to modify the information sent to PayPal selectively.But to entirely disable the item breakdown being sent to PayPal, you can simply use this filter:
add_filter( 'ppcp_ditch_items_breakdown', '__return_true' );
Adding this, e.g. to your theme, will remove all item details from the PayPal orders.
I hope this helps!Kind regards,
NiklasThank you very much it worked immediately.
Is there any possibilty to send the subtotal price only with the order number to PayPal transaction?
please if yes kindly provide me the needed code, thank you very much.
Also is there any possiblity to add a filter that make my customers pay with USD or GBP or EUR and in my paypal account i only get a GBP directly?
For example if i have a customer paid with Advenced credit cards form and he paid 10 EUR can i get this converted Automatically by the plugin and in my PayPal account i get this amount Converted to GBP currency right away without convert it manually?-
This reply was modified 1 year, 10 months ago by
Mohamed.
Thanks for the feedback!
Is there any possibilty to send the subtotal price only with the order number to PayPal transaction?
please if yes kindly provide me the needed code, thank you very much.
I’m not sure I understand it correctly, but you want to send only the order number and subtotal price to PayPal without including other detail? The plugin provides filters to modify the?order creation?and?patch data sent to PayPal, however, completely removing shipping details and only passing the invoice ID and subtotal might be beyond the scope of typical support. However, you can try setting your product to virtual or experimenting with the available example filters to achieve your desired level of customization. If you need further assistance, you might consider hiring a developer to help with your specific requirements.
Also is there any possiblity to add a filter that make my customers pay with USD or GBP or EUR and in my paypal account i only get a GBP directly?
For example if i have a customer paid with Advenced credit cards form and he paid 10 EUR can i get this converted Automatically by the plugin and in my PayPal account i get this amount Converted to GBP currency right away without convert it manually?
The plugin does not provide currency conversion functionality. If you want to offer multiple currencies on your site, you can use a currency switcher plugin. However, the plugin cannot automatically convert currencies after the payment. PayPal might offer currency conversions for buyers performing standard card payments, but this is not something the plugin actively controls. To learn more about currency conversion options for your PayPal account, I recommend contacting PayPal Merchant Support, as the plugin only sends to PayPal what was configured during the checkout process.
Kind regards,
Niklasokay got it.
i have another inquiry about the PayPal advanced credit cards form, in the credit card number field i see it accept 19 numbers however all the card are only 16 numbers so how can i lock it to accept only 16 numbers in the form and not more?
please send me the needed code for this thanks a lot.
Hi @eazyproo
Card numbers can be up to 19 digits long, and the Advanced Card Processing should handle such card numbers correctly.
The hosted fields from the Advanced Card Processing can be styled on your site with CSS, but the content of these fields exists remotely on the PayPal servers, including how many digits are accepted. So it is not easy for the plugin to influence which card numbers would be valid, except for enabling/disabling VISA/Mastercard/etc. globally through a parameter sent to PayPal (via the
Disable specific credit cards
setting).So if you want to disable longer card numbers for some reason, I suggest contacting the PayPal Merchant Support or the PayPal Merchant Technical Support to understand if such card numbers could be filtered on the PayPal end, e.g. with a setting in your PayPal account.
Usually, these longer card numbers should work fine, though.Kind regards,
NiklasHello i have a code here that should make customers pay in USD or EUR and i get in my PayPal account GBP automatically with an automatic convert option but this filter or function not work with your plugin, can you please correct me the code to work with your plugin?
add_filter( ‘woocommerce_paypal_advanced_transaction_request’, ‘custom_paypal_advanced_transaction_request’, 10, 2 );function custom_paypal_advanced_transaction_request( $request, $order ) { // Set the primary currency to GBP $currency_code = ‘GBP’; // Get the order’s currency $order_currency = $order->get_currency(); // If the order currency is not GBP, set the currency conversion rate if ( $order_currency != $currency_code ) { $conversion_rate = WC_Gateway_Paypal_Advanced::get_currency_rate( $order_currency, $currency_code ); $request[‘AMT’] = round( $request[‘AMT’] * $conversion_rate, 2 ); $request[‘CURRENCYCODE’] = $currency_code; $request[‘PAYMENTACTION’] = ‘Sale’; } return $request;}
-
This reply was modified 1 year, 10 months ago by
Mohamed.
We’ll continue the conversation for this latest question in your most recent thread and close this one so we can better separate and keep an overview of open questions.
But if you have any questions about this thread’s original request, feel free to reopen this thread. Thanks! -
This reply was modified 1 year, 10 months ago by
- The topic ‘prevent paypal to send item details’ is closed to new replies.