Pro Site doesn't show stats

The Pro Site plugin is integrated with the iyzico payment gateway. The getaway working but the Stats are missing from Pro Site > Statistics

Also, the Account History for registered sites with that payment gateway is empty.

Please advise what Hook to use to show the payment history on the pro site Management page and show the statistics for signed up sites.

  • Ivan

    Hi Variotik !

    For displaying info on the Pro Site > Statistics page - you can add this line in your code $psts->record_stat( $blog_id, 'signup' ); for creating subscription, $psts->record_stat( $blog_id, 'cancel' ); for cancelling subscription and so on. For showing the payment history on the pro site Management page - you can add this line in your code $psts->log_action( $blog_id, sprintf( __( 'User creating new subscription via iyzico: Subscription created (%1$s) - Profile ID: %2$s', 'psts' ), $desc, $hashOrder ) ); $desc, $hashOrder you can determine before it.
    Note: before using $psts variable you should declare it as global $psts; in your code.
    Also, you can open your {wordpress_folder}/wp-content/plugins/pro-sites/pro-sites-files/gateways/gateway-2checkout.php file via FTP or other file in this folder for having good example for integration.

    Best regards,
    Ivan.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.