Few questions about WC Subscriptions

[ad_1]

Hi to all!

I am trying to implement WC Subscriptions in a custom payment gateway, but need to find answers of few questions:

  1. On the checkout page, before the order is finished where I can find information if the Order is renewal and who is the parent Order? In the cart I found only subscription_renewal array, but it not keeps in it the parent.
  2. For testing, what is the recommended way to run next payment of a Subscription manual? I tried to change this in wp_postmeta, but nothing happens until I run the job from Tools->Scheduled Actions. In this case woocommerce_scheduled_subscription_payment_ hook catch the event but the Order I get is empty or not real WC Order object.
  3. If I run the renewal process from question 2 will the Order object holds in it the parent Order Id, if not how to get it?

Thanks to all!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer