Export bank fees from MotoPress Hotel Booking

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #912955
    Christine Booth
    Participant

    Hi!
    I was successfully downloading the _mphb_fee associated with my guests Stripe payments; but with updates of the plugin, my php code is no longer extracting this data. What has changed?

    I was using the following php function:

    
    //retrieve data from ID field for "payment data"//
    function my_get_fee ($post_id) {
        // get booking ID from postmeta
        global $wpdb;
        $table = $wpdb->prefix . 'postmeta';
        if ( $row = $wpdb->get_row (
            "SELECT post_id
            FROM " . $table . "
            WHERE meta_key = '_mphb_booking_id'
            AND meta_value = '" . $post_id . "'")
        ) {
            $fee = $row->post_id;
            return get_post_meta($fee, "_mphb_fee", true);  
        }
        return null;
    }
    

    Can you suggest how I might get this working again?

    Thank you!
    Christine

    #929028
    Andre Flores
    Moderator

    Hi, Christine!

    Unfortunately, since Stripe update: https://stripe.com/docs/strong-customer-authentication we were forced to change the code and get rid of some post meta.
    At this point, there is no possibility to pull out Stripe fee for now.
    Sorry for the inconvenience.

    Best regards,
    Andre

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.