Revision 718

Date:
2018/09/06 14:09:07
Author:
ahitrov
Revision Log:
Запись ошибок

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/money/lib/money/Provider/Dreamkas.pm

     
    396 396 $self->_MakeRequest( $api_url, 'get' );
    397 397 warn Data::Dumper::Dumper( $self->{result} ) if $DEBUG;
    398 398 if ( $self->{result}{code} == 200 ) {
    399 $MR->success( $OP_STATUS{$self->{result}{content}{status}} );
    400 $MR->store;
    401 $self->{result}{receipt} = $MR;
    402 399 if ( $self->{result}{content}{status} eq 'ERROR' ) {
    403 400 $self->{result}{error} = Encode::encode('utf-8', $self->{result}{content}{data}{error}{message});
    404 401 $self->{result}{code} = $self->{result}{content}{data}{error}{code};
    402 $MR->comment( $self->{result}{error} );
    405 403 }
    404 $MR->success( $OP_STATUS{$self->{result}{content}{status}} );
    405 $MR->store;
    406 $self->{result}{receipt} = $MR;
    406 407 } else {
    407 408 $self->{result}{error} = $self->{result}{status};
    408 409 }
  • utf8/plugins/money/lib/money/Receipt.pm

     
    10 10 [1, 'Тестовый чек'],
    11 11 ],
    12 12 },
    13 { 'attr' => 'comment', 'type' => 'text', 'rusname' => 'Комментарий' }
    13 14 )
    14 15 }
    15 16