Skip to Content Skip to Menu

CbSubs question

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 3
  • Add-ons
8 hours 28 minutes ago - 6 hours 47 minutes ago #343189 by liaskas
Replied by liaskas on topic CbSubs question
Hello again...

We updated to the latest CBSubs build that added the substitutions [PAYER_COUNTRY] and [PAYER_NAME].

In our payment confirmation emails (same place where [PAYER_EMAIL] substitutes correctly), [PAYER_COUNTRY] and [PAYER_NAME] return "[PAYER_COUNTRY]" and "[PAYER_NAME]", not the values sent in IPN, even though PayPal sends these values in the VERIFIED IPN payload for the same transactions.

Example (redacted) from raw IPN POST:
residence_country = GR
first_name = John Doe
last_name = Doe
payer_email = johndoe@gmail.com ([PAYER_EMAIL] substitutes this value correctly)

Since the PayPal IPN contains the data but the new substitution tokens do not substitute while other PayPal/basket substitutions work, is there a case that the new tokens may not be mapped to the stored transaction fields that the substitution engine is reading?

How we tested: CbSubs / Plan / Integrations / Email tab...

There, in the mail body field, we have...
Code:
<b>Subscription Details:</b><ul> <li>Plan: [PLAN_ALIAS]</li> -> Substitutes correctly in the received mail. <li>Total Price: [TOTAL_PRICE]</li> -> Substitutes correctly in the received mail. <li>Account ID: [user_id]</li> -> Substitutes correctly in the received mail. <li>Start Date: [SUBSCRIPTION_SIGNUP_DATE]</li> -> Substitutes correctly in the received mail. <li>Item#: [ITEMS_NUMBERS]</li> -> Substitutes correctly in the received mail. <li>Accessed: Digital Content and Services</li> <li>Transaction ID: [TRANSACTION_ID]</li> -> Substitutes correctly in the received mail. <li>Payment Method: [PAYMENT_METHOD]</li> -> Substitutes correctly in the received mail. <li>Client PayPal Email: [PAYER_EMAIL]</li> -> Substitutes correctly in the received mail. <li>PayPal user country: [PAYER_COUNTRY]</li> -> Returns "[PAYER_COUNTRY]" in the received mail. <li>PayPal user name: [PAYER_NAME]</li> -> Returns "[PAYER_NAME]" in the received mail. </ul>


So, according to your last reply...

Anywhere you could use [PAYER_EMAIL] you can now also use [PAYER_NAME] and [PAYER_COUNTRY].

Something seens not working fine.

We can't guarantee they'll have a value though as it's subjective to the payment processor giving that information back in their API calls or webhooks.

The values exist PayPal IPN!

Thank you.
Last edit: 6 hours 47 minutes ago by liaskas.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50106
  • Thanks: 8574
  • Karma: 1468
3 hours 35 minutes ago #343191 by krileon
Replied by krileon on topic CbSubs question
Strange, that absolutely should be working. These substitutions were added right where [PAYER_EMAIL] is. Please be absolutely sure you're on 4.9.0+build.2026.01.27.15.44.10.c971a6e8e version of CBSubs.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 3
  • Add-ons
2 hours 42 minutes ago #343192 by liaskas
Replied by liaskas on topic CbSubs question
On the top it says...
You have the latest version 4.9.0+build.2026.01.27.15.44.10.c971a6e8e

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50106
  • Thanks: 8574
  • Karma: 1468
54 minutes ago #343194 by krileon
Replied by krileon on topic CbSubs question
Will investigate further locally and see what could be going wrong. It's possible it's just the CBSubs Emails integration that it isn't working with correctly.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 3
  • Add-ons
41 minutes ago #343195 by liaskas
Replied by liaskas on topic CbSubs question
Thank you Krileon!
I will be waiting for the results.
Thank you again.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50106
  • Thanks: 8574
  • Karma: 1468
22 minutes ago #343196 by krileon
Replied by krileon on topic CbSubs question
I've tested with Merchandise and non-recurring subscriptions and seams to be working fine using the email body you provided above. I can't find any reason code wise for this to possibly fail. The way it works is CBSubs Emails pulls in the substitutions from the subscription, which then pulls in the substitutions from the basket used to purchase that subscription. The basket substitutions contain the payer substitutions. I've downloaded latest release and verified the code is there. I'm a bit dumbfounded as to how this could be failing for you. Are you sure this email is coming from CBSubs and not something like CB Auto Actions?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum