Live – Working on membership integration for a Geodirectory site with woocommerce

This is the first time I am blogging while coding.

headphones are on and Bollywood songs are playing….
Tomorrow 8:30 pm is delivary time and current time 11:03PM.

I am using wpapps plublisher addon for geodirectory but i dont think it is well coded specially for woocommerce and I also noticed many insecurities in it.

I think I will refactor the plugin code.

In last call we found several bug and decided several improvements. Improvements are short so I will focus on them later. primary focus of mine is to fix below bugs

  • sandbox payment refunded/failed payment – Membership staus check – why it considering it success. [3 hours ]
  • basic membership is not reflecting instantly after purchese [ 1-2 hour ]

lets start with a small task

1. redirect user to registration page from membership page [ 30 min – 1 hour ]

starting on it now 11:09 pm …
Oh God this local site is so slow …

this playlist is awesome https://www.youtube.com/watch?v=8hsPiB1aTVM&ab_channel=Bipinkuvacollection

done but uwp throw a warning on the signup page, I can ignore that not so imp atm…. [11:19 pm]

2. sandbox payment refunded/failed payment – Membership staus check – why it considered it a success. [3 hours ]

Let’s first recreate it and track the log at the same time…

I am saying this playlist is awesome https://www.youtube.com/watch?v=8hsPiB1aTVM&ab_channel=Bipinkuvacollection

I think I have to find a theme that should have an option to track timestamp each time I type a line here. Maybe there is no theme, I can create one. Once I will get free. Focusing on testcase now.

the first case was failed to catch the refund transection bug.
I will try with higher plan now – 5 min break

Oh so after upgrade and downgrade it make user existing post Auto draft with no data, which is not a wise decision.

I am back with water bottle now [ 11: 46pm]

Let’s check with greater membership plan.

Loving these songs at this time, Perfect to keep my mental state normal at this time https://www.youtube.com/watch?v=8hsPiB1aTVM&ab_channel=Bipinkuvacollection

I will also check with other payment options given by paypal payment getway.
maybe this. refund thing happening with only a specific payment option.

Paypal getway is slow on local….spinning..

Trying this option this time

I don’t know why the order goes on hold.

I still cant reproduce the case of Auto refund but I will try refunding this time and check how the system react.

I have refunded paypal payment but it has not changed woocommerce order.

I discovered it is a common issue faced by other users too https://wordpress.org/support/topic/paypal-is-inactive-for-subscription-transactions-please-set-up-the-paypal-ipn/

checking the case one more time

found one more bug when now purchasing the same package it redirects to the empty cart page.

Now I have started customising wpapps. publiser addon.

I am using git so I can track my changes. I will surely tell client to pay wpapps for this addon code but not for the support.
they maybe using a beginer developer to develop it as he used many insecure queries with no prepare() function.

lost the vibes…… wait 5 min

back now

Lets now check paymett

last time I noticed subscription was canceled on refund but user can still add listing.

lets cancel user subscription and check it with a new user.
lets buy free package this time

I was right the above case is true, even though. subscription is. cancelled user still can add new post.

checking what causing it?
got the error, wpapps is not updating its own subscription table on woocommerce subscription cancelled

feeling bored now [1:42 Am]

searching for a movie to watch sidebyside

completed following points

  • redirect user to registration page from membership page [ 30 min – 1 hour ]
  • basic membership is not reflecting instantly after purchese [ 1-2 hour ]
  • sandbox payment refunded/failed payment – Membership staus check – why it considering it success. [3 hours ]
  • checkout order page code warnings from wpapps publisher addon [ 1-2 hour ]
  • auto login on signup [ 10 min ]