Skip to Content Skip to Menu

Question on getting statistics from PayPal gateway

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
5 years 8 months ago #310199 by petekuhn
Joomla 3.9.2
MySQL 5.6.40
PHP 5.6.40
CB 2.4.0
CBSubs 4.3.0 latest


We are looking at where in the website flow we are losing prospective members, and we can do a lot of that with Google analytics.

What we can't get is losses through PayPal. That is, how many prospects fill out the CB registration form, go to PayPal, but never actually complete the pay transaction. Can we pull this info out of the CB database tables?

I'm not asking for a MySQL query to do that (I can do that myself), just whether the data is there for this/

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48442
  • Thanks: 8276
  • Karma: 1443
5 years 8 months ago #310213 by krileon
You could use CB Auto Actions with the below usage to add custom tracking.

Subscription Pending (Registered Unpaid)
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Equal To R

Subscription Active
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Equal To A

If you need this behavior for baskets instead of subscriptions the below should work fine.

Basket Pending
Global
Triggers: onCPayAfterPaymentStatusUpdateEvent
User: Automatic
Access: Everybody
Conditions
1: [var4] Equal To Pending

Basket Paid
Global
Triggers: onCPayAfterPaymentStatusUpdateEvent
User: Automatic
Access: Everybody
Conditions
1: [var4] Is REGEXP /Completed|Processed/

You can check if those users still have a pending basket within CBSubs > Baskets, but CBSubs doesn't keep unpaid baskets forever and will clear them. Baskets are stored in the _cbsubs_payment_baskets table if you need to query for them.


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.

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
5 years 8 months ago #310232 by petekuhn
Thanks. This is very useful. How long do uncompleted baskets hang around?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48442
  • Thanks: 8276
  • Karma: 1443
5 years 8 months ago #310248 by krileon
If it's marked Pending they should remain until you delete them. If they're marked Registered Unpaid then it depends on "Payment basket timeouts" parameters in CBSubs > Settings > Display > Baskets.


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.

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
5 years 8 months ago #310278 by petekuhn
Thanks. One more question. What's the difference between NotInitiated and Pending?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48442
  • Thanks: 8276
  • Karma: 1443
5 years 8 months ago #310301 by krileon
Pending is waiting for a payment to arrive. This means a gateway selection has been confirmed and it's typically just waiting for a notification from the gateway. NotInitiated means no payment gateway was confirmed and the basket will timeout.


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