@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | $post_status = $this->get_post_status( $payment->status ); |
117 | 117 | |
118 | 118 | if ( ! empty( $post_status ) ) { |
119 | - $data['post_status'] = $post_status; |
|
119 | + $data[ 'post_status' ] = $post_status; |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | wp_update_post( $data ); |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | $this->update_meta( $id, 'key', $payment->key ); |
230 | 230 | $this->update_meta( $id, 'order_id', $payment->order_id ); |
231 | 231 | $this->update_meta( $id, 'currency', $payment->get_amount()->get_currency()->get_alphabetic_code() ); |
232 | - $this->update_meta( $id, 'amount', $payment->get_amount()->get_amount()); |
|
232 | + $this->update_meta( $id, 'amount', $payment->get_amount()->get_amount() ); |
|
233 | 233 | $this->update_meta( $id, 'method', $payment->method ); |
234 | 234 | $this->update_meta( $id, 'issuer', $payment->issuer ); |
235 | 235 | $this->update_meta( $id, 'expiration_period', null ); |