Pass Custom field to PayPal

  • Scott
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 7 months ago #160459 by Scott
Pass Custom field to PayPal was created by Scott
Hi, 
I'm using Membership Pro 3.4.1 under Joomla 3.1.x. I have been asked by the treasurer of our organization if it is possible to pass a Custom field (in this case the name of the subscribers Organization) in the Payment info sent to PayPal to help them reconcile subscriptions and renewals. 

In looking at the Translation Tables I see two values that appear to be what is being sent to PayPal by the interface. 
OSM_PAYMENT_FOR_SUBSCRIPTION (Payment for [PLAN_TITLE] subscription)
OSM_PAYMENT_FOR_RENEW_SUBSCRIPTION (Payment for [PLAN_TITLE] Membership renewal)

Is it possible to pass a custom field in this translation? For example
Payment for [PLAN_TITLE] subscription [- CUSTOM_FIELD_1]

If not, is there another way to add metadata to the info sent to PayPal? 

Please Log in or Create an account to join the conversation.

More
1 year 7 months ago #160460 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Pass Custom field to PayPal
Hi

Yes. You can use the syntax [NAME_OF_FIELD_IN_UPPERCASE] in these language items (for example, if the custom field name is custom_field_1, then the tag is [CUSTOM_FIELD_1]) in these language items to pass the information to PayPal

You would also need to change OSM_PAYMENT_FOR_UPGRADE_SUBSCRIPTION language item as well (this is for the case users upgrade from a plan to another plan in case you use it)

Tuan

Please Log in or Create an account to join the conversation.

  • Scott
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 7 months ago #160464 by Scott
Replied by Scott on topic Pass Custom field to PayPal
Ok, just to confirm, this would be a valid translation value?

Payment for [PLAN_TITLE] subscription - [CUSTOM_FIELD_1]

Lastly, is there any ability to do logic (e.g. test for the existence of a value)?

Please Log in or Create an account to join the conversation.

More
1 year 7 months ago #160467 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Pass Custom field to PayPal
Hi Scott

Yes. That's the right syntax. Unfortunately, there is not an option to test for doing logic on that language item. If the value is empty, it will be replaced with an empty string (space)

Tuan

Please Log in or Create an account to join the conversation.