using woocommerce_paypal_args
-
I’m trying to send custom data to PayPal using your plugin with the
woocommerce_paypal_args
filter, as shown:add_filter('woocommerce_paypal_args', 'customize_paypal_args'); function customize_paypal_args($paypal_args){ $paypal_args['custom'] = 'YOUR_UID_HERE'; return $paypal_args; }
This doesn’t seem to work. Does your plugin support this filter, or is there another method I should use?
Thanks,
Sam
The page I need help with: [log in to see the link]
-
Hi @samtr
This doesn’t seem to work. Does your plugin support this filter, or is there another method I should use?
That isn’t a filter that our plugin triggers. Where did you get that filter name from?
Can you describe what custom data you’re trying to send to PayPal? PayPal’s API doesn’t support sending custom properties like in your example.
Kind Regards
Hi @mrclayton
I assumed your plugin would use the standardwoocommerce_paypal_args
filter like the default WooCommerce PayPal Plugin does.
Is it possible to send custom properties via custom fields to the PayPal API with your plugin? It seems this feature might not be supported.
Best,
sam- This reply was modified 1 year, 1 month ago by samtr.
Hi @samtr
I assumed your plugin would use the standard
woocommerce_paypal_args
filter like the default WooCommerce PayPal Plugin does.That plugin uses an old implementation of the PayPal API and supports different arguments than the newer PayPal API.
Is it possible to send custom properties via custom fields to the PayPal API with your plugin? It seems this feature might not be supported.
The custom fields you linked to are specific to the Braintree API.
PayPal’s new API, which this plugin integrates to, doesn’t support a custom fields property like you see with Braintree.
Kind Regards
- The topic ‘using woocommerce_paypal_args’ is closed to new replies.