Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Export bank fees from MotoPress Hotel Booking
- This topic has 1 reply, 1 voice, and was last updated 4 years, 9 months ago by Andre Flores.
Viewing 2 posts - 1 through 2 (of 2 total)
- AuthorPosts
- February 3, 2020 at 5:54 am #912955Christine BoothParticipant
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!
ChristineMarch 11, 2020 at 3:25 pm #929028Andre FloresModeratorHi, 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 - AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.