Title: tarat's Replies | WordPress.org

---

# tarat

  [  ](https://wordpress.org/support/users/tarat/)

 *   [Profile](https://wordpress.org/support/users/tarat/)
 *   [Topics Started](https://wordpress.org/support/users/tarat/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tarat/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tarat/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tarat/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tarat/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tarat/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Button for PayPal] IN WP paypal Order are not storing](https://wordpress.org/support/topic/in-wp-paypal-order-are-not-storing/)
 *  [tarat](https://wordpress.org/support/users/tarat/)
 * (@tarat)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/in-wp-paypal-order-are-not-storing/#post-11121777)
 * htmlentities($post_content, ENT_QUOTES | ENT_IGNORE, “UTF-8”)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Button for PayPal] IN WP paypal Order are not storing](https://wordpress.org/support/topic/in-wp-paypal-order-are-not-storing/)
 *  [tarat](https://wordpress.org/support/users/tarat/)
 * (@tarat)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/in-wp-paypal-order-are-not-storing/#post-11121717)
 * The solution:
 * $updated_post = array(
    ‘ID’ => $post_id, ‘post_title’ => $post_id, ‘post_type’
   => ‘wp_paypal_order’, ‘post_content’ => htmlentities($post_content, ENT_QUOTES));
 * Please fix it….
    Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Button for PayPal] IN WP paypal Order are not storing](https://wordpress.org/support/topic/in-wp-paypal-order-are-not-storing/)
 *  [tarat](https://wordpress.org/support/users/tarat/)
 * (@tarat)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/in-wp-paypal-order-are-not-storing/#post-11121662)
 * I set some other debug step into the paypal-ipn.php
 * The result:
 * [January 23, 2019 12:35 pm] – SUCCESS :Updating order information
    [January 23,
   2019 12:35 pm] – SUCCESS :Post id: 127 [January 23, 2019 12:35 pm] – SUCCESS :
   Update content: Array ( [discount] => 0.00 [mc_gross_1] => 1.30 [insurance_amount]
   => 0.00 [mc_handling1] => 0.00 [num_cart_items] => 1 [payer_id] => SUS2X646J….[
   address_country_code] => … [ipn_track_id] => 5a8e56a….e [address_zip] => 2483[
   charset] => windows-1252 [payment_gross] => 1.30 [address_status] => confirmed[
   shipping_discount] => 0.00 [address_street] => ….. [verify_sign] => Ai.5bQT0IEOAwZz0G2AWlZ32DvJdAboIadpexCYIe……[
   txn_type] => cart [receiver_id] => ….. [payment_fee] => 0.34 [item_number1] =
   > [mc_currency] => USD [transaction_subject] => [shipping_method] => Default [
   custom] => [protection_eligibility] => Eligible [quantity1] => 1 [address_country]
   => …… [payer_status] => verified [first_name] => ….. [item_name1] => S…. [address_name]
   => Z…. [mc_gross] => 1.30 [payment_date] => 03:11:36 Jan 23, 2019 PST [payment_status]
   => Completed [business] => …. [last_name] => …. [address_state] => [txn_id] =
   > 04027697K756….. [mc_fee] => 0.34 [resend] => true [payment_type] => instant[
   notify_version] => 3.8 [payer_email] => …. [receiver_email] => .. [address_city]
   => … [residence_country] => .. )
 * [January 23, 2019 12:35 pm] – SUCCESS :Updated post id: 0
    [January 23, 2019 
   12:35 pm] – FAILURE :Order information could not be updated
 * It tries to update the right post (127)
    But the
 * $updated_post = array(
    ‘ID’ => $post_id, ‘post_title’ => $post_id, ‘post_type’
   => ‘wp_paypal_order’, ‘post_content’ => $post_content ); $updated_post is empty.-
   > :Updated post id: 0 Hmmm…
 * Maybe the post_content contains invalid character?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Button for PayPal] IN WP paypal Order are not storing](https://wordpress.org/support/topic/in-wp-paypal-order-are-not-storing/)
 *  [tarat](https://wordpress.org/support/users/tarat/)
 * (@tarat)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/in-wp-paypal-order-are-not-storing/#post-11121557)
 * Hallo,
 * The problem is the update on the PROD:
 * [January 23, 2019 11:26 am] – SUCCESS :Received valid response from PayPal
    [
   January 23, 2019 11:26 am] – SUCCESS :Payment Status – Completed [January 23,
   2019 11:26 am] – SUCCESS :Up dating order information [January 23, 2019 11:26
   am] – FAILURE :Order information could not be updated
 * It is working with Sandbox:
 * [January 22, 2019 7:45 pm] – SUCCESS :Received valid response from PayPal
    [January
   22, 2019 7:45 pm] – SUCCESS :Payment Status – Completed [January 22, 2019 7:45
   pm] – SUCCESS :Updating order information [January 22, 2019 7:45 pm] – SUCCESS:
   Order information updated [January 22, 2019 7:45 pm] – SUCCESS :IPN processing
   completed
 * If I check it in the Orders list in the WP then the ‘post_title’ => ‘order’ withot
   any content and not the ‘post_title’ => $post_id…
 * Could you help me what is the problem?
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)