Posted: January 27, 2016 at 2:01 am
|
With reference to thisticket I finally get around to doing making a site specific plugin as recommended. and popped in Josh’s code in the ticket linked above
Using the above, what should my client see when viewing the order summary on PayPal before choosing a way to pay? Will the transaction ID show up there? Will it show up on Paypal in sandbox mode? To force what I wanted to see on my Paypal transactions, I fiddled with a core file. I know I’m not supposed to mess around with the core files but just to show you the effect that I want I modified EEG_Paypal_Standard.gateway.php, line 131-132 I changed
to
Will the code given by Josh last November 4, 2015 at 6:52 pm have this or a similar effect? Where was the transaction number show up? I understand that my modification will get wiped out each time EE4 updates but is the modification I made valid? Safe? How do I bring this out as a site specific plugin? |
I don’t think they’ll see a change to their order summary, the code that passes the EE transaction ID as the item number is for displaying the EE transaction ID as an item with the PayPal notification email. Your other idea to modify the If you’re interested in adding a new filter, we can look into adding one or you are also welcome to submit a pull request on our Github project. |
|
|
I’m not a programmer. I just happen to get how some of these things work. The code I posted was arrived at using the brute force method 😉 I tried looking at what a pull request and I won’t be able to effectively go through that workflow. I intend to modify EEG_Paypal_Standard.gateway.php each time EE4 updates until such time you see it fit to integrate the TIN OR Unique Reg Code in the data sent to Paypal. As it is, is the code I showed you to modify Thanks. |
Please don’t modify core code. That’s never recommended or in this case necessary. The filter hooks that are in place, along with the code you referred to earlier, already pass the transaction ID to PayPal. |
|
|
Understood. Thanks. |
The support post ‘Add EE4 Transaction ID to Paypal Payment Details Revisited’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.