@@ -467,23 +467,23 @@ |
||
467 | 467 | $this->order_add($invoice, "ActionCode", $data->ActionCode); |
468 | 468 | |
469 | 469 | switch ($data->ActionCode) { |
470 | - case 'SUCCESS': |
|
471 | - case 'NOACTION': |
|
472 | - break; |
|
473 | - case 'FAILURE': |
|
474 | - $this->reject_with_error('Payment was unsuccessful. ' . |
|
475 | - 'Please try again or provide another form of payment.'); |
|
476 | - break; |
|
477 | - case 'ERROR': |
|
478 | - $message = $data->ErrorDescription; |
|
479 | - if ( isset($data->ErrorNumber) ) { |
|
480 | - $message .= " ({$data->ErrorNumber})"; |
|
481 | - } |
|
482 | - $this->reject_with_error($message, isset($data->PermanentFatal)); |
|
483 | - break; |
|
484 | - default: |
|
485 | - $this->reject_with_error('Unknown ActionCode'); |
|
486 | - break; |
|
470 | + case 'SUCCESS': |
|
471 | + case 'NOACTION': |
|
472 | + break; |
|
473 | + case 'FAILURE': |
|
474 | + $this->reject_with_error('Payment was unsuccessful. ' . |
|
475 | + 'Please try again or provide another form of payment.'); |
|
476 | + break; |
|
477 | + case 'ERROR': |
|
478 | + $message = $data->ErrorDescription; |
|
479 | + if ( isset($data->ErrorNumber) ) { |
|
480 | + $message .= " ({$data->ErrorNumber})"; |
|
481 | + } |
|
482 | + $this->reject_with_error($message, isset($data->PermanentFatal)); |
|
483 | + break; |
|
484 | + default: |
|
485 | + $this->reject_with_error('Unknown ActionCode'); |
|
486 | + break; |
|
487 | 487 | } |
488 | 488 | |
489 | 489 | if (!isset($cruise_result->jwt)) { |