if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class PayPal_API_Exception extends Exception { public $errors; public $correlation_id; // This constructor takes the API response received from PayPal, parses out the errors in the response, // then places those errors into the $errors property. It also captures correlation ID and places that // in the $correlation_id property. public function __construct( $response ) { parent::__construct( 'An error occurred while calling the PayPal API.' ); $errors = array(); foreach ( $response as $index => $value ) { if ( preg_match( '/^L_ERRORCODE(\d+)$/', $index, $matches ) ) { $errors[ $matches[1] ]['code'] = $value; } elseif ( preg_match( '/^L_SHORTMESSAGE(\d+)$/', $index, $matches ) ) { $errors[ $matches[1] ]['message'] = $value; } elseif ( preg_match( '/^L_LONGMESSAGE(\d+)$/', $index, $matches ) ) { $errors[ $matches[1] ]['long'] = $value; } elseif ( preg_match( '/^L_SEVERITYCODE(\d+)$/', $index, $matches ) ) { $errors[ $matches[1] ]['severity'] = $value; } elseif ( 'CORRELATIONID' == $index ) { $this->correlation_id = $value; } } $error_objects = array(); foreach ( $errors as $value ) { $error_objects[] = new PayPal_API_Error( $value['code'], $value['message'], $value['long'], $value['severity'] ); } $this->errors = $error_objects; } } if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class PayPal_Missing_Session_Exception extends Exception { public function __construct() { parent::__construct( 'The buyer\'s session information could not be found.' ); } } Service - Đà Nẵng - Hội An
Skip to content

Đà Nẵng – Hội An

  • Explore
    • All Listings
    • Food
      • Café
      • Pizza Place
      • Restaurant
      • Bakery
      • Street Food
    • Entertainment
      • Movie Theater
      • Attractions
      • Spas
      • Museum
      • Stadium
    • Lodging
      • Hotels
      • Apartment
      • Hostel
      • Villas
    • Nightlife
      • Bar
      • Lounge
      • Nightclub
    • Outdoors
      • Bridge
      • Park
    • Shops
      • Bank
      • Furniture / Home
    • Service
      • Car Dealership
      • Tour
  • Listings – No Map
  • Events
  • Blog
  • Add Listing
  • Log In
  • enEnglish
    • viTiếng Việt
Load more listings
  • Facebook
  • Google+
Copyright © 2016 Softvl Inc. • Danang • Hoian
  • Contact

Lost your password?

Cancel