Set transaction_subject PayPal IPN

Does anyone know how to set transaction_subject in the returned IPN from PayPal.

At the moment, it is returning with the same content as my custom field, even if the PayPal document says the following:

"A carry variable for your own tracking purposes that buyers do not see. By default, the variable is not passed back."

I need this to be different from the custom field because the transaction_subject is displayed in the email the buyer receives, which means they see the contents of the custom field.

thanks

+6
source share
3 answers

It seems that PayPal developers at X.commerce do not know the purpose of the transaction_subject variable or how to set it. Even PayPal's exemplary IPN message (a table near the bottom) does not contain variable notes. Finally, PayPal Variables IPN and PDT and Standard Links to HTML Payment Data do not list it.

When analyzing our IPNs, transaction_subject always contains the value of the variable custom pass-through, but I don’t know what is shown to the buyer.

Setting transaction_subject using NVP in the HTML form does not affect its value.

Contact the seller’s technical support , as displaying the pass-through variable for the buyer is an error.

+4
source

I see that the transaction_subject parameter is set to item_name or item_number, I can’t determine how to do this, because I set both values ​​to the same value. I do not see that it is set to the value "custom", which has a different value (actually outgoing host_button_id). This is due to the Subscribe buttons.

0
source

Am I using / js / paypal-button.min.js? way of form. if I set this user = "{mycustomvar: 3}"

IPN result shows "transaction_subject": "{mycustomvar: 3}"

0
source

Source: https://habr.com/ru/post/903550/


All Articles