| @@ 130-141 (lines=12) @@ | ||
| 127 | * |
|
| 128 | * @return string HTML table containing debugging information |
|
| 129 | */ |
|
| 130 | public function __toString() |
|
| 131 | { |
|
| 132 | $output = ''; |
|
| 133 | $output .= '<table summary="Authorize.Net Response" id="authnet-response">' . "\n"; |
|
| 134 | $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Response JSON</b></th>' . "\n" . '</tr>' . "\n"; |
|
| 135 | $output .= '<tr><td colspan="2"><pre>' . "\n"; |
|
| 136 | $output .= $this->responseJson . "\n"; |
|
| 137 | $output .= '</pre></td></tr>' . "\n"; |
|
| 138 | $output .= '</table>'; |
|
| 139 | ||
| 140 | return $output; |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| 144 | * Gets a response variable from the API response |
|
| @@ 60-71 (lines=12) @@ | ||
| 57 | * |
|
| 58 | * @return string HTML table containing debugging information |
|
| 59 | */ |
|
| 60 | public function __toString() |
|
| 61 | { |
|
| 62 | $output = ''; |
|
| 63 | $output .= '<table summary="Authorize.Net Webhooks Response" id="authnet-response">' . "\n"; |
|
| 64 | $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Response JSON</b></th>' . "\n" . '</tr>' . "\n"; |
|
| 65 | $output .= '<tr><td colspan="2"><pre>' . "\n"; |
|
| 66 | $output .= $this->responseJson . "\n"; |
|
| 67 | $output .= '</pre></td></tr>' . "\n"; |
|
| 68 | $output .= '</table>'; |
|
| 69 | ||
| 70 | return $output; |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * Gets a response variable from the API response |
|