Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return $token
- ? $token_type && $token_type eq 'pc_pay'
- ? { signal => 'pc_token_found', signal_param => { card_id => $token } }
- : { signal => 'token_found' }
- : { signal => 'token_not_found'}
- ;
- ===
- my $result;
- if ( $token ) {
- if ( $token_type && $token_type eq 'pc_token' ) {
- $result = { signal => 'pc_token', signal_param => { card_id => $token } };
- }
- else {
- $result = { signal => 'token_found' };
- }
- }
- else {
- $result = { signal => 'token_not_found' };
- }
- return $result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement