@@ 181-186 (lines=6) @@ | ||
178 | // Validate the IPN. |
|
179 | $api_response = wp_remote_post( give_get_paypal_redirect(), $remote_post_vars ); |
|
180 | ||
181 | if ( is_wp_error( $api_response ) ) { |
|
182 | give_record_gateway_error( |
|
183 | __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */ |
|
184 | __( 'Invalid IPN verification response. IPN data: %s', 'give' ), json_encode( $api_response ) |
|
185 | ) |
|
186 | ); |
|
187 | ||
188 | return; // Something went wrong. |
|
189 | } |
|
@@ 191-196 (lines=6) @@ | ||
188 | return; // Something went wrong. |
|
189 | } |
|
190 | ||
191 | if ( 'VERIFIED' !== $api_response['body'] ) { |
|
192 | give_record_gateway_error( |
|
193 | __( 'IPN Error', 'give' ), sprintf( /* translators: %s: Paypal IPN response */ |
|
194 | __( 'Invalid IPN verification response. IPN data: %s', 'give' ), json_encode( $api_response ) |
|
195 | ) |
|
196 | ); |
|
197 | ||
198 | return; // Response not okay. |
|
199 | } |