-1

I use Woocommerce plugin. All works great, but I need add to PayPal IPN 'custom' field only 1 word instead "order_id" that writes at 'custom' field now.

I trying edit this file: ...woocommerce/classes/gateways/paypal/class-wc-gateway-paypal.php here you can see code

here screenshot of code that maybe needs to change

Need to change script that send "order_id" to PayPal on script that send my word to PayPal. That's all.

I believe it's easy to do. Please help. Appreciate any answers. Thanks.!

0

You almost gave the answer yourself :o)

replace

'custom' => serialize( array( $order_id, $order->order_key ) ),

with

'custom' => 'yourword',

and you're done!

| improve this answer | |
  • Mr. Ewout, please help me again. I need to do the same thing - to add a "custom" parameter to all payments from my website. Only difference is now I use Wordpress 4.5.3 and I can't find even the word "custom" there. here the screenshot, where it probably should be: i.piccy.info/i9/759c50ab52808a6dc4d89684e40e8e30/1467032457/… Am I right? Help me please – Tuffguy Jun 27 '16 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.